#include "StatTools/Funct/FunctManip.h" #include "StatTools/Funct/Function.h" #include "StatTools/Funct/Math.h" #include using namespace std; using namespace Funct; int main() { double xval, yval; X x( xval ); Y y( yval ); Expression gf( sin( x ) + cos( x ) ); xval = M_PI; x = M_PI; cout << gf << " | [ x = pi ] = " << gf() << endl; Function< X > f( sin( x ) + cos( x ) ); Function< X, Y > g( sin( x ) + cos( y ) ); cout << f << " | [ x = pi ] = " << f( M_PI ) << endl; cout << g << " | [ x = pi, y = pi ] = " << g( M_PI / 2, 0 ) << endl; return 0; }