libSBML C++ API  libSBML 5.18.0 C++ API
FormulaFormatter.cpp File Reference
Include dependency graph for FormulaFormatter.cpp:

Functions

char * SBML_formulaToString (const ASTNode_t *tree)
 Converts an AST to a string representation of a formula using a syntax basically derived from SBML Level 1. More...
 

Function Documentation

◆ SBML_formulaToString()

char* SBML_formulaToString ( const ASTNode_t tree)

Converts an AST to a string representation of a formula using a syntax basically derived from SBML Level 1.

Parameters
treethe AST to be converted.
Returns
the formula from the given AST as an SBML Level 1 text-string mathematical formula. The caller owns the returned string and is responsible for freeing it when it is no longer needed.
See also
SBML_formulaToString()
SBML_parseL3FormulaWithSettings()
SBML_parseL3Formula()
SBML_parseL3FormulaWithModel()
SBML_getLastParseL3Error()
SBML_getDefaultL3ParserSettings()
Examples
printMath.cpp, translateL3Math.cpp, and translateMath.cpp.