NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#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"
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_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. 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 |
#define _USE_MATH_DEFINES |
Definition at line 24 of file functionimplementation.cpp.
|
static |
Calculates the complex-valued Riemannian Zeta function for complex numbers with Re(s) >= 0.
s | const std::complex<double>& |
Definition at line 2188 of file functionimplementation.cpp.
References ek(), and intPower().
Referenced by parser_zeta().
|
static |
Calculates the sum of binomial coefficients from k to N.
k | int |
N | int |
Definition at line 2162 of file functionimplementation.cpp.
References parser_Binom().
Referenced by complex_zeta().
value_type parser_acsc | ( | const value_type & | x | ) |
This function returns the inverse cosecant of the passed value.
x | const value_type& |
Definition at line 2819 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_acsch | ( | const value_type & | x | ) |
This function returns the inverse hyperbolic cosecant of the passed value.
x | const value_type& |
Definition at line 2875 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
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.
a_szName | const char_type* |
a_pUserData | void* |
Definition at line 2755 of file functionimplementation.cpp.
Referenced by NumeReKernel::StartUp().
value_type parser_AiryA | ( | const value_type & | x | ) |
This function calculates the Airy function Ai(x).
x | const value_type& |
Definition at line 1928 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_AiryB | ( | const value_type & | x | ) |
This function calculates the Airy function Bi(x).
x | const value_type& |
Definition at line 1942 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_and | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function calculates the logical AND operation between all elements in the passed array.
vElements | const value_type* |
nElements | int |
Definition at line 997 of file functionimplementation.cpp.
References mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_Angstroem | ( | const value_type & | v | ) |
Conversion function for 1A.
v | const value_type& |
Definition at line 217 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_asec | ( | const value_type & | x | ) |
This function returns the inverse secant of the passed value.
x | const value_type& |
Definition at line 2805 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_asech | ( | const value_type & | x | ) |
This function returns the inverse hyperbolic secant of the passed value.
x | const value_type& |
Definition at line 2861 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
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.
vn | const value_type& |
vk | const value_type& |
v | const value_type& |
Definition at line 1670 of file functionimplementation.cpp.
References intCast(), intPower(), mu::isinf(), mu::isnan(), and parser_Faculty().
Referenced by NumeReKernel::defineFunctions().
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.
vl | const value_type& |
vm | const value_type& |
v | const 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().
value_type parser_AstroUnit | ( | const value_type & | v | ) |
Conversion function for 1AU.
v | const value_type& |
Definition at line 262 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Avg | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function calculates the average of all elements in passed array.
vElements | const value_type* |
nElements | int |
Definition at line 1157 of file functionimplementation.cpp.
References parser_Num(), and parser_Sum().
Referenced by mu::Parser::Avg(), and parser_Std().
value_type parser_Barn | ( | const value_type & | v | ) |
Conversion function for 1bn.
v | const value_type& |
Definition at line 232 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_beta | ( | const value_type & | a, |
const value_type & | b | ||
) |
This function returns the value of the Beta function.
a | const value_type& |
b | const value_type& |
Definition at line 2141 of file functionimplementation.cpp.
References intCast(), mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
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.
vN | const value_type& |
vZ | const value_type& |
Definition at line 1730 of file functionimplementation.cpp.
References intCast(), mu::isinf(), mu::isnan(), and parser_round().
Referenced by NumeReKernel::defineFunctions().
value_type parser_BinAND | ( | const value_type & | v1, |
const value_type & | v2 | ||
) |
This function represents the binary AND operator.
v1 | const value_type& |
v2 | const value_type& |
Definition at line 2525 of file functionimplementation.cpp.
References intCast(), mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Binom | ( | const value_type & | v1, |
const value_type & | v2 | ||
) |
Function representing the binomial coefficient.
v1 | const value_type& |
v2 | const 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().
value_type parser_BinOR | ( | const value_type & | v1, |
const value_type & | v2 | ||
) |
This function represents the binary OR operator.
v1 | const value_type& |
v2 | const value_type& |
Definition at line 2507 of file functionimplementation.cpp.
References intCast(), mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Calorie | ( | const value_type & | v | ) |
Conversion function for 1cal.
v | const value_type& |
Definition at line 367 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Celsius | ( | const value_type & | v | ) |
Conversion function for 1°C.
v | const value_type& |
Definition at line 457 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_clausen | ( | const value_type & | x | ) |
This function returns the value of the Clausen function.
x | const value_type& |
Definition at line 2241 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_clock | ( | ) |
This function returns the current CPU clock count.
Definition at line 2572 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
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).
vElements | const value_type* |
nElements | int |
Definition at line 765 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_compare | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function searches for elements of a specified type in the passed array.
vElements | const value_type* |
nElements | int |
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().
value_type parser_complex | ( | const value_type & | re, |
const value_type & | im | ||
) |
Construct a complex number from two real numbers.
re | const value_type& |
im | const value_type& |
Definition at line 635 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_conj | ( | const value_type & | v | ) |
Calculates the complex conjugate number of the passed complex number.
v | const value_type& |
Definition at line 620 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_cot | ( | const value_type & | x | ) |
This function returns the cotangent of the passed value.
x | const value_type& |
Definition at line 2732 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_csc | ( | const value_type & | x | ) |
This function returns the cosecant of the passed value.
x | const value_type& |
Definition at line 2791 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_csch | ( | const value_type & | x | ) |
This function returns the hyperbolic cosecant of the passed value.
x | const value_type& |
Definition at line 2847 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_Curie | ( | const value_type & | v | ) |
Conversion function for 1C.
v | const value_type& |
Definition at line 487 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
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.
vTime | const value_type& |
vType | const 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().
value_type parser_digamma | ( | const value_type & | x | ) |
This function returns the value of the Digamma function.
x | const value_type& |
Definition at line 2258 of file functionimplementation.cpp.
References intCast(), mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_dilogarithm | ( | const value_type & | x | ) |
This function returns the value of the Dilogarithm Li2(x).
x | const value_type& |
Definition at line 2299 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_doubleFaculty | ( | const value_type & | v | ) |
Function representing the double faculty of any natural number.
v | const 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().
value_type parser_ElectronVolt | ( | const value_type & | v | ) |
Conversion function for 1eV.
v | const value_type& |
Definition at line 187 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
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).
phi | const value_type& |
n | const value_type& |
k | const value_type& |
Definition at line 2106 of file functionimplementation.cpp.
References date::floor(), mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_EllipticE | ( | const value_type & | phic, |
const value_type & | kc | ||
) |
This function returns the value of the elliptic intergal E(phi,k).
phic | const value_type& |
kc | const value_type& |
Definition at line 2031 of file functionimplementation.cpp.
References date::floor(), mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_EllipticF | ( | const value_type & | phic, |
const value_type & | kc | ||
) |
This function returns the value of the elliptic intergal F(phi,k).
phic | const value_type& |
kc | const value_type& |
Definition at line 1993 of file functionimplementation.cpp.
References date::floor(), mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
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).
phi | const value_type& |
n | const value_type& |
k | const value_type& |
Definition at line 2070 of file functionimplementation.cpp.
References date::floor(), mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_erf | ( | const value_type & | x | ) |
This function calculates the gaussian error function.
x | const value_type& |
Definition at line 1872 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_erfc | ( | const value_type & | x | ) |
This function calculates the complementary gaussian error function.
x | const value_type& |
Definition at line 1888 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_Faculty | ( | const value_type & | v | ) |
Function representing the faculty of any natural number.
v | const 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().
value_type parser_Fahrenheit | ( | const value_type & | v | ) |
Conversion function for 1°F.
v | const value_type& |
Definition at line 472 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Fermi | ( | const value_type & | v | ) |
Conversion function for 1fm.
v | const value_type& |
Definition at line 202 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_floor | ( | const value_type & | x | ) |
This is the floor function.
x | const value_type& |
Definition at line 2322 of file functionimplementation.cpp.
References date::floor().
Referenced by NumeReKernel::defineFunctions().
value_type parser_Foot | ( | const value_type & | v | ) |
Conversion function for 1ft.
v | const value_type& |
Definition at line 337 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_gamma | ( | const value_type & | x | ) |
This function calculates the riemannian Gamma function.
x | const value_type& |
Definition at line 1904 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions(), and parser_zeta().
value_type parser_Gauss | ( | const value_type & | v | ) |
Conversion function for 1Gs.
v | const value_type& |
Definition at line 502 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_gcd | ( | const value_type & | n, |
const value_type & | k | ||
) |
This function returns the greatest common divisor of both argments.
n | const value_type& |
k | const value_type& |
Definition at line 2437 of file functionimplementation.cpp.
References intCast().
Referenced by NumeReKernel::defineFunctions().
value_type parser_Giga | ( | const value_type & | a_fVal | ) |
Conversion function for 1G.
a_fVal | const value_type& |
Definition at line 96 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
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.
vRandAvg | const value_type& |
vRandstd | const value_type& |
Definition at line 1854 of file functionimplementation.cpp.
References getRandGenInstance(), mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_Heaviside | ( | const value_type & | v | ) |
This function represents the Heaviside (theta) function.
v | const value_type& |
Definition at line 1773 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_HermitePolynomial | ( | const value_type & | vn, |
const value_type & | v | ||
) |
This function calculates the Hermite polynomials of the selected order.
vn | const value_type& |
v | const 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().
value_type parser_Ignore | ( | const value_type & | v | ) |
Identity function. Used for ignoring functions and parameters in special cases.
v | const value_type& |
Definition at line 173 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions(), and NumeReKernel::defineOperators().
value_type parser_imag | ( | const value_type & | v | ) |
Extracts the imaginary part of a complex number.
v | const value_type& |
Definition at line 576 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_imaginaryUnit | ( | const value_type & | v | ) |
Multiplies a number with the imaginary unit.
v | const value_type& |
Definition at line 548 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineOperators().
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.
vl | const value_type& |
vm | const value_type& |
theta | const value_type& |
phi | const 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().
value_type parser_Inch | ( | const value_type & | v | ) |
Conversion function for 1in.
v | const value_type& |
Definition at line 352 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
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).
v | const value_type& |
vLeft | const value_type& |
vRight | const value_type& |
Definition at line 2712 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_IrregularCylBessel | ( | const value_type & | n, |
const value_type & | x | ||
) |
This function calculates the irregulary bessel (von Neumann) function.
n | const value_type& |
x | const value_type& |
Definition at line 1975 of file functionimplementation.cpp.
References intCast().
Referenced by NumeReKernel::defineFunctions().
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.
v | const value_type& |
Definition at line 2543 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_isnan | ( | const value_type & | v | ) |
Returns, whether the selected value is NaN.
v | const value_type& |
Definition at line 2695 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
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).
x | const value_type& |
x0 | const value_type& |
x1 | const value_type& |
lborder | const value_type& |
rborder | const value_type& |
Definition at line 2369 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_Kilo | ( | const value_type & | a_fVal | ) |
Conversion function for 1k.
a_fVal | const value_type& |
Definition at line 111 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_kmh | ( | const value_type & | v | ) |
Conversion function for 1kmh.
v | const value_type& |
Definition at line 427 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Knoten | ( | const value_type & | v | ) |
Conversion function for 1kn.
v | const value_type& |
Definition at line 397 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_LaguerrePolynomial | ( | const value_type & | vn, |
const value_type & | v | ||
) |
This function calculates the Laguerre polynomials of the selected order.
vn | const value_type& |
v | const 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().
value_type parser_lcm | ( | const value_type & | n, |
const value_type & | k | ||
) |
This function returns the least common multiple of both arguments.
n | const value_type& |
k | const value_type& |
Definition at line 2452 of file functionimplementation.cpp.
References intCast().
Referenced by NumeReKernel::defineFunctions().
value_type parser_LegendrePolynomial | ( | const value_type & | vn, |
const value_type & | v | ||
) |
This function calculates the Legendre polynomials of the selected order.
vn | const value_type& |
v | const 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().
value_type parser_Lightyear | ( | const value_type & | v | ) |
Conversion function for 1ly.
v | const value_type& |
Definition at line 277 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_liter | ( | const value_type & | v | ) |
Conversion function for 1l.
v | const value_type& |
Definition at line 412 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_log_b | ( | const value_type & | b, |
const value_type & | x | ||
) |
Calculates the logarithm of x using the base b.
b | const value_type& |
x | const value_type& |
Definition at line 2602 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_Max | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function calculates the maximal value of all elements in the passed array.
vElements | const value_type* |
nElements | int |
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().
value_type parser_MaxPos | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function returns the index of the (first) maximal value in the array.
vElements | const value_type* |
nElements | int |
Definition at line 1261 of file functionimplementation.cpp.
References parser_compare(), and parser_Max().
Referenced by NumeReKernel::defineFunctions().
value_type parser_Med | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function calculates the median of the elements in the passed array.
vElements | const value_type* |
nElements | int |
Definition at line 851 of file functionimplementation.cpp.
References Memory::med(), and Memory::writeData().
Referenced by NumeReKernel::defineFunctions().
value_type parser_Mega | ( | const value_type & | a_fVal | ) |
Conversion function for 1M.
a_fVal | const value_type& |
Definition at line 66 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Micro | ( | const value_type & | a_fVal | ) |
Conversion function for 1mu.
a_fVal | const value_type& |
Definition at line 126 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Mile | ( | const value_type & | v | ) |
Conversion function for 1mi.
v | const value_type& |
Definition at line 307 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Milli | ( | const value_type & | a_fVal | ) |
Conversion function for 1m.
a_fVal | const value_type& |
Definition at line 81 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Min | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function calculates the minimal value of all elements in the passed array.
vElements | const value_type* |
nElements | int |
Definition at line 1172 of file functionimplementation.cpp.
References mu::isnan(), min, and mu::real().
Referenced by mu::Parser::Min(), and 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.
vElements | const value_type* |
nElements | int |
Definition at line 1242 of file functionimplementation.cpp.
References parser_compare(), and parser_Min().
Referenced by NumeReKernel::defineFunctions().
value_type parser_Mod | ( | const value_type & | v1, |
const value_type & | v2 | ||
) |
This function represents the Modulo operator.
v1 | const value_type& |
v2 | const value_type& |
Definition at line 2467 of file functionimplementation.cpp.
References date::floor(), mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_mol | ( | const value_type & | v | ) |
Conversion function for 1mol.
v | const value_type& |
Definition at line 532 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_mph | ( | const value_type & | v | ) |
Conversion function for 1mph.
v | const value_type& |
Definition at line 442 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Nano | ( | const value_type & | a_fVal | ) |
Conversion function for 1n.
a_fVal | const value_type& |
Definition at line 141 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Norm | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function calculates the vector norm of the elements in the passed array.
vElements | const value_type* |
nElements | int |
Definition at line 828 of file functionimplementation.cpp.
References mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_Not | ( | const value_type & | v | ) |
Function representing the logical NOT operator.
v | const value_type& |
Definition at line 157 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Num | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function returns the number of valid elements in its array.
vElements | const value_type* |
nElements | int |
Definition at line 741 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions(), parser_Avg(), and parser_Std().
value_type parser_numereversion | ( | ) |
Returns the version number of NumeRe as a natural number.
Definition at line 2621 of file functionimplementation.cpp.
References AutoVersion::BUILD, AutoVersion::MAJOR, AutoVersion::MINOR, and AutoVersion::UBUNTU_VERSION_STYLE.
Referenced by NumeReKernel::defineFunctions().
value_type parser_or | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function calculates the logical OR operation between all elements in the passed array.
vElements | const value_type* |
nElements | int |
Definition at line 1019 of file functionimplementation.cpp.
References mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_Parsec | ( | const value_type & | v | ) |
Conversion function for 1pc.
v | const value_type& |
Definition at line 292 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Pct | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function calculates the selected percentile of the passed array.
vElements | const value_type* |
nElements | int |
Definition at line 871 of file functionimplementation.cpp.
References Memory::pct(), and Memory::writeData().
Referenced by NumeReKernel::defineFunctions().
value_type parser_perlin | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function implements the perlin noise function.
vElements | const value_type* |
nElements | int |
Definition at line 1094 of file functionimplementation.cpp.
References intCast(), and mu::real().
Referenced by NumeReKernel::defineFunctions().
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).
x | const value_type& |
y | const 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().
value_type parser_Poise | ( | const value_type & | v | ) |
Conversion function for 1Ps.
v | const value_type& |
Definition at line 517 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_polar2rect | ( | const value_type & | v | ) |
Converts a polar representation into a rectangular representation and returns it as a new complex number.
v | const value_type& |
Definition at line 606 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_polygamma | ( | const value_type & | n, |
const value_type & | x | ||
) |
This function returns the value if the Polygamma function.
n | const value_type& |
x | const value_type& |
Definition at line 2282 of file functionimplementation.cpp.
References intCast(), mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_polynomial | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function implements an abstract polynomial of an arbitrary order.
vElements | const value_type* |
nElements | int |
Definition at line 1069 of file functionimplementation.cpp.
References intPower().
Referenced by NumeReKernel::defineFunctions().
value_type parser_product | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function calculates the product of all elements in the passed array.
vElements | const value_type* |
nElements | int |
Definition at line 805 of file functionimplementation.cpp.
References mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_PSI | ( | const value_type & | v | ) |
Conversion function for 1psi.
v | const value_type& |
Definition at line 382 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_Random | ( | const value_type & | vRandMin, |
const value_type & | vRandMax | ||
) |
This function returns a uniformly distributed random number between both boundaries.
vRandMin | const value_type& |
vRandMax | const value_type& |
Definition at line 1834 of file functionimplementation.cpp.
References getRandGenInstance(), mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions(), and particleSwarmOptimizer().
value_type parser_real | ( | const value_type & | v | ) |
Extracts the real part of a complex number.
v | const value_type& |
Definition at line 562 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_rect | ( | const value_type & | x, |
const value_type & | x0, | ||
const value_type & | x1 | ||
) |
This is the rect function.
x | const value_type& |
x0 | const value_type& |
x1 | const value_type& |
Definition at line 2350 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_rect2polar | ( | const value_type & | v | ) |
Converts a rectangular representation into polar representation and returns it as a new complex number.
v | const value_type& |
Definition at line 591 of file functionimplementation.cpp.
References date::abs().
Referenced by NumeReKernel::defineFunctions().
value_type parser_RegularCylBessel | ( | const value_type & | n, |
const value_type & | x | ||
) |
This function calculates the regulary bessel function.
n | const value_type& |
x | const value_type& |
Definition at line 1957 of file functionimplementation.cpp.
References intCast().
Referenced by NumeReKernel::defineFunctions().
value_type parser_roof | ( | const value_type & | x | ) |
This is the roof (ceil) function.
x | const value_type& |
Definition at line 2335 of file functionimplementation.cpp.
References date::ceil().
Referenced by NumeReKernel::defineFunctions().
value_type parser_round | ( | const value_type & | vToRound, |
const value_type & | vDecimals | ||
) |
This function rounds the passed value to the selected number of decimals.
vToRound | const value_type& |
vDecimals | const 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().
value_type parser_sec | ( | const value_type & | x | ) |
This function returns the secant of the passed value.
x | const value_type& |
Definition at line 2777 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_sech | ( | const value_type & | x | ) |
This function returns the hyperbolic secant of the passed value.
x | const value_type& |
Definition at line 2833 of file functionimplementation.cpp.
Referenced by NumeReKernel::defineFunctions().
value_type parser_SinusCardinalis | ( | const value_type & | v | ) |
This function calculates the cardinal sine of x.
v | const value_type& |
Definition at line 1469 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_sleep | ( | const value_type & | milliseconds | ) |
Sleeps for the passed amount of milliseconds and returns this number.
milliseconds | const value_type& |
Definition at line 2586 of file functionimplementation.cpp.
References intCast().
Referenced by NumeReKernel::defineFunctions().
value_type parser_SphericalBessel | ( | const value_type & | vn, |
const value_type & | vc | ||
) |
This function calculates the spherical bessel function.
vn | const value_type& |
vc | const value_type& |
Definition at line 1489 of file functionimplementation.cpp.
References intCast(), intPower(), mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
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.
vl | const value_type& |
vm | const value_type& |
theta | const value_type& |
phi | const 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().
value_type parser_SphericalNeumann | ( | const value_type & | vn, |
const value_type & | vc | ||
) |
This function calculates the spherical von Neumann function.
vn | const value_type& |
vc | const value_type& |
Definition at line 1538 of file functionimplementation.cpp.
References intCast(), intPower(), mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_Std | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function calculates the standard deviation of the elements in the passed array.
vElements | const value_type* |
nElements | int |
Definition at line 781 of file functionimplementation.cpp.
References mu::isnan(), parser_Avg(), and parser_Num().
Referenced by NumeReKernel::defineFunctions().
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.
vFreedoms | const value_type& |
vAlpha | const value_type& |
Definition at line 2419 of file functionimplementation.cpp.
References intCast(), and student_t().
Referenced by NumeReKernel::defineFunctions().
value_type parser_Sum | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function summarizes all elements in the passed array.
vElements | const value_type* |
nElements | int |
Definition at line 1134 of file functionimplementation.cpp.
References mu::isnan().
Referenced by parser_Avg(), and mu::Parser::Sum().
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).
x | const value_type& |
y | const value_type& |
z | const 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().
value_type parser_time | ( | ) |
This function returns the current UNIX time.
Definition at line 2559 of file functionimplementation.cpp.
References sys_time_now(), and to_double().
Referenced by NumeReKernel::defineFunctions().
value_type parser_toDegree | ( | const value_type & | v | ) |
This function converts radian to degree.
v | const value_type& |
Definition at line 1317 of file functionimplementation.cpp.
References mu::isinf(), mu::isnan(), and M_PI.
Referenced by NumeReKernel::defineFunctions().
value_type parser_toRadian | ( | const value_type & | v | ) |
This function converts degree to radian.
v | const value_type& |
Definition at line 1300 of file functionimplementation.cpp.
References mu::isinf(), mu::isnan(), and M_PI.
Referenced by NumeReKernel::defineFunctions().
value_type parser_Torr | ( | const value_type & | v | ) |
Conversion function for 1Torr/1mmhg.
v | const value_type& |
Definition at line 247 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_weeknum | ( | const value_type & | vTime | ) |
This function returns the calendar week associated with the passed time value.
vTime | const value_type& |
Definition at line 2681 of file functionimplementation.cpp.
References getWeekNum(), and to_timePoint().
Referenced by NumeReKernel::defineFunctions().
value_type parser_XOR | ( | const value_type & | v1, |
const value_type & | v2 | ||
) |
This function represent the XOR operator.
v1 | const value_type& |
v2 | const value_type& |
Definition at line 2489 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
value_type parser_xor | ( | const value_type * | vElements, |
int | nElements | ||
) |
This function calculates the logical XOR operation between all elements in the passed array.
vElements | const value_type* |
nElements | int |
Definition at line 1041 of file functionimplementation.cpp.
References mu::isnan().
Referenced by NumeReKernel::defineFunctions().
value_type parser_Yard | ( | const value_type & | v | ) |
Conversion function for 1yd.
v | const value_type& |
Definition at line 322 of file functionimplementation.cpp.
References mu::isinf(), and mu::isnan().
Referenced by NumeReKernel::defineOperators().
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.
vn | const value_type& |
vm | const value_type& |
rho | const value_type& |
phi | const 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().
value_type parser_ZernikeRadial | ( | int | n, |
int | m, | ||
const value_type & | rho | ||
) |
This function calculates the radial part of the Zernike polynomials.
n | int |
m | int |
rho | const value_type& |
Definition at line 1432 of file functionimplementation.cpp.
References intPower(), and parser_Faculty().
Referenced by parser_Zernike().
value_type parser_zeta | ( | const value_type & | s | ) |
This function returns the value of the Zeta function.
s | const 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().
volatile sig_atomic_t exitsignal = 0 |
Definition at line 52 of file functionimplementation.cpp.
int nErrorIndices[2] = {-1,-1} |
Definition at line 49 of file functionimplementation.cpp.
string sErrorToken = "" |
Definition at line 50 of file functionimplementation.cpp.
Referenced by FlowCtrl::calc(), FlowCtrl::compile(), ProcedureVarFactory::createProcedureArguments(), Procedure::execute(), Procedure::ProcCalc(), and writeToFile().
|
extern |
Definition at line 43 of file kernel.cpp.