One-argument standard functions. More...
#include <qExpr.h>
Public Member Functions | |
virtual stdFunction1 * | dup () const |
Make a duplicate copy of the term. | |
virtual double | eval () const |
Evaluate one-argument standard functions from math.h. | |
virtual void | print (std::ostream &out) const |
Print a human readable version of the expression. | |
virtual void | printFull (std::ostream &out) const |
Same as print. | |
virtual term * | reduce () |
Shorten the expression by evaluating the constants. | |
stdFunction1 (const char *name) | |
stdFunction1 (const STDFUN1 ft) | |
virtual TERM_TYPE | termType () const |
One-argument standard functions.
double ibis::math::stdFunction1::eval | ( | ) | const [virtual] |
Evaluate one-argument standard functions from math.h.
The functions modf and frexp take two argument, but only one is an input argument, only the return value of these functions are returned.
Implements ibis::math::term.
ibis::math::term * ibis::math::stdFunction1::reduce | ( | ) | [virtual] |
Shorten the expression by evaluating the constants.
Return a new pointer if the expression is changed, otherwise return the pointer this.
Reimplemented from ibis::math::term.
References ibis::math::term::eval(), ibis::qExpr::getLeft(), ibis::gVerbose, and ibis::math::term::reduce().
![]() |