NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
functionimplementation.cpp File Reference
#include "functionimplementation.hpp"
#include <cstdlib>
#include <cmath>
#include <fstream>
#include <string>
#include <iostream>
#include <locale>
#include <limits>
#include <ios>
#include <iomanip>
#include <numeric>
#include <ctime>
#include <csignal>
#include <boost/math/common_factor.hpp>
#include <gsl/gsl_sf.h>
#include <noise/noise.h>
#include "student_t.hpp"
#include "../datamanagement/memorymanager.hpp"
#include "../utils/tools.hpp"
#include "../version.h"
Include dependency graph for functionimplementation.cpp:

Go to the source code of this file.

Macros

#define _USE_MATH_DEFINES
 

Functions

value_type parser_Mega (const value_type &a_fVal)
 Conversion function for 1M. More...
 
value_type parser_Milli (const value_type &a_fVal)
 Conversion function for 1m. More...
 
value_type parser_Giga (const value_type &a_fVal)
 Conversion function for 1G. More...
 
value_type parser_Kilo (const value_type &a_fVal)
 Conversion function for 1k. More...
 
value_type parser_Micro (const value_type &a_fVal)
 Conversion function for 1mu. More...
 
value_type parser_Nano (const value_type &a_fVal)
 Conversion function for 1n. More...
 
value_type parser_Not (const value_type &v)
 Function representing the logical NOT operator. More...
 
value_type parser_Ignore (const value_type &v)
 Identity function. Used for ignoring functions and parameters in special cases. More...
 
value_type parser_ElectronVolt (const value_type &v)
 Conversion function for 1eV. More...
 
value_type parser_Fermi (const value_type &v)
 Conversion function for 1fm. More...
 
value_type parser_Angstroem (const value_type &v)
 Conversion function for 1A. More...
 
value_type parser_Barn (const value_type &v)
 Conversion function for 1bn. More...
 
value_type parser_Torr (const value_type &v)
 Conversion function for 1Torr/1mmhg. More...
 
value_type parser_AstroUnit (const value_type &v)
 Conversion function for 1AU. More...
 
value_type parser_Lightyear (const value_type &v)
 Conversion function for 1ly. More...
 
value_type parser_Parsec (const value_type &v)
 Conversion function for 1pc. More...
 
value_type parser_Mile (const value_type &v)
 Conversion function for 1mi. More...
 
value_type parser_Yard (const value_type &v)
 Conversion function for 1yd. More...
 
value_type parser_Foot (const value_type &v)
 Conversion function for 1ft. More...
 
value_type parser_Inch (const value_type &v)
 Conversion function for 1in. More...
 
value_type parser_Calorie (const value_type &v)
 Conversion function for 1cal. More...
 
value_type parser_PSI (const value_type &v)
 Conversion function for 1psi. More...
 
value_type parser_Knoten (const value_type &v)
 Conversion function for 1kn. More...
 
value_type parser_liter (const value_type &v)
 Conversion function for 1l. More...
 
value_type parser_kmh (const value_type &v)
 Conversion function for 1kmh. More...
 
value_type parser_mph (const value_type &v)
 Conversion function for 1mph. More...
 
value_type parser_Celsius (const value_type &v)
 Conversion function for 1°C. More...
 
value_type parser_Fahrenheit (const value_type &v)
 Conversion function for 1°F. More...
 
value_type parser_Curie (const value_type &v)
 Conversion function for 1C. More...
 
value_type parser_Gauss (const value_type &v)
 Conversion function for 1Gs. More...
 
value_type parser_Poise (const value_type &v)
 Conversion function for 1Ps. More...
 
value_type parser_mol (const value_type &v)
 Conversion function for 1mol. More...
 
value_type parser_imaginaryUnit (const value_type &v)
 Multiplies a number with the imaginary unit. More...
 
value_type parser_real (const value_type &v)
 Extracts the real part of a complex number. More...
 
value_type parser_imag (const value_type &v)
 Extracts the imaginary part of a complex number. More...
 
value_type parser_rect2polar (const value_type &v)
 Converts a rectangular representation into polar representation and returns it as a new complex number. More...
 
value_type parser_polar2rect (const value_type &v)
 Converts a polar representation into a rectangular representation and returns it as a new complex number. More...
 
value_type parser_conj (const value_type &v)
 Calculates the complex conjugate number of the passed complex number. More...
 
value_type parser_complex (const value_type &re, const value_type &im)
 Construct a complex number from two real numbers. More...
 
value_type parser_Faculty (const value_type &v)
 Function representing the faculty of any natural number. More...
 
value_type parser_doubleFaculty (const value_type &v)
 Function representing the double faculty of any natural number. More...
 
value_type parser_Binom (const value_type &v1, const value_type &v2)
 Function representing the binomial coefficient. More...
 
value_type parser_Num (const value_type *vElements, int nElements)
 This function returns the number of valid elements in its array. More...
 
value_type parser_Cnt (const value_type *vElements, int nElements)
 This functioon simply returns the number of elements in its array (even the invalid ones). More...
 
value_type parser_Std (const value_type *vElements, int nElements)
 This function calculates the standard deviation of the elements in the passed array. More...
 
value_type parser_product (const value_type *vElements, int nElements)
 This function calculates the product of all elements in the passed array. More...
 
value_type parser_Norm (const value_type *vElements, int nElements)
 This function calculates the vector norm of the elements in the passed array. More...
 
value_type parser_Med (const value_type *vElements, int nElements)
 This function calculates the median of the elements in the passed array. More...
 
value_type parser_Pct (const value_type *vElements, int nElements)
 This function calculates the selected percentile of the passed array. More...
 
value_type parser_compare (const value_type *vElements, int nElements)
 This function searches for elements of a specified type in the passed array. More...
 
value_type parser_and (const value_type *vElements, int nElements)
 This function calculates the logical AND operation between all elements in the passed array. More...
 
value_type parser_or (const value_type *vElements, int nElements)
 This function calculates the logical OR operation between all elements in the passed array. More...
 
value_type parser_xor (const value_type *vElements, int nElements)
 This function calculates the logical XOR operation between all elements in the passed array. More...
 
value_type parser_polynomial (const value_type *vElements, int nElements)
 This function implements an abstract polynomial of an arbitrary order. More...
 
value_type parser_perlin (const value_type *vElements, int nElements)
 This function implements the perlin noise function. More...
 
value_type parser_Sum (const value_type *vElements, int nElements)
 This function summarizes all elements in the passed array. More...
 
value_type parser_Avg (const value_type *vElements, int nElements)
 This function calculates the average of all elements in passed array. More...
 
value_type parser_Min (const value_type *vElements, int nElements)
 This function calculates the minimal value of all elements in the passed array. More...
 
value_type parser_Max (const value_type *vElements, int nElements)
 This function calculates the maximal value of all elements in the passed array. More...
 
value_type parser_MinPos (const value_type *vElements, int nElements)
 This function returns the index of the (first) minimal value in the array. More...
 
value_type parser_MaxPos (const value_type *vElements, int nElements)
 This function returns the index of the (first) maximal value in the array. More...
 
value_type parser_round (const value_type &vToRound, const value_type &vDecimals)
 This function rounds the passed value to the selected number of decimals. More...
 
value_type parser_toRadian (const value_type &v)
 This function converts degree to radian. More...
 
value_type parser_toDegree (const value_type &v)
 This function converts radian to degree. More...
 
value_type parser_SphericalHarmonics (const value_type &vl, const value_type &vm, const value_type &theta, const value_type &phi)
 This function calculates the real part of the selected spherical harmonics. More...
 
value_type parser_imSphericalHarmonics (const value_type &vl, const value_type &vm, const value_type &theta, const value_type &phi)
 This function calculates the imaginary part of the selected spherical harmonics. More...
 
value_type parser_Zernike (const value_type &vn, const value_type &vm, const value_type &rho, const value_type &phi)
 This function calculates the selected Zernike polynomials. More...
 
value_type parser_ZernikeRadial (int n, int m, const value_type &rho)
 This function calculates the radial part of the Zernike polynomials. More...
 
value_type parser_SinusCardinalis (const value_type &v)
 This function calculates the cardinal sine of x. More...
 
value_type parser_SphericalBessel (const value_type &vn, const value_type &vc)
 This function calculates the spherical bessel function. More...
 
value_type parser_SphericalNeumann (const value_type &vn, const value_type &vc)
 This function calculates the spherical von Neumann function. More...
 
value_type parser_LegendrePolynomial (const value_type &vn, const value_type &v)
 This function calculates the Legendre polynomials of the selected order. More...
 
value_type parser_AssociatedLegendrePolynomial (const value_type &vl, const value_type &vm, const value_type &v)
 This function calculates the associated Legendre polynomials of the selected order. More...
 
value_type parser_LaguerrePolynomial (const value_type &vn, const value_type &v)
 This function calculates the Laguerre polynomials of the selected order. More...
 
value_type parser_AssociatedLaguerrePolynomial (const value_type &vn, const value_type &vk, const value_type &v)
 This function calculates the associated Laguerre polynomials of the selected order. More...
 
value_type parser_HermitePolynomial (const value_type &vn, const value_type &v)
 This function calculates the Hermite polynomials of the selected order. More...
 
value_type parser_BetheWeizsaecker (const value_type &vN, const value_type &vZ)
 This function calculates the nucleic core binding energy according the Bethe Weizsäcker formula. More...
 
value_type parser_Heaviside (const value_type &v)
 This function represents the Heaviside (theta) function. More...
 
value_type parser_phi (const value_type &x, const value_type &y)
 This function calculates the angle of a vector and the x axis in the x-y plane (the azimuthal angle phi). More...
 
value_type parser_theta (const value_type &x, const value_type &y, const value_type &z)
 This function calculates the angle of a vector and the z axis in any z-r plane (the polar angle theta). More...
 
value_type parser_Random (const value_type &vRandMin, const value_type &vRandMax)
 This function returns a uniformly distributed random number between both boundaries. More...
 
value_type parser_gRandom (const value_type &vRandAvg, const value_type &vRandstd)
 This function returns a gaussian distributed random number using the passed values as mean and standard deviation. More...
 
value_type parser_erf (const value_type &x)
 This function calculates the gaussian error function. More...
 
value_type parser_erfc (const value_type &x)
 This function calculates the complementary gaussian error function. More...
 
value_type parser_gamma (const value_type &x)
 This function calculates the riemannian Gamma function. More...
 
value_type parser_AiryA (const value_type &x)
 This function calculates the Airy function Ai(x). More...
 
value_type parser_AiryB (const value_type &x)
 This function calculates the Airy function Bi(x). More...
 
value_type parser_RegularCylBessel (const value_type &n, const value_type &x)
 This function calculates the regulary bessel function. More...
 
value_type parser_IrregularCylBessel (const value_type &n, const value_type &x)
 This function calculates the irregulary bessel (von Neumann) function. More...
 
value_type parser_EllipticF (const value_type &phic, const value_type &kc)
 This function returns the value of the elliptic intergal F(phi,k). More...
 
value_type parser_EllipticE (const value_type &phic, const value_type &kc)
 This function returns the value of the elliptic intergal E(phi,k). More...
 
value_type parser_EllipticP (const value_type &phi, const value_type &n, const value_type &k)
 This function returns the value of the elliptic intergal Pi(phi,n,k). More...
 
value_type parser_EllipticD (const value_type &phi, const value_type &n, const value_type &k)
 This function returns the value of the elliptic intergal D(phi,n,k). More...
 
value_type parser_beta (const value_type &a, const value_type &b)
 This function returns the value of the Beta function. More...
 
static double ek (int k, int N)
 Calculates the sum of binomial coefficients from k to N. More...
 
static std::complex< double > complex_zeta (const std::complex< double > &s)
 Calculates the complex-valued Riemannian Zeta function for complex numbers with Re(s) >= 0. More...
 
value_type parser_zeta (const value_type &s)
 This function returns the value of the Zeta function. More...
 
value_type parser_clausen (const value_type &x)
 This function returns the value of the Clausen function. More...
 
value_type parser_digamma (const value_type &x)
 This function returns the value of the Digamma function. More...
 
value_type parser_polygamma (const value_type &n, const value_type &x)
 This function returns the value if the Polygamma function. More...
 
value_type parser_dilogarithm (const value_type &x)
 This function returns the value of the Dilogarithm Li2(x). More...
 
value_type parser_floor (const value_type &x)
 This is the floor function. More...
 
value_type parser_roof (const value_type &x)
 This is the roof (ceil) function. More...
 
value_type parser_rect (const value_type &x, const value_type &x0, const value_type &x1)
 This is the rect function. More...
 
value_type parser_ivl (const value_type &x, const value_type &x0, const value_type &x1, const value_type &lborder, const value_type &rborder)
 This function describes an interval with borders of a selected type (including, excluding, ignore). More...
 
value_type parser_studentFactor (const value_type &vFreedoms, const value_type &vAlpha)
 This function returns the Student factor s_t for the selected degrees of freedom and a confidence interval. More...
 
value_type parser_gcd (const value_type &n, const value_type &k)
 This function returns the greatest common divisor of both argments. More...
 
value_type parser_lcm (const value_type &n, const value_type &k)
 This function returns the least common multiple of both arguments. More...
 
value_type parser_Mod (const value_type &v1, const value_type &v2)
 This function represents the Modulo operator. More...
 
value_type parser_XOR (const value_type &v1, const value_type &v2)
 This function represent the XOR operator. More...
 
value_type parser_BinOR (const value_type &v1, const value_type &v2)
 This function represents the binary OR operator. More...
 
value_type parser_BinAND (const value_type &v1, const value_type &v2)
 This function represents the binary AND operator. More...
 
value_type parser_is_string (const value_type &v)
 This function is a numerical version of the string is_string() function. Used as a fallback. More...
 
value_type parser_time ()
 This function returns the current UNIX time. More...
 
value_type parser_clock ()
 This function returns the current CPU clock count. More...
 
value_type parser_sleep (const value_type &milliseconds)
 Sleeps for the passed amount of milliseconds and returns this number. More...
 
value_type parser_log_b (const value_type &b, const value_type &x)
 Calculates the logarithm of x using the base b. More...
 
value_type parser_numereversion ()
 Returns the version number of NumeRe as a natural number. More...
 
value_type parser_date (const value_type &vTime, const value_type &vType)
 This function converts UNIX time values into a selected part of a time stamp. More...
 
value_type parser_weeknum (const value_type &vTime)
 This function returns the calendar week associated with the passed time value. More...
 
value_type parser_isnan (const value_type &v)
 Returns, whether the selected value is NaN. More...
 
value_type parser_interval (const value_type &v, const value_type &vLeft, const value_type &vRight)
 This function numerically defines a valid value range (the value is set to NaN, if outside of this range). More...
 
value_type parser_cot (const value_type &x)
 This function returns the cotangent of the passed value. More...
 
value_typeparser_AddVariable (const char_type *a_szName, void *a_pUserData)
 This function represents the numerical variable factory. New memory is allocated in this function and stored in an internal list managed by the parser. More...
 
value_type parser_sec (const value_type &x)
 This function returns the secant of the passed value. More...
 
value_type parser_csc (const value_type &x)
 This function returns the cosecant of the passed value. More...
 
value_type parser_asec (const value_type &x)
 This function returns the inverse secant of the passed value. More...
 
value_type parser_acsc (const value_type &x)
 This function returns the inverse cosecant of the passed value. More...
 
value_type parser_sech (const value_type &x)
 This function returns the hyperbolic secant of the passed value. More...
 
value_type parser_csch (const value_type &x)
 This function returns the hyperbolic cosecant of the passed value. More...
 
value_type parser_asech (const value_type &x)
 This function returns the inverse hyperbolic secant of the passed value. More...
 
value_type parser_acsch (const value_type &x)
 This function returns the inverse hyperbolic cosecant of the passed value. More...
 

Variables

int nErrorIndices [2] = {-1,-1}
 
string sErrorToken = ""
 
time_t tTimeZero
 
volatile sig_atomic_t exitsignal = 0
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 24 of file functionimplementation.cpp.

Function Documentation

◆ complex_zeta()

static std::complex< double > complex_zeta ( const std::complex< double > &  s)
static

Calculates the complex-valued Riemannian Zeta function for complex numbers with Re(s) >= 0.

Parameters
sconst std::complex<double>&
Returns
std::complex<double>

Definition at line 2188 of file functionimplementation.cpp.

References ek(), and intPower().

Referenced by parser_zeta().

Here is the call graph for this function:

◆ ek()

static double ek ( int  k,
int  N 
)
static

Calculates the sum of binomial coefficients from k to N.

Parameters
kint
Nint
Returns
double

Definition at line 2162 of file functionimplementation.cpp.

References parser_Binom().

Referenced by complex_zeta().

Here is the call graph for this function:

◆ parser_acsc()

value_type parser_acsc ( const value_type x)

This function returns the inverse cosecant of the passed value.

Parameters
xconst value_type&
Returns
value_type

Definition at line 2819 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_acsch()

value_type parser_acsch ( const value_type x)

This function returns the inverse hyperbolic cosecant of the passed value.

Parameters
xconst value_type&
Returns
value_type

Definition at line 2875 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_AddVariable()

value_type * parser_AddVariable ( const char_type a_szName,
void *  a_pUserData 
)

This function represents the numerical variable factory. New memory is allocated in this function and stored in an internal list managed by the parser.

Parameters
a_szNameconst char_type*
a_pUserDatavoid*
Returns
value_type*

Definition at line 2755 of file functionimplementation.cpp.

Referenced by NumeReKernel::StartUp().

◆ parser_AiryA()

value_type parser_AiryA ( const value_type x)

This function calculates the Airy function Ai(x).

Parameters
xconst value_type&
Returns
value_type

Definition at line 1928 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_AiryB()

value_type parser_AiryB ( const value_type x)

This function calculates the Airy function Bi(x).

Parameters
xconst value_type&
Returns
value_type

Definition at line 1942 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_and()

value_type parser_and ( const value_type vElements,
int  nElements 
)

This function calculates the logical AND operation between all elements in the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 997 of file functionimplementation.cpp.

References mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Angstroem()

value_type parser_Angstroem ( const value_type v)

Conversion function for 1A.

Parameters
vconst value_type&
Returns
value_type

Definition at line 217 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_asec()

value_type parser_asec ( const value_type x)

This function returns the inverse secant of the passed value.

Parameters
xconst value_type&
Returns
value_type

Definition at line 2805 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_asech()

value_type parser_asech ( const value_type x)

This function returns the inverse hyperbolic secant of the passed value.

Parameters
xconst value_type&
Returns
value_type

Definition at line 2861 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_AssociatedLaguerrePolynomial()

value_type parser_AssociatedLaguerrePolynomial ( const value_type vn,
const value_type vk,
const value_type v 
)

This function calculates the associated Laguerre polynomials of the selected order.

Parameters
vnconst value_type&
vkconst value_type&
vconst value_type&
Returns
value_type

Definition at line 1670 of file functionimplementation.cpp.

References intCast(), intPower(), mu::isinf(), mu::isnan(), and parser_Faculty().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_AssociatedLegendrePolynomial()

value_type parser_AssociatedLegendrePolynomial ( const value_type vl,
const value_type vm,
const value_type v 
)

This function calculates the associated Legendre polynomials of the selected order.

Parameters
vlconst value_type&
vmconst value_type&
vconst value_type&
Returns
value_type

Definition at line 1612 of file functionimplementation.cpp.

References intCast(), intPower(), mu::isinf(), mu::isnan(), parser_AssociatedLegendrePolynomial(), parser_doubleFaculty(), parser_Faculty(), and parser_LegendrePolynomial().

Referenced by NumeReKernel::defineFunctions(), parser_AssociatedLegendrePolynomial(), parser_imSphericalHarmonics(), and parser_SphericalHarmonics().

Here is the call graph for this function:

◆ parser_AstroUnit()

value_type parser_AstroUnit ( const value_type v)

Conversion function for 1AU.

Parameters
vconst value_type&
Returns
value_type

Definition at line 262 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Avg()

value_type parser_Avg ( const value_type vElements,
int  nElements 
)

This function calculates the average of all elements in passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 1157 of file functionimplementation.cpp.

References parser_Num(), and parser_Sum().

Referenced by mu::Parser::Avg(), and parser_Std().

Here is the call graph for this function:

◆ parser_Barn()

value_type parser_Barn ( const value_type v)

Conversion function for 1bn.

Parameters
vconst value_type&
Returns
value_type

Definition at line 232 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_beta()

value_type parser_beta ( const value_type a,
const value_type b 
)

This function returns the value of the Beta function.

Parameters
aconst value_type&
bconst value_type&
Returns
value_type

Definition at line 2141 of file functionimplementation.cpp.

References intCast(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_BetheWeizsaecker()

value_type parser_BetheWeizsaecker ( const value_type vN,
const value_type vZ 
)

This function calculates the nucleic core binding energy according the Bethe Weizsäcker formula.

Parameters
vNconst value_type&
vZconst value_type&
Returns
value_type

Definition at line 1730 of file functionimplementation.cpp.

References intCast(), mu::isinf(), mu::isnan(), and parser_round().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_BinAND()

value_type parser_BinAND ( const value_type v1,
const value_type v2 
)

This function represents the binary AND operator.

Parameters
v1const value_type&
v2const value_type&
Returns
value_type

Definition at line 2525 of file functionimplementation.cpp.

References intCast(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Binom()

value_type parser_Binom ( const value_type v1,
const value_type v2 
)

Function representing the binomial coefficient.

Parameters
v1const value_type&
v2const value_type&
Returns
value_type

Definition at line 703 of file functionimplementation.cpp.

References intCast(), mu::isinf(), mu::isnan(), and parser_Faculty().

Referenced by NumeReKernel::defineFunctions(), ek(), parser_LaguerrePolynomial(), and parser_LegendrePolynomial().

Here is the call graph for this function:

◆ parser_BinOR()

value_type parser_BinOR ( const value_type v1,
const value_type v2 
)

This function represents the binary OR operator.

Parameters
v1const value_type&
v2const value_type&
Returns
value_type

Definition at line 2507 of file functionimplementation.cpp.

References intCast(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Calorie()

value_type parser_Calorie ( const value_type v)

Conversion function for 1cal.

Parameters
vconst value_type&
Returns
value_type

Definition at line 367 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Celsius()

value_type parser_Celsius ( const value_type v)

Conversion function for 1°C.

Parameters
vconst value_type&
Returns
value_type

Definition at line 457 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_clausen()

value_type parser_clausen ( const value_type x)

This function returns the value of the Clausen function.

Parameters
xconst value_type&
Returns
value_type

Definition at line 2241 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_clock()

value_type parser_clock ( )

This function returns the current CPU clock count.

Returns
value_type

Definition at line 2572 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_Cnt()

value_type parser_Cnt ( const value_type vElements,
int  nElements 
)

This functioon simply returns the number of elements in its array (even the invalid ones).

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 765 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_compare()

value_type parser_compare ( const value_type vElements,
int  nElements 
)

This function searches for elements of a specified type in the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 891 of file functionimplementation.cpp.

References intCast(), mu::isinf(), mu::isnan(), and mu::real().

Referenced by NumeReKernel::defineFunctions(), parser_MaxPos(), and parser_MinPos().

Here is the call graph for this function:

◆ parser_complex()

value_type parser_complex ( const value_type re,
const value_type im 
)

Construct a complex number from two real numbers.

Parameters
reconst value_type&
imconst value_type&
Returns
value_type

Definition at line 635 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_conj()

value_type parser_conj ( const value_type v)

Calculates the complex conjugate number of the passed complex number.

Parameters
vconst value_type&
Returns
value_type

Definition at line 620 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_cot()

value_type parser_cot ( const value_type x)

This function returns the cotangent of the passed value.

Parameters
xconst value_type&
Returns
value_type

Definition at line 2732 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_csc()

value_type parser_csc ( const value_type x)

This function returns the cosecant of the passed value.

Parameters
xconst value_type&
Returns
value_type

Definition at line 2791 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_csch()

value_type parser_csch ( const value_type x)

This function returns the hyperbolic cosecant of the passed value.

Parameters
xconst value_type&
Returns
value_type

Definition at line 2847 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_Curie()

value_type parser_Curie ( const value_type v)

Conversion function for 1C.

Parameters
vconst value_type&
Returns
value_type

Definition at line 487 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_date()

value_type parser_date ( const value_type vTime,
const value_type vType 
)

This function converts UNIX time values into a selected part of a time stamp.

Parameters
vTimeconst value_type&
vTypeconst value_type&
Returns
value_type

Definition at line 2636 of file functionimplementation.cpp.

References date::year_month_day::day(), getTimeStampFromTimePoint(), time_stamp::m_hours, time_stamp::m_microsecs, time_stamp::m_millisecs, time_stamp::m_minutes, time_stamp::m_seconds, time_stamp::m_ymd, date::year_month_day::month(), mu::rint(), to_timePoint(), and date::year_month_day::year().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_digamma()

value_type parser_digamma ( const value_type x)

This function returns the value of the Digamma function.

Parameters
xconst value_type&
Returns
value_type

Definition at line 2258 of file functionimplementation.cpp.

References intCast(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_dilogarithm()

value_type parser_dilogarithm ( const value_type x)

This function returns the value of the Dilogarithm Li2(x).

Parameters
xconst value_type&
Returns
value_type

Definition at line 2299 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_doubleFaculty()

value_type parser_doubleFaculty ( const value_type v)

Function representing the double faculty of any natural number.

Parameters
vconst value_type&
Returns
value_type

Definition at line 679 of file functionimplementation.cpp.

References intCast(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions(), NumeReKernel::defineOperators(), and parser_AssociatedLegendrePolynomial().

Here is the call graph for this function:

◆ parser_ElectronVolt()

value_type parser_ElectronVolt ( const value_type v)

Conversion function for 1eV.

Parameters
vconst value_type&
Returns
value_type

Definition at line 187 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_EllipticD()

value_type parser_EllipticD ( const value_type phi,
const value_type n,
const value_type k 
)

This function returns the value of the elliptic intergal D(phi,n,k).

Parameters
phiconst value_type&
nconst value_type&
kconst value_type&
Returns
value_type

Definition at line 2106 of file functionimplementation.cpp.

References date::floor(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_EllipticE()

value_type parser_EllipticE ( const value_type phic,
const value_type kc 
)

This function returns the value of the elliptic intergal E(phi,k).

Parameters
phicconst value_type&
kcconst value_type&
Returns
value_type

Definition at line 2031 of file functionimplementation.cpp.

References date::floor(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_EllipticF()

value_type parser_EllipticF ( const value_type phic,
const value_type kc 
)

This function returns the value of the elliptic intergal F(phi,k).

Parameters
phicconst value_type&
kcconst value_type&
Returns
value_type

Definition at line 1993 of file functionimplementation.cpp.

References date::floor(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_EllipticP()

value_type parser_EllipticP ( const value_type phi,
const value_type n,
const value_type k 
)

This function returns the value of the elliptic intergal Pi(phi,n,k).

Parameters
phiconst value_type&
nconst value_type&
kconst value_type&
Returns
value_type

Definition at line 2070 of file functionimplementation.cpp.

References date::floor(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_erf()

value_type parser_erf ( const value_type x)

This function calculates the gaussian error function.

Parameters
xconst value_type&
Returns
value_type

Definition at line 1872 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_erfc()

value_type parser_erfc ( const value_type x)

This function calculates the complementary gaussian error function.

Parameters
xconst value_type&
Returns
value_type

Definition at line 1888 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Faculty()

value_type parser_Faculty ( const value_type v)

Function representing the faculty of any natural number.

Parameters
vconst value_type&
Returns
value_type

Definition at line 649 of file functionimplementation.cpp.

References date::abs(), intCast(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions(), NumeReKernel::defineOperators(), parser_AssociatedLaguerrePolynomial(), parser_AssociatedLegendrePolynomial(), parser_Binom(), parser_imSphericalHarmonics(), parser_LaguerrePolynomial(), parser_SphericalHarmonics(), and parser_ZernikeRadial().

Here is the call graph for this function:

◆ parser_Fahrenheit()

value_type parser_Fahrenheit ( const value_type v)

Conversion function for 1°F.

Parameters
vconst value_type&
Returns
value_type

Definition at line 472 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Fermi()

value_type parser_Fermi ( const value_type v)

Conversion function for 1fm.

Parameters
vconst value_type&
Returns
value_type

Definition at line 202 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_floor()

value_type parser_floor ( const value_type x)

This is the floor function.

Parameters
xconst value_type&
Returns
value_type

Definition at line 2322 of file functionimplementation.cpp.

References date::floor().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Foot()

value_type parser_Foot ( const value_type v)

Conversion function for 1ft.

Parameters
vconst value_type&
Returns
value_type

Definition at line 337 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_gamma()

value_type parser_gamma ( const value_type x)

This function calculates the riemannian Gamma function.

Parameters
xconst value_type&
Returns
value_type

Definition at line 1904 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions(), and parser_zeta().

Here is the call graph for this function:

◆ parser_Gauss()

value_type parser_Gauss ( const value_type v)

Conversion function for 1Gs.

Parameters
vconst value_type&
Returns
value_type

Definition at line 502 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_gcd()

value_type parser_gcd ( const value_type n,
const value_type k 
)

This function returns the greatest common divisor of both argments.

Parameters
nconst value_type&
kconst value_type&
Returns
value_type

Definition at line 2437 of file functionimplementation.cpp.

References intCast().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Giga()

value_type parser_Giga ( const value_type a_fVal)

Conversion function for 1G.

Parameters
a_fValconst value_type&
Returns
value_type

Definition at line 96 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_gRandom()

value_type parser_gRandom ( const value_type vRandAvg,
const value_type vRandstd 
)

This function returns a gaussian distributed random number using the passed values as mean and standard deviation.

Parameters
vRandAvgconst value_type&
vRandstdconst value_type&
Returns
value_type

Definition at line 1854 of file functionimplementation.cpp.

References getRandGenInstance(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Heaviside()

value_type parser_Heaviside ( const value_type v)

This function represents the Heaviside (theta) function.

Parameters
vconst value_type&
Returns
value_type

Definition at line 1773 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_HermitePolynomial()

value_type parser_HermitePolynomial ( const value_type vn,
const value_type v 
)

This function calculates the Hermite polynomials of the selected order.

Parameters
vnconst value_type&
vconst value_type&
Returns
value_type

Definition at line 1701 of file functionimplementation.cpp.

References intCast(), mu::isinf(), mu::isnan(), and parser_HermitePolynomial().

Referenced by NumeReKernel::defineFunctions(), and parser_HermitePolynomial().

Here is the call graph for this function:

◆ parser_Ignore()

value_type parser_Ignore ( const value_type v)

Identity function. Used for ignoring functions and parameters in special cases.

Parameters
vconst value_type&
Returns
value_type

Definition at line 173 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions(), and NumeReKernel::defineOperators().

◆ parser_imag()

value_type parser_imag ( const value_type v)

Extracts the imaginary part of a complex number.

Parameters
vconst value_type&
Returns
value_type

Definition at line 576 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_imaginaryUnit()

value_type parser_imaginaryUnit ( const value_type v)

Multiplies a number with the imaginary unit.

Parameters
vconst value_type&
Returns
value_type

Definition at line 548 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineOperators().

◆ parser_imSphericalHarmonics()

value_type parser_imSphericalHarmonics ( const value_type vl,
const value_type vm,
const value_type theta,
const value_type phi 
)

This function calculates the imaginary part of the selected spherical harmonics.

Parameters
vlconst value_type&
vmconst value_type&
thetaconst value_type&
phiconst value_type&
Returns
value_type

Definition at line 1369 of file functionimplementation.cpp.

References date::abs(), intCast(), mu::isinf(), mu::isnan(), M_PI, parser_AssociatedLegendrePolynomial(), and parser_Faculty().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Inch()

value_type parser_Inch ( const value_type v)

Conversion function for 1in.

Parameters
vconst value_type&
Returns
value_type

Definition at line 352 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_interval()

value_type parser_interval ( const value_type v,
const value_type vLeft,
const value_type vRight 
)

This function numerically defines a valid value range (the value is set to NaN, if outside of this range).

Parameters
vconst value_type&
vLeftconst value_type&
vRightconst value_type&
Returns
value_type

Definition at line 2712 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_IrregularCylBessel()

value_type parser_IrregularCylBessel ( const value_type n,
const value_type x 
)

This function calculates the irregulary bessel (von Neumann) function.

Parameters
nconst value_type&
xconst value_type&
Returns
value_type

Definition at line 1975 of file functionimplementation.cpp.

References intCast().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_is_string()

value_type parser_is_string ( const value_type v)

This function is a numerical version of the string is_string() function. Used as a fallback.

Parameters
vconst value_type&
Returns
const value_type&

Definition at line 2543 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_isnan()

value_type parser_isnan ( const value_type v)

Returns, whether the selected value is NaN.

Parameters
vconst value_type&
Returns
value_type

Definition at line 2695 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_ivl()

value_type parser_ivl ( const value_type x,
const value_type x0,
const value_type x1,
const value_type lborder,
const value_type rborder 
)

This function describes an interval with borders of a selected type (including, excluding, ignore).

Parameters
xconst value_type&
x0const value_type&
x1const value_type&
lborderconst value_type&
rborderconst value_type&
Returns
value_type

Definition at line 2369 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_Kilo()

value_type parser_Kilo ( const value_type a_fVal)

Conversion function for 1k.

Parameters
a_fValconst value_type&
Returns
value_type

Definition at line 111 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_kmh()

value_type parser_kmh ( const value_type v)

Conversion function for 1kmh.

Parameters
vconst value_type&
Returns
value_type

Definition at line 427 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Knoten()

value_type parser_Knoten ( const value_type v)

Conversion function for 1kn.

Parameters
vconst value_type&
Returns
value_type

Definition at line 397 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_LaguerrePolynomial()

value_type parser_LaguerrePolynomial ( const value_type vn,
const value_type v 
)

This function calculates the Laguerre polynomials of the selected order.

Parameters
vnconst value_type&
vconst value_type&
Returns
value_type

Definition at line 1644 of file functionimplementation.cpp.

References intCast(), intPower(), mu::isinf(), mu::isnan(), parser_Binom(), and parser_Faculty().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_lcm()

value_type parser_lcm ( const value_type n,
const value_type k 
)

This function returns the least common multiple of both arguments.

Parameters
nconst value_type&
kconst value_type&
Returns
value_type

Definition at line 2452 of file functionimplementation.cpp.

References intCast().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_LegendrePolynomial()

value_type parser_LegendrePolynomial ( const value_type vn,
const value_type v 
)

This function calculates the Legendre polynomials of the selected order.

Parameters
vnconst value_type&
vconst value_type&
Returns
value_type

Definition at line 1585 of file functionimplementation.cpp.

References intCast(), intPower(), mu::isinf(), mu::isnan(), and parser_Binom().

Referenced by NumeReKernel::defineFunctions(), and parser_AssociatedLegendrePolynomial().

Here is the call graph for this function:

◆ parser_Lightyear()

value_type parser_Lightyear ( const value_type v)

Conversion function for 1ly.

Parameters
vconst value_type&
Returns
value_type

Definition at line 277 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_liter()

value_type parser_liter ( const value_type v)

Conversion function for 1l.

Parameters
vconst value_type&
Returns
value_type

Definition at line 412 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_log_b()

value_type parser_log_b ( const value_type b,
const value_type x 
)

Calculates the logarithm of x using the base b.

Parameters
bconst value_type&
xconst value_type&
Returns
value_type

Definition at line 2602 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Max()

value_type parser_Max ( const value_type vElements,
int  nElements 
)

This function calculates the maximal value of all elements in the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 1207 of file functionimplementation.cpp.

References mu::isnan(), max, and mu::real().

Referenced by mu::Parser::Max(), mu::parser_idxtolog(), and parser_MaxPos().

Here is the call graph for this function:

◆ parser_MaxPos()

value_type parser_MaxPos ( const value_type vElements,
int  nElements 
)

This function returns the index of the (first) maximal value in the array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 1261 of file functionimplementation.cpp.

References parser_compare(), and parser_Max().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Med()

value_type parser_Med ( const value_type vElements,
int  nElements 
)

This function calculates the median of the elements in the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 851 of file functionimplementation.cpp.

References Memory::med(), and Memory::writeData().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Mega()

value_type parser_Mega ( const value_type a_fVal)

Conversion function for 1M.

Parameters
a_fValconst value_type&
Returns
value_type

Definition at line 66 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Micro()

value_type parser_Micro ( const value_type a_fVal)

Conversion function for 1mu.

Parameters
a_fValconst value_type&
Returns
value_type

Definition at line 126 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Mile()

value_type parser_Mile ( const value_type v)

Conversion function for 1mi.

Parameters
vconst value_type&
Returns
value_type

Definition at line 307 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Milli()

value_type parser_Milli ( const value_type a_fVal)

Conversion function for 1m.

Parameters
a_fValconst value_type&
Returns
value_type

Definition at line 81 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Min()

value_type parser_Min ( const value_type vElements,
int  nElements 
)

This function calculates the minimal value of all elements in the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 1172 of file functionimplementation.cpp.

References mu::isnan(), min, and mu::real().

Referenced by mu::Parser::Min(), and parser_MinPos().

Here is the call graph for this function:

◆ parser_MinPos()

value_type parser_MinPos ( const value_type vElements,
int  nElements 
)

This function returns the index of the (first) minimal value in the array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 1242 of file functionimplementation.cpp.

References parser_compare(), and parser_Min().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Mod()

value_type parser_Mod ( const value_type v1,
const value_type v2 
)

This function represents the Modulo operator.

Parameters
v1const value_type&
v2const value_type&
Returns
value_type

Definition at line 2467 of file functionimplementation.cpp.

References date::floor(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_mol()

value_type parser_mol ( const value_type v)

Conversion function for 1mol.

Parameters
vconst value_type&
Returns
value_type

Definition at line 532 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_mph()

value_type parser_mph ( const value_type v)

Conversion function for 1mph.

Parameters
vconst value_type&
Returns
value_type

Definition at line 442 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Nano()

value_type parser_Nano ( const value_type a_fVal)

Conversion function for 1n.

Parameters
a_fValconst value_type&
Returns
value_type

Definition at line 141 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Norm()

value_type parser_Norm ( const value_type vElements,
int  nElements 
)

This function calculates the vector norm of the elements in the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 828 of file functionimplementation.cpp.

References mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Not()

value_type parser_Not ( const value_type v)

Function representing the logical NOT operator.

Parameters
vconst value_type&
Returns
value_type

Definition at line 157 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Num()

value_type parser_Num ( const value_type vElements,
int  nElements 
)

This function returns the number of valid elements in its array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 741 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions(), parser_Avg(), and parser_Std().

Here is the call graph for this function:

◆ parser_numereversion()

value_type parser_numereversion ( )

Returns the version number of NumeRe as a natural number.

Returns
value_type

Definition at line 2621 of file functionimplementation.cpp.

References AutoVersion::BUILD, AutoVersion::MAJOR, AutoVersion::MINOR, and AutoVersion::UBUNTU_VERSION_STYLE.

Referenced by NumeReKernel::defineFunctions().

◆ parser_or()

value_type parser_or ( const value_type vElements,
int  nElements 
)

This function calculates the logical OR operation between all elements in the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 1019 of file functionimplementation.cpp.

References mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Parsec()

value_type parser_Parsec ( const value_type v)

Conversion function for 1pc.

Parameters
vconst value_type&
Returns
value_type

Definition at line 292 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Pct()

value_type parser_Pct ( const value_type vElements,
int  nElements 
)

This function calculates the selected percentile of the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 871 of file functionimplementation.cpp.

References Memory::pct(), and Memory::writeData().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_perlin()

value_type parser_perlin ( const value_type vElements,
int  nElements 
)

This function implements the perlin noise function.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 1094 of file functionimplementation.cpp.

References intCast(), and mu::real().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_phi()

value_type parser_phi ( const value_type x,
const value_type y 
)

This function calculates the angle of a vector and the x axis in the x-y plane (the azimuthal angle phi).

Parameters
xconst value_type&
yconst value_type&
Returns
value_type

Definition at line 1792 of file functionimplementation.cpp.

References date::abs(), mu::isinf(), mu::isnan(), and M_PI.

Referenced by cartToCyl(), cartToPolar(), and NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Poise()

value_type parser_Poise ( const value_type v)

Conversion function for 1Ps.

Parameters
vconst value_type&
Returns
value_type

Definition at line 517 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_polar2rect()

value_type parser_polar2rect ( const value_type v)

Converts a polar representation into a rectangular representation and returns it as a new complex number.

Parameters
vconst value_type&
Returns
value_type

Definition at line 606 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_polygamma()

value_type parser_polygamma ( const value_type n,
const value_type x 
)

This function returns the value if the Polygamma function.

Parameters
nconst value_type&
xconst value_type&
Returns
value_type

Definition at line 2282 of file functionimplementation.cpp.

References intCast(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_polynomial()

value_type parser_polynomial ( const value_type vElements,
int  nElements 
)

This function implements an abstract polynomial of an arbitrary order.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 1069 of file functionimplementation.cpp.

References intPower().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_product()

value_type parser_product ( const value_type vElements,
int  nElements 
)

This function calculates the product of all elements in the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 805 of file functionimplementation.cpp.

References mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_PSI()

value_type parser_PSI ( const value_type v)

Conversion function for 1psi.

Parameters
vconst value_type&
Returns
value_type

Definition at line 382 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Random()

value_type parser_Random ( const value_type vRandMin,
const value_type vRandMax 
)

This function returns a uniformly distributed random number between both boundaries.

Parameters
vRandMinconst value_type&
vRandMaxconst value_type&
Returns
value_type

Definition at line 1834 of file functionimplementation.cpp.

References getRandGenInstance(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions(), and particleSwarmOptimizer().

Here is the call graph for this function:

◆ parser_real()

value_type parser_real ( const value_type v)

Extracts the real part of a complex number.

Parameters
vconst value_type&
Returns
value_type

Definition at line 562 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_rect()

value_type parser_rect ( const value_type x,
const value_type x0,
const value_type x1 
)

This is the rect function.

Parameters
xconst value_type&
x0const value_type&
x1const value_type&
Returns
value_type

Definition at line 2350 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_rect2polar()

value_type parser_rect2polar ( const value_type v)

Converts a rectangular representation into polar representation and returns it as a new complex number.

Parameters
vconst value_type&
Returns
value_type

Definition at line 591 of file functionimplementation.cpp.

References date::abs().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_RegularCylBessel()

value_type parser_RegularCylBessel ( const value_type n,
const value_type x 
)

This function calculates the regulary bessel function.

Parameters
nconst value_type&
xconst value_type&
Returns
value_type

Definition at line 1957 of file functionimplementation.cpp.

References intCast().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_roof()

value_type parser_roof ( const value_type x)

This is the roof (ceil) function.

Parameters
xconst value_type&
Returns
value_type

Definition at line 2335 of file functionimplementation.cpp.

References date::ceil().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_round()

value_type parser_round ( const value_type vToRound,
const value_type vDecimals 
)

This function rounds the passed value to the selected number of decimals.

Parameters
vToRoundconst value_type&
vDecimalsconst value_type&
Returns
value_type

Definition at line 1280 of file functionimplementation.cpp.

References date::abs(), intCast(), intPower(), mu::isinf(), mu::isnan(), and date::round().

Referenced by NumeReKernel::defineFunctions(), and parser_BetheWeizsaecker().

Here is the call graph for this function:

◆ parser_sec()

value_type parser_sec ( const value_type x)

This function returns the secant of the passed value.

Parameters
xconst value_type&
Returns
value_type

Definition at line 2777 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_sech()

value_type parser_sech ( const value_type x)

This function returns the hyperbolic secant of the passed value.

Parameters
xconst value_type&
Returns
value_type

Definition at line 2833 of file functionimplementation.cpp.

Referenced by NumeReKernel::defineFunctions().

◆ parser_SinusCardinalis()

value_type parser_SinusCardinalis ( const value_type v)

This function calculates the cardinal sine of x.

Parameters
vconst value_type&
Returns
value_type

Definition at line 1469 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_sleep()

value_type parser_sleep ( const value_type milliseconds)

Sleeps for the passed amount of milliseconds and returns this number.

Parameters
millisecondsconst value_type&
Returns
value_type

Definition at line 2586 of file functionimplementation.cpp.

References intCast().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_SphericalBessel()

value_type parser_SphericalBessel ( const value_type vn,
const value_type vc 
)

This function calculates the spherical bessel function.

Parameters
vnconst value_type&
vcconst value_type&
Returns
value_type

Definition at line 1489 of file functionimplementation.cpp.

References intCast(), intPower(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_SphericalHarmonics()

value_type parser_SphericalHarmonics ( const value_type vl,
const value_type vm,
const value_type theta,
const value_type phi 
)

This function calculates the real part of the selected spherical harmonics.

Parameters
vlconst value_type&
vmconst value_type&
thetaconst value_type&
phiconst value_type&
Returns
value_type

Definition at line 1337 of file functionimplementation.cpp.

References date::abs(), intCast(), mu::isinf(), mu::isnan(), M_PI, parser_AssociatedLegendrePolynomial(), and parser_Faculty().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_SphericalNeumann()

value_type parser_SphericalNeumann ( const value_type vn,
const value_type vc 
)

This function calculates the spherical von Neumann function.

Parameters
vnconst value_type&
vcconst value_type&
Returns
value_type

Definition at line 1538 of file functionimplementation.cpp.

References intCast(), intPower(), mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Std()

value_type parser_Std ( const value_type vElements,
int  nElements 
)

This function calculates the standard deviation of the elements in the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 781 of file functionimplementation.cpp.

References mu::isnan(), parser_Avg(), and parser_Num().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_studentFactor()

value_type parser_studentFactor ( const value_type vFreedoms,
const value_type vAlpha 
)

This function returns the Student factor s_t for the selected degrees of freedom and a confidence interval.

Parameters
vFreedomsconst value_type&
vAlphaconst value_type&
Returns
value_type

Definition at line 2419 of file functionimplementation.cpp.

References intCast(), and student_t().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Sum()

value_type parser_Sum ( const value_type vElements,
int  nElements 
)

This function summarizes all elements in the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 1134 of file functionimplementation.cpp.

References mu::isnan().

Referenced by parser_Avg(), and mu::Parser::Sum().

Here is the call graph for this function:

◆ parser_theta()

value_type parser_theta ( const value_type x,
const value_type y,
const value_type z 
)

This function calculates the angle of a vector and the z axis in any z-r plane (the polar angle theta).

Parameters
xconst value_type&
yconst value_type&
zconst value_type&
Returns
value_type

Definition at line 1814 of file functionimplementation.cpp.

References mu::isinf(), mu::isnan(), and M_PI.

Referenced by cartToPolar(), cylToPolar(), and NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_time()

value_type parser_time ( )

This function returns the current UNIX time.

Returns
value_type

Definition at line 2559 of file functionimplementation.cpp.

References sys_time_now(), and to_double().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_toDegree()

value_type parser_toDegree ( const value_type v)

This function converts radian to degree.

Parameters
vconst value_type&
Returns
value_type

Definition at line 1317 of file functionimplementation.cpp.

References mu::isinf(), mu::isnan(), and M_PI.

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_toRadian()

value_type parser_toRadian ( const value_type v)

This function converts degree to radian.

Parameters
vconst value_type&
Returns
value_type

Definition at line 1300 of file functionimplementation.cpp.

References mu::isinf(), mu::isnan(), and M_PI.

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Torr()

value_type parser_Torr ( const value_type v)

Conversion function for 1Torr/1mmhg.

Parameters
vconst value_type&
Returns
value_type

Definition at line 247 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_weeknum()

value_type parser_weeknum ( const value_type vTime)

This function returns the calendar week associated with the passed time value.

Parameters
vTimeconst value_type&
Returns
value_type

Definition at line 2681 of file functionimplementation.cpp.

References getWeekNum(), and to_timePoint().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_XOR()

value_type parser_XOR ( const value_type v1,
const value_type v2 
)

This function represent the XOR operator.

Parameters
v1const value_type&
v2const value_type&
Returns
value_type

Definition at line 2489 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_xor()

value_type parser_xor ( const value_type vElements,
int  nElements 
)

This function calculates the logical XOR operation between all elements in the passed array.

Parameters
vElementsconst value_type*
nElementsint
Returns
value_type

Definition at line 1041 of file functionimplementation.cpp.

References mu::isnan().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_Yard()

value_type parser_Yard ( const value_type v)

Conversion function for 1yd.

Parameters
vconst value_type&
Returns
value_type

Definition at line 322 of file functionimplementation.cpp.

References mu::isinf(), and mu::isnan().

Referenced by NumeReKernel::defineOperators().

Here is the call graph for this function:

◆ parser_Zernike()

value_type parser_Zernike ( const value_type vn,
const value_type vm,
const value_type rho,
const value_type phi 
)

This function calculates the selected Zernike polynomials.

Parameters
vnconst value_type&
vmconst value_type&
rhoconst value_type&
phiconst value_type&
Returns
value_type

Definition at line 1401 of file functionimplementation.cpp.

References date::abs(), intCast(), mu::isinf(), mu::isnan(), and parser_ZernikeRadial().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

◆ parser_ZernikeRadial()

value_type parser_ZernikeRadial ( int  n,
int  m,
const value_type rho 
)

This function calculates the radial part of the Zernike polynomials.

Parameters
nint
mint
rhoconst value_type&
Returns
value_type

Definition at line 1432 of file functionimplementation.cpp.

References intPower(), and parser_Faculty().

Referenced by parser_Zernike().

Here is the call graph for this function:

◆ parser_zeta()

value_type parser_zeta ( const value_type s)

This function returns the value of the Zeta function.

Parameters
sconst value_type&
Returns
value_type

Definition at line 2219 of file functionimplementation.cpp.

References complex_zeta(), mu::isinf(), mu::isnan(), M_PI, and parser_gamma().

Referenced by NumeReKernel::defineFunctions().

Here is the call graph for this function:

Variable Documentation

◆ exitsignal

volatile sig_atomic_t exitsignal = 0

Definition at line 52 of file functionimplementation.cpp.

◆ nErrorIndices

int nErrorIndices[2] = {-1,-1}

Definition at line 49 of file functionimplementation.cpp.

◆ sErrorToken

◆ tTimeZero

time_t tTimeZero
extern

Definition at line 43 of file kernel.cpp.