expi

@trusted pure nothrow @nogc
Complex!real
expi
(
real y
)

Return Value

Type: Complex!real

The value of cos(y) + i sin(y).

Note: expi is included here for convenience and for easy migration of code.

Examples

import core.math : cos, sin;
assert(expi(0.0L) == 1.0L);
assert(expi(1.3e5L) == complex(cos(1.3e5L), sin(1.3e5L)));

Meta