Changeset View
Changeset View
Standalone View
Standalone View
kmplot/parser.h
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 62 | { | |||
---|---|---|---|---|---|
80 | LT, // 17 - less than | 80 | LT, // 17 - less than | ||
81 | LE, // 18 - less than or equal | 81 | LE, // 18 - less than or equal | ||
82 | ENDE, // 19 - end of function | 82 | ENDE, // 19 - end of function | ||
83 | ERROR // 20 - error in function | 83 | ERROR // 20 - error in function | ||
84 | }; | 84 | }; | ||
85 | 85 | | |||
86 | 86 | | |||
87 | const int legendreCount = 7; // number of legendre polynomials we allow for | 87 | const int legendreCount = 7; // number of legendre polynomials we allow for | ||
88 | const int ScalarCount = 40+legendreCount; // number of mathematical scalar functions | 88 | const int ScalarCount = 41+legendreCount; // number of mathematical scalar functions | ||
89 | const int VectorCount = 3; // number of vector functions | 89 | const int VectorCount = 3; // number of vector functions | ||
90 | //@} | 90 | //@} | ||
91 | 91 | | |||
92 | //@{ | 92 | //@{ | ||
93 | /** Predefined mathematical function with one variable. */ | 93 | /** Predefined mathematical function with one variable. */ | ||
94 | double sign(double x); | 94 | double sign(double x); | ||
95 | double heaviside(double x); | 95 | double heaviside(double x); | ||
96 | double sqr(double x); | 96 | double sqr(double x); | ||
Show All 23 Lines | |||||
120 | double legendre0(double x); | 120 | double legendre0(double x); | ||
121 | double legendre1(double x); | 121 | double legendre1(double x); | ||
122 | double legendre2(double x); | 122 | double legendre2(double x); | ||
123 | double legendre3(double x); | 123 | double legendre3(double x); | ||
124 | double legendre4(double x); | 124 | double legendre4(double x); | ||
125 | double legendre5(double x); | 125 | double legendre5(double x); | ||
126 | double legendre6(double x); | 126 | double legendre6(double x); | ||
127 | 127 | | |||
128 | double evaluate_rational(const double* num, const double* denom, const double& z_, int count); | ||||
129 | double besselj0(double x); | ||||
130 | | ||||
128 | double factorial(double x); | 131 | double factorial(double x); | ||
129 | double lerf(double x); | 132 | double lerf(double x); | ||
130 | double lerfc(double x); | 133 | double lerfc(double x); | ||
131 | 134 | | |||
132 | /** Predefined mathematical functions with an indefinite number of variables. */ | 135 | /** Predefined mathematical functions with an indefinite number of variables. */ | ||
133 | double min( const Vector & x ); | 136 | double min( const Vector & x ); | ||
134 | double max( const Vector & x ); | 137 | double max( const Vector & x ); | ||
135 | double mod( const Vector & x ); | 138 | double mod( const Vector & x ); | ||
▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines |