where FloatFunction is your interpreted function embedded in an object
class FloatFunction {
private:
//function initial values, if any (e.g. the 25 in your example)
public:
FloatFunction(){};
//any constructor that ser the function initial values, if needed
float operator()(float x) {return (x*x-2*x+25);}
}
I guess that CINT will not complain about it.
-- Paolo Calafiura ------------------------------------------------------------------- | Lawrence Berkeley National Lab | NERSC group | | MS 50E 124 | office 50E 1519 | | 1 Cyclotron Rd. | phone 1-510-486-6717 | | Berkeley, CA 94720 U.S. | fax 1-510-486-4004 | -------------------------------------------------------------------