Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "math/base/special/tanh/docs/types/index.d"

Index

Functions

Functions

Export assignment tanh

  • tanh(x: number): number
  • Computes the hyperbolic tangent of a number.

    Parameters

    • x: number

      input value

    Returns number

    hyperbolic tangent

    Example

    var v = tanh( 0.0 );
    // returns 0.0

    Example

    var v = tanh( 2.0 );
    // returns ~0.964

    Example

    var v = tanh( -2.0 );
    // returns ~-0.964

    Example

    var v = tanh( NaN );
    // returns NaN