petab.v1.math
Functions for parsing and evaluating mathematical expressions.
- petab.v1.math.sympify_petab(expr: str | int | float) Expr | Basic [source]
Convert PEtab math expression to sympy expression.
- Parameters:
expr – PEtab math expression.
- Raises:
ValueError – Upon lexer/parser errors or if the expression is
otherwise invalid. –
- Returns:
The sympy expression corresponding to expr. Boolean values are converted to numeric values.
Modules
PEtab-math to sympy conversion. |
|
PEtab math to sympy conversion. |