Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment atan

  • atan(x: number): number
  • Computes the arctangent of a number.

    Parameters

    • x: number

      input value

    Returns number

    arctangent (in radians)

    Example

    var v = atan( 0.0 );
    // returns ~0.0

    Example

    var PI = require( `@stdlib/constants/float64/pi` );
    
    var v = atan( -PI/4.0 );
    // returns ~-0.666

    Example

    var PI = require( `@stdlib/constants/float64/pi` );
    
    var v = atan( PI/4.0 );
    // returns ~0.666

    Example

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