The OpenD Programming Language

sinh

Calculates the hyperbolic sine of x.

Special Values
xsinh(x)invalid?
±0.0±0.0no
±∞±∞no
  1. real sinh(real x)
  2. double sinh(double x)
    @safe pure nothrow @nogc
    double
    sinh
    (
    double x
    )
  3. float sinh(float x)

Examples

import std.math.constants : E;
import std.math.operations : isClose;
import std.math.traits : isIdentical;

enum sinh1 = (E - 1.0 / E) / 2;
import std.meta : AliasSeq;
static foreach (F; AliasSeq!(float, double, real))
{
    assert(isIdentical(sinh(F(0.0)), F(0.0)));
    assert(sinh(F(1.0)).isClose(F(sinh1)));
}

Meta