5 #ifndef BPP_NUMERIC_FUNCTION_OPERATORS_COMPUTATIONTREE_H 6 #define BPP_NUMERIC_FUNCTION_OPERATORS_COMPUTATIONTREE_H 10 #include "../../../Graph/AssociationTreeGraphImplObserver.h" 11 #include "../Functions.h" 25 std::shared_ptr<Operator>
readFormula_(
const std::string& formula,
const std::map<std::string, std::shared_ptr<FunctionInterface>>& functionNames);
35 ComputationTree(
const std::string& formula,
const std::map<std::string, std::shared_ptr<FunctionInterface>>& functionNames);
49 return getRoot()->getFirstOrderDerivative(variable);
54 return getRoot()->getSecondOrderDerivative(variable);
57 void readFormula(
const std::string& formula,
const std::map<std::string, std::shared_ptr<FunctionInterface>>& functionNames)
62 std::string
output()
const;
72 #endif // BPP_NUMERIC_FUNCTION_OPERATORS_COMPUTATIONTREE_H
double getSecondOrderDerivative(const std::string &variable) const
ComputationTree(const std::string &formula, const std::map< std::string, std::shared_ptr< FunctionInterface >> &functionNames)
std::string output() const
double getFirstOrderDerivative(const std::string &variable) const
ComputationTree * clone() const
Defines a Computation Tree based on Operators.
std::shared_ptr< Operator > readFormula_(const std::string &formula, const std::map< std::string, std::shared_ptr< FunctionInterface >> &functionNames)
void readFormula(const std::string &formula, const std::map< std::string, std::shared_ptr< FunctionInterface >> &functionNames)