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.
 
 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.
 
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 =.
 

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)
Author
Rachid Touzani

Constructor & Destructor Documentation

◆ Funct() [1/4]

Funct ( string  v)

Constructor for a function of one variable.

Parameters
[in]vName of the variable

◆ Funct() [2/4]

Funct ( string  v1,
string  v2 
)

Constructor for a function of two variables.

Parameters
[in]v1Name of the first variable
[in]v2Name of the second variable

◆ Funct() [3/4]

Funct ( string  v1,
string  v2,
string  v3 
)

Constructor for a function of three variables.

Parameters
[in]v1Name of the first variable
[in]v2Name of the second variable
[in]v3Name 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]v1Name of the first variable
[in]v2Name of the second variable
[in]v3Name of the third variable
[in]v4Name of the fourth variable

Member Function Documentation

◆ operator=()

void operator= ( string  e)

Operator =.

Define the function by an algebraic expression

Parameters
[in]eAlgebraic expression defining the function.