sin

Trigonometric functions on complex numbers.

  1. Complex!T sin(Complex!T z)
    @safe pure nothrow @nogc
    sin
    (
    T
    )
  2. Complex!T cos(Complex!T z)

Return Value

Type: Complex!T

The sine, cosine and tangent of z, respectively.

Examples

static import std.math;
assert(sin(complex(0.0)) == 0.0);
assert(sin(complex(2.0L, 0)) == std.math.sin(2.0L));
static import std.math;
assert(cos(complex(0.0)) == 1.0);
assert(cos(complex(1.3L, 0.0)) == std.math.cos(1.3L));
assert(cos(complex(0.0L, 5.2L)) == std.math.cosh(5.2L));

Meta

Suggestion Box / Bug Report