namespace GiNaC {
#endif // ndef NO_GINAC_NAMESPACE
+typedef ex (*evalffunctype)(void);
+
/** This class holds constants, symbols with specific numerical value. Each
* object of this class must either provide their own function to evaluate it
* to class numeric or provide the constant as a numeric (if it's an exact
// other constructors
public:
- constant(string const & initname, ex (*efun)()=0);
+ constant(string const & initname, evalffunctype efun=0);
constant(string const & initname, numeric const & initnumber);
// functions overriding virtual functions from bases classes
private:
string name;
- ex (*ef)();
+ evalffunctype ef;
numeric * number;
// bool fct_assigned;
unsigned serial; //!< unique serial number for comparision