Funct Class Reference
A simple class to parse real valued functions. More...
Public Member Functions | |
| Funct () | |
| Default constructor. | |
| Funct (string v) | |
| Constructor for a function of one variable. | |
| Funct (string v1, string v2) | |
| Constructor for a function of two variables. | |
| Funct (string v1, string v2, string v3) | |
| Constructor for a function of three variables. | |
| Funct (string v1, string v2, string v3, string v4) | |
| Constructor for a function of four variables. | |
| ~Funct () | |
| Destructor. | |
| double | operator() (double x) const |
| Operator () to evaluate the function with one variable x. | |
| double | operator() (double x, double y) const |
| Operator () to evaluate the function with two variables x, y. | |
| double | operator() (double x, double y, double z) const |
| Operator () to evaluate the function with three variables x, y, z. | |
| double | operator() (double x, double y, double z, double t) const |
| Operator () to evaluate the function with four variables x, y, z, t. | |
| void | operator= (string e) |
| Operator =. | |
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)
Constructor & Destructor Documentation
| Funct | ( | string | v | ) |
Constructor for a function of one variable.
- Parameters:
-
[in] v Name of the variable
| 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 | ( | 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 | ( | 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
| void operator= | ( | string | e | ) |
Operator =.
Define the function by an algebraic expression following regexp rules
- Parameters:
-
[in] e Algebraic expression defining the function.
- OFELI
- Funct
Copyright © 1998-2012 Rachid Touzani