Back to Symbolic Math (SymEngine)
sym.re
Extracts the real part of a complex expression.
Syntax
sym.re(x)
Description
Extracts the real part of a complex expression. For a complex number z = a + bi, re(z) returns a. This function works symbolically on expressions containing symbolic variables and the imaginary unit I.
Parameters
| Name | Description |
|---|---|
| x | - The expression to extract the real part from. |
Returns
Expr