Function reference · Complex
imagpart
Returns the imaginary component of a complex expression.
Nerdamer expands supported algebraic structure and separates known real and complex factors. Purely real expressions return zero; unresolved complex functions can remain under imagpart(...).
Examples
These examples use Nerdamer Notation.
Extract the imaginary coefficient.
imagpart(3+2*i) // → 2
A plain real symbol has zero imaginary component.
imagpart(x) // → 0
Interfaces
The same operation is available through the interfaces below.
Nerdamer Notation
Use this form inside input passed to nerdamer(...).
imagpart(arg1)
nerdamer.imagpart
Call the operation through the default nerdamer import.
nerdamer.imagpart(a: Expression): Expression
Parameters
| Name | Type | Description |
|---|---|---|
a | Expression | — |
