pyhs3.generic_parse.parse_expression¶
- pyhs3.generic_parse.parse_expression(expr_str)[source]¶
Parse a mathematical expression string into a SymPy expression.
- Parameters:
expr_str (
str
) – The mathematical expression as a string.- Return type:
Expr
- Returns:
SymPy expression object.
- Raises:
ExpressionParseError – If the expression cannot be parsed.