Back to Symbolic Math (SymEngine)
sym.denom
Extracts the denominator of a rational expression.
Syntax
sym.denom(expr)
Description
Extracts the denominator of a rational expression. For an expression representing a fraction p/q, returns q. For non-fractional expressions, returns 1 (since any expression can be viewed as itself over 1).
Parameters
| Name | Description |
|---|---|
| expr | - The expression to extract the denominator from. |
Returns
Expr