Boost Matheval
Evaluate mathematical expressions using Boost.Spirit
|
Data Structures | |
class | Parser |
Parse a mathematical expression. More... | |
Functions | |
double | parse (std::string const &expr, std::map< std::string, double > const &st=std::map< std::string, double >()) |
Convenience function. More... | |
|
inline |
Convenience function.
This function builds the grammar, parses the iterator to an AST, evaluates it, and returns the result.
[in] | expr | mathematical expression |
[in] | st | the symbol table for variables |
Definition at line 58 of file matheval.hpp.
References matheval::Parser::evaluate(), and matheval::Parser::parse().