IMEXP
Returns the complex exponential of a complex number.
Computes e^(a+bi) and returns the result as complex text.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=IMEXP(inumber)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
inumber | any | Required | — |
Return type
Can return text.
How it works
For a + bi, the exponential is exp(a) times cos(b) + i sin(b). It exists for every complex input.
Differences from Excel
The raw Formualizer text can contain more significant digits than Excel’s complex-number text. The examples round each coefficient to 15 significant digits for display.
Remarks
- Input is coerced to complex-number text before parsing.
- Uses Euler's identity for the imaginary component.
Error cases
- Invalid complex text returns
#NUM!.
Examples
Scale a rotation of four radians by exp(3).
Formula =IMEXP("3+4i")
Expected result -13.1287830814622-15.200784463068i
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Reverse the rotation while leaving its magnitude unchanged.
Formula =IMEXP("3-4j")
Expected result -13.1287830814622+15.200784463068j
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
At real one the result reduces to the constant e.
Formula =IMEXP("1")
Expected result 2.71828182845905
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The text “invalid” has no complex value from which to exponentiate.
Formula =IMEXP("invalid")
Expected result #NUM!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Exponential of zero
Formula =IMEXP("0")
Expected result 1
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Does IMEXP return text or a numeric complex type?
It returns a canonical complex text string, consistent with other IM* functions.