Back to Symbolic Math (SymEngine)
sym.isComplexValued
Checks if the number is complex-valued (has non-zero imaginary part).
Syntax
sym.isComplexValued(expr)
Description
Checks if the number is complex-valued (has non-zero imaginary part).
Parameters
| Name | Description |
|---|---|
| expr | - The expression to check (should be a number). |
Returns
boolean