Skip to content

Imaginary ​

Imaginary part of a complex number.

✓ checked against that system · ! checked, with disagreements (hover a chip)FungrimIm✓Fungrim entryWolfram LanguageIm✓
Imaginary(complex | infinity) -> numberthe imaginary part; of a directed infinity, the infinity of its sign, or 0 when it has none.
SageMathimag_part(complex | infinity)mpmathim(complex | infinity)Juliaenumeratio_ball(imag, complex | infinity)
Typed signatures
TypePackageApplies
(complex | infinity) -> numberanalyticreplaces compute-enginealways
(complex | infinity) -> numbercompute-enginealways

Domain: Compute engine

Details
  • A Gaussian integer is a complex number with integer parts, so Im and Re read its two coordinates; there is no separate head for them.

Plot

ComplexPlot
real slice

Examples

Basic #

Im⁡(3+4i)=4\operatorname{Im}(3+4i) = 4

live ↗
Inℑ(3+4i)\Im(3+4i)Out44
Scope #

A Gaussian integer is a complex number with integer parts: (2+i)(1+3i)=−1+7i(2+i)(1+3i)=-1+7i

live ↗
Inℑ((2+i)(1+3i))\Im((2+i)(1+3i))Out77
Properties #

A real infinity has no imaginary part

live ↗
Inℑ(∞)\Im(∞)Out00
About
Examples3
Checked againstWolfram Language 3 agreeSageMath 3 agreempmath 3 agreeJulia 2 agree1 error
CrosswalkFungrimFungrim entry ×31Wolfram LanguageSageMathmpmathJulia

Implementation

mappedmpmathpackages/oracle/src/mappings.ts
mappedsagepackages/oracle/src/mappings.ts
mappedjuliapackages/oracle/src/mappings.ts