35 const double pi = 3.141592653589793238462643383279502884197;
36 const double twopi = 6.283185307179586476925286766559005768394;
37 const double fourpi = 12.56637061435917295385057353311801153679;
38 const double pihalf = 1.570796326794896619231321691639751442099;
39 const double inv_pihalf = 0.6366197723675813430755350534900574;
40 const double inv_sqrt4pi = 0.2820947917738781434740397257803862929220;
41 const double inv_sqrt2pi = 0.3989422804014327028632180827116826549172;
43 const double deg2rad = 0.0174532925199432954743717;
44 const double rad2deg = 57.295779513082322864647722;
45 const double ln2 = 0.6931471805599453094172321214581766;
46 const double ln10 = 2.3025850929940456840179914546843642;
47 const double inv_ln2 = 1.4426950408889634073599246810018921;
63 double acos(
const double& arg);
64 double atan2(
const double& y,
const double& x);
68 double asind(
const double& value);
69 double acosd(
const double& value);
70 double atand(
const double& value);
71 double atan2d(
const double& y,
const double& x);
75 double gammln(
const double& arg);
76 double erf(
const double& arg);
77 double erfc(
const double& arg);
78 double erfinv(
const double& arg);
79 double modulo(
const double& v1,
const double& v2);
double tand(const double &angle)
Compute tangens of angle in degrees.
double erf(const double &arg)
Computes error function.
double gauss_integral(const double &x1, const double &x2)
Returns the integral of a Gaussian function.
double modulo(const double &v1, const double &v2)
Returns the remainder of the division.
double acos(const double &arg)
Computes acos by avoiding NaN due to rounding errors.
double atand(const double &value)
Compute arc tangens in degrees.
GVector sqrt(const GVector &vector)
Computes square root of vector elements.
double acosd(const double &value)
Compute arc cosine in degrees.
double erfinv(const double &arg)
Computes inverse error function.
void sincosd(const double &angle, double *s, double *c)
Compute sine and cosine of angle in degrees.
double angle(const GVector &a, const GVector &b)
Computes angle between vectors.
double erfc(const double &arg)
Computes complementary error function.
double plaw_integral(const double &x1, const double &f1, const double &x2, const double &f2)
Returns the integral of a power law.
double gammln(const double &arg)
Computes logarithm of gamma function.
double atan2d(const double &y, const double &x)
Compute arc tangens in degrees.
double cosd(const double &angle)
Compute cosine of angle in degrees.
double asind(const double &value)
Compute arc sine in degrees.
double atan2(const double &y, const double &x)
Compute arc tangens in radians.
GVector exp(const GVector &vector)
Computes exponential of vector elements.
const double sqrt_onehalf
double sind(const double &angle)
Compute sine of angle in degrees.
GVector log10(const GVector &vector)
Computes base10 logarithm of vector elements.