Class xlifepp::SymbolicFunction#

class SymbolicFunction#

Collaboration diagram for xlifepp::SymbolicFunction:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "1" [label="xlifepp::SymbolicFunction" tooltip="xlifepp::SymbolicFunction" fillcolor="#BFBFBF"] "1" -> "1" [dir=forward tooltip="usage"] }

binary node to represent symbolic functions

Public Functions

inline explicit SymbolicFunction(VariableName v = _varUndef)#

constructor/destructor

inline bool isConst() const#

true if a constant expression

inline bool isSingle() const#

true if a single expression (constant or variable name)

inline bool isVar() const#

true if a var expression

std::set<VariableName> listOfVar() const#

list of involved variables

void reduce()#

reduce symbolic function

void reduceConst()#

reduce constant in symbolic function

void reduceFun()#

reduce function in symbolic function

ValueType valueType() const#

value type (real or complex) of function

Public Members

complex_t coef#

coefficient to apply to

const SymbolicFunction *fn1#

first node involved (0 by default)

const SymbolicFunction *fn2#

second node involved (0 by default)

SymbolicOperation op#

operation involved (id by default)

complex_t par#

additional parameter required by some operation (e.g power)

VariableName var#

variable involved (undef by default)