The OpenD Programming Language

proj

Returns the projection of z onto the Riemann sphere.

proj
(
T
)

Parameters

z Complex!T

A complex number

Return Value

Type: Complex!T

The projection of z onto the Riemann sphere.

Examples

assert(proj(complex(1.0)) == complex(1.0));
assert(proj(complex(double.infinity, 5.0)) == complex(double.infinity, 0.0));
assert(proj(complex(5.0, -double.infinity)) == complex(double.infinity, -0.0));

Meta