5 #ifndef MECURYDPM_EXTENDEDMATH_H
6 #define MECURYDPM_EXTENDEDMATH_H
23 const Mdouble pi = 3.1415926535897932384626433832795;
31 const std::complex<Mdouble>
i = {0.0, 1.0};
71 Mdouble endCondition,
Mdouble curVal = std::numeric_limits<Mdouble>::quiet_NaN());
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
Eigen::Triplet< double > T
Definition: EigenUnitTest.cpp:11
double Mdouble
Definition: GeneralDefine.h:13
RowVector3d w
Definition: Matrix_resize_int.cpp:3
float * p
Definition: Tutorial_Map_using.cpp:9
Map< RowVectorXf > v2(M2.data(), M2.size())
M1<< 1, 2, 3, 4, 5, 6, 7, 8, 9;Map< RowVectorXf > v1(M1.data(), M1.size())
Implementation of a 3D matrix.
Definition: Kernel/Math/Matrix.h:17
Implementation of a 3D symmetric matrix.
Definition: MatrixSymmetric.h:16
Definition: NumericalVector.h:44
This class contains the 4 components of a quaternion and the standard operators and functions needed ...
Definition: Kernel/Math/Quaternion.h:42
Definition: Kernel/Math/Vector.h:30
@ N
Definition: constructor.cpp:22
#define min(a, b)
Definition: datatypes.h:22
#define max(a, b)
Definition: datatypes.h:23
char char char int int * k
Definition: level2_impl.h:374
double theta
Definition: two_d_biharmonic.cc:236
val
Definition: calibrate.py:119
Definition: GeneralDefine.h:21
const Mdouble R
Definition: ExtendedMath.h:29
const Mdouble sqr_pi
Definition: ExtendedMath.h:25
const Mdouble sqrt_3
Definition: ExtendedMath.h:27
const Mdouble pi
Definition: ExtendedMath.h:23
const Mdouble cbrt_2
Definition: ExtendedMath.h:28
const std::complex< Mdouble > i
Definition: ExtendedMath.h:31
const Mdouble stefanBoltzmanConstant
Definition: ExtendedMath.h:30
const Mdouble sqrt_pi
Definition: ExtendedMath.h:24
const Mdouble sqrt_2
Definition: ExtendedMath.h:26
const Mdouble degree
Definition: ExtendedMath.h:32
Namespace for some extra maths function that are often needed
Definition: ExtendedMath.h:39
Mdouble log(Mdouble Power)
Definition: ExtendedMath.cc:83
Mdouble goldenSectionSearch(Mdouble(*function)(const Mdouble), Mdouble min, Mdouble cur, Mdouble max, Mdouble endCondition, Mdouble curVal=std::numeric_limits< Mdouble >::quiet_NaN())
This function performs a golden section search to find the location of the minimum of a function.
Definition: ExtendedMath.cc:185
Mdouble cos(Mdouble x)
Definition: ExtendedMath.cc:43
Mdouble beta(Mdouble z, Mdouble w)
This is the beta function, returns the approximation based on cmath's implementation of ln(gamma)
Definition: ExtendedMath.cc:143
T square(const T val)
squares a number
Definition: ExtendedMath.h:86
T tan(T x)
Definition: ExtendedMath.h:158
Mdouble exp(Mdouble Exponent)
Definition: ExtendedMath.cc:63
int sign(T val)
This is a sign function, it returns -1 for negative numbers, 1 for positive numbers and 0 for 0.
Definition: ExtendedMath.h:77
Mdouble I0(Mdouble x)
Definition: ExtendedMath.cc:370
bool isEqual(Mdouble v1, Mdouble v2, Mdouble absError)
Compares the difference of two Mdouble with an absolute error, useful in UnitTests.
Definition: ExtendedMath.cc:230
Mdouble gamma(Mdouble gamma_in)
This is the gamma function returns the true value for the half integer value.
Definition: ExtendedMath.cc:116
Mdouble I0_exp(Mdouble x)
Definition: ExtendedMath.cc:290
Mdouble chebyshev(Mdouble x, const Mdouble coef[], int N)
Namespace for evaluating the zeroth modified Bessel function of the first kind, I0(x),...
Definition: ExtendedMath.cc:272
Mdouble sin(Mdouble x)
Definition: ExtendedMath.cc:23
constexpr T factorial(const T t)
factorial function
Definition: ExtendedMath.h:135
Mdouble chi_squared_prob(Mdouble x, unsigned int k)
This is the function which actually gives the probability back using a chi squared test.
Definition: ExtendedMath.cc:167
Mdouble chi_squared(Mdouble x, unsigned int k)
This is a chi_squared function return the value x and degrees of freedom k.
Definition: ExtendedMath.cc:151
T cubic(const T val)
calculates the cube of a number
Definition: ExtendedMath.h:95
list x
Definition: plotDoE.py:28
t
Definition: plotPSD.py:36
Definition: ExtendedMath.h:180
NumericalVector< std::complex< Mdouble > > sphericalHarmonics(int p, Mdouble theta, Mdouble phi)
Definition: ExtendedMath.cc:424
NumericalVector computeSquaredFactorialValues(int p)
Definition: ExtendedMath.cc:452
NumericalVector associatedLegendrePolynomials(int n, Mdouble x)
Definition: ExtendedMath.cc:380