A simple class to parse real valued functions. More...
#include <Funct.h>
Public Member Functions | |
Funct () | |
Default constructor. | |
Funct (string v) | |
Constructor for a function of one variable. More... | |
Funct (string v1, string v2) | |
Constructor for a function of two variables. More... | |
Funct (string v1, string v2, string v3) | |
Constructor for a function of three variables. More... | |
Funct (string v1, string v2, string v3, string v4) | |
Constructor for a function of four variables. More... | |
~Funct () | |
Destructor. | |
real_t | operator() (real_t x) const |
Operator () to evaluate the function with one variable x | |
real_t | operator() (real_t x, real_t y) const |
Operator () to evaluate the function with two variables x , y | |
real_t | operator() (real_t x, real_t y, real_t z) const |
Operator () to evaluate the function with three variables x , y , z | |
real_t | operator() (real_t x, real_t y, real_t z, real_t t) const |
Operator () to evaluate the function with four variables x , y , z | |
void | operator= (string e) |
Operator =. More... | |
Detailed Description
A simple class to parse real valued functions.
Functions must have 1, 2, 3 or at most 4 variables.
- Warning
- Data in the file must be listed in the following order:
for x=x_0,...,x_I for y=y_0,...,y_J for z=z_0,...,z_K read v(x,y,z)
- Copyright
- GNU Lesser Public License
Constructor & Destructor Documentation
◆ Funct() [1/4]
Funct | ( | string | v | ) |
Constructor for a function of one variable.
- Parameters
-
[in] v Name of the variable
◆ Funct() [2/4]
Funct | ( | string | v1, |
string | v2 | ||
) |
Constructor for a function of two variables.
- Parameters
-
[in] v1 Name of the first variable [in] v2 Name of the second variable
◆ Funct() [3/4]
Funct | ( | string | v1, |
string | v2, | ||
string | v3 | ||
) |
Constructor for a function of three variables.
- Parameters
-
[in] v1 Name of the first variable [in] v2 Name of the second variable [in] v3 Name of the third variable
◆ Funct() [4/4]
Funct | ( | string | v1, |
string | v2, | ||
string | v3, | ||
string | v4 | ||
) |
Constructor for a function of four variables.
- Parameters
-
[in] v1 Name of the first variable [in] v2 Name of the second variable [in] v3 Name of the third variable [in] v4 Name of the fourth variable
Member Function Documentation
◆ operator=()
void operator= | ( | string | e | ) |
Operator =.
Define the function by an algebraic expression
- Parameters
-
[in] e Algebraic expression defining the function.