Skip to content

Csgn ​

The complex sign function -- 11 in the right half-plane, −1-1 in the left, and on the imaginary axis the sign of the imaginary part; 00 at the origin.

✓ checked against that system · ! checked, with disagreements (hover a chip)FungrimCsgn✓Fungrim entry59a5d6✓bfc13fe9465d✓ec7f2d✓
Csgn(z)broadcasts element-wise over a list, like compute-engine's other numeric heads
Typed signatures
TypePackageApplies
(number) -> numberanalyticalways

Domain: Elementary functions

Plot

Examples

Basic #
live ↗
InCsgn(1)\mathrm{Csgn}(1)Out11

Exact for a negative integer, no N() needed

live ↗
InCsgn(−3)\mathrm{Csgn}(-3)Out−1-1
live ↗
InCsgn(0)\mathrm{Csgn}(0)Out00
Scope #

Csgn(i)=1\mathrm{Csgn}(i) = 1 -- Re(i)=0\mathrm{Re}(i) = 0 and Im(i)>0\mathrm{Im}(i) > 0

live ↗
InN(Csgn(i))N(\mathrm{Csgn}(i))Out1.01.0

Csgn(−i)=−1\mathrm{Csgn}(-i) = -1 -- Re(−i)=0\mathrm{Re}(-i) = 0 and Im(−i)<0\mathrm{Im}(-i) < 0

live ↗
InN(Csgn(−i))N(\mathrm{Csgn}(-i))Out−1.0-1.0
About
Examples5
CrosswalkFungrimFungrim entry ×4

See also: RealSign, Sign