naspro
view permafrost/lib/m.pmf @ 178:7169a8909d53
Added Permafrost + small changes
| author | Stefano D'Angelo <zanga.mail@gmail.com> |
|---|---|
| date | Sun May 02 14:19:58 2010 +0300 (2010-05-02) |
| parents | |
| children |
line source
1 # Permafrost - Physical modelling framework
2 #
3 # Copyright (C) 2009, 2010 Stefano D'Angelo <zanga.mail@gmail.com>
4 #
5 # See the COPYING file for license conditions.
7 # Functions
8 ext_function m_acos = acosf, acos, 1, "math.h", "m";
9 ext_function m_acosh = acoshf, acosh, 1, "math.h", "m";
10 ext_function m_asin = asinf, asin, 1, "math.h", "m";
11 ext_function m_asinh = asinhf, asinh, 1, "math.h", "m";
12 ext_function m_atan = atanf, atan, 1, "math.h", "m";
13 ext_function m_atan2 = atan2f, atan2, 2, "math.h", "m";
14 ext_function m_atanh = atanhf, atanh, 1, "math.h", "m";
15 ext_function m_cbrt = cbrtf, cbrt, 1, "math.h", "m";
16 ext_function m_ceil = ceilf, ceil, 1, "math.h", "m";
17 ext_function m_copysign = copysignf, copysign, 2, "math.h", "m";
18 ext_function m_cos = cosf, cos, 1, "math.h", "m";
19 ext_function m_cosh = coshf, cosh, 1, "math.h", "m";
20 ext_function m_erf = erff, erf, 1, "math.h", "m";
21 ext_function m_erfc = erfcf, erfc, 1, "math.h", "m";
22 ext_function m_exp = expf, exp, 1, "math.h", "m";
23 ext_function m_exp2 = exp2f, exp2, 1, "math.h", "m";
24 ext_function m_expm1 = expm1f, expm1, 1, "math.h", "m";
25 ext_function m_fabs = fabsf, fabs, 1, "math.h", "m";
26 ext_function m_fdim = fdimf, fdim, 2, "math.h", "m";
27 ext_function m_floor = floorf, floor, 1, "math.h", "m";
28 ext_function m_fma = fmaf, fma, 3, "math.h", "m";
29 ext_function m_fmax = fmaxf, fmax, 2, "math.h", "m";
30 ext_function m_fmin = fminf, fmin, 2, "math.h", "m";
31 ext_function m_fmod = fmodf, fmod, 2, "math.h", "m";
32 ext_function m_hypot = hypotf, hypot, 2, "math.h", "m";
33 ext_function m_lgamma = lgammaf, lgamma, 1, "math.h", "m";
34 ext_function m_log = logf, log, 1, "math.h", "m";
35 ext_function m_log10 = log10f, log10, 1, "math.h", "m";
36 ext_function m_log1p = log1pf, log1p, 1, "math.h", "m";
37 ext_function m_log2 = log2f, log2, 1, "math.h", "m";
38 ext_function m_logb = logbf, logb, 1, "math.h", "m";
39 ext_function m_nearbyint = nearbyintf, nearbyint, 1, "math.h", "m";
40 ext_function m_nextafter = nextafeterf, nextafter, 2, "math.h", "m";
41 ext_function m_pow = powf, pow, 2, "math.h", "m";
42 ext_function m_remainder = remainderf, remainder, 2, "math.h", "m";
43 ext_function m_rint = rintf, rint, 1, "math.h", "m";
44 ext_function m_round = roundf, round, 1, "math.h", "m";
45 ext_function m_sin = sinf, sin, 1, "math.h", "m";
46 ext_function m_sinh = sinhf, sinh, 1, "math.h", "m";
47 ext_function m_sqrt = sqrtf, sqrt, 1, "math.h", "m";
48 ext_function m_tan = tanf, tan, 1, "math.h", "m";
49 ext_function m_tanh = tanhf, tanh, 1, "math.h", "m";
50 ext_function m_tgamma = tgammaf, tgamma, 1, "math.h", "m";
51 ext_function m_trunc = truncf, trunc, 1, "math.h", "m";
53 # Useful constants
54 const m_e = 2.7182818284590452354; # e
55 const m_log2e = 1.4426950408889634074; # log2(e)
56 const m_log10e = 0.43429448190325182765; # log10(e)
57 const m_ln2 = 0.69314718055994530942; # ln(2)
58 const m_ln10 = 2.30258509299404568402; # ln(10)
59 const m_pi = 3.14159265358979323846; # pi
60 const m_pi_2 = 1.57079632679489661923; # pi / 2
61 const m_pi_4 = 0.78539816339744830962; # pi / 4
62 const m_1_pi = 0.31830988618379067154; # 1 / pi
63 const m_2_pi = 0.63661977236758134308; # 2 / pi
64 const m_2_sqrtpi = 1.12837916709551257390; # 2 / sqrt(pi)
65 const m_sqrt2 = 1.41421356237309504880; # sqrt(2)
66 const m_sqrt1_2 = 0.70710678118654752440; # 1 / sqrt(2)
