Template Function wt::parse_expression¶
Defined in File math_expression.hpp
Function Documentation¶
-
template<NumericOrBool R>
inline R wt::parse_expression(const std::string &expr)¶ Parse a math expression defined as the string
exprand returns the evaluated result. Also prints the parsed result tocoutwithinfoverbosity.Parse a complex-valued math expression defined as the string
exprand returns the evaluated result. Also prints the parsed result tocoutwithinfoverbosity.- Template Parameters:
type – of result, must be either a Numeric or a bool
- Returns:
R the evaluated result