npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@stdlib/math-base-special

v0.3.0

Published

Base (i.e., lower-level) special math functions.

Downloads

5

Readme

Special Functions

NPM version Build Status Coverage Status

Base (i.e., lower-level) special math functions.

Installation

npm install @stdlib/math-base-special

Usage

var special = require( '@stdlib/math-base-special' );

special

Namespace for "base" (i.e., lower-level) special math functions.

var fcns = special;
// returns {...}

Exponential & Logarithmic Functions

  • [exp( x )][@stdlib/math/base/special/exp]: natural exponential function.
  • [exp10( x )][@stdlib/math/base/special/exp10]: base 10 exponential function.
  • [exp2( x )][@stdlib/math/base/special/exp2]: base 2 exponential function.
  • [expit( x )][@stdlib/math/base/special/expit]: compute the standard logistic function.
  • [expm1( x )][@stdlib/math/base/special/expm1]: compute exp(x) - 1.
  • [expm1rel( x )][@stdlib/math/base/special/expm1rel]: compute the relative error exponential.
  • [kernelLog1p( f )][@stdlib/math/base/special/kernel-log1p]: compute log(1+f) - f for 1+f in ~[sqrt(2)/2, sqrt(2)].
  • [ln( x )][@stdlib/math/base/special/ln]: evaluate the natural logarithm of a double-precision floating-point number.
  • [log( x, b )][@stdlib/math/base/special/log]: compute the base b logarithm.
  • [log10( x )][@stdlib/math/base/special/log10]: evaluate the common logarithm.
  • [log1mexp( x )][@stdlib/math/base/special/log1mexp]: evaluates the natural logarithm of 1-exp(-|x|).
  • [log1p( x )][@stdlib/math/base/special/log1p]: evaluate the natural logarithm of 1+x.
  • [log1pexp( x )][@stdlib/math/base/special/log1pexp]: evaluates the natural logarithm of 1+exp(x).
  • [log1pmx( x )][@stdlib/math/base/special/log1pmx]: evaluate ln(1+x) - x.
  • [log2( x )][@stdlib/math/base/special/log2]: evaluate the binary logarithm.
  • [logaddexp( x, y )][@stdlib/math/base/special/logaddexp]: evaluates the natural logarithm of exp(x) + exp(y).
  • [pow( base, exponent )][@stdlib/math/base/special/pow]: exponential function.
  • [powm1( b, x )][@stdlib/math/base/special/powm1]: evaluate bˣ - 1.
  • [xlog1py( x, y )][@stdlib/math/base/special/xlog1py]: compute x * ln(y+1) so that the result is 0 if x = 0.
  • [xlogy( x, y )][@stdlib/math/base/special/xlogy]: compute x * ln(y) so that the result is 0 if x = 0.

Trigonometric Functions

  • [acos( x )][@stdlib/math/base/special/acos]: compute the arccosine of a double-precision floating-point number.
  • [acosd( x )][@stdlib/math/base/special/acosd]: compute the arccosine in degrees of a double-precision floating-point number.
  • [acosf( x )][@stdlib/math/base/special/acosf]: compute the arccosine of a single-precision floating-point number.
  • [acosh( x )][@stdlib/math/base/special/acosh]: compute the hyperbolic arccosine of a double-precision floating-point number.
  • [acovercos( x )][@stdlib/math/base/special/acovercos]: compute the inverse coversed cosine.
  • [acoversin( x )][@stdlib/math/base/special/acoversin]: compute the inverse coversed sine.
  • [ahavercos( x )][@stdlib/math/base/special/ahavercos]: compute the inverse half-value versed cosine.
  • [ahaversin( x )][@stdlib/math/base/special/ahaversin]: compute the inverse half-value versed sine.
  • [asin( x )][@stdlib/math/base/special/asin]: compute the arcsine of a double-precision floating-point number.
  • [asind( x )][@stdlib/math/base/special/asind]: compute the arcsine (in degrees) of a double-precision floating-point number.
  • [asindf( x )][@stdlib/math/base/special/asindf]: compute the arcsine (in degrees) of a single-precision floating-point number.
  • [asinf( x )][@stdlib/math/base/special/asinf]: compute the arcsine of a single-precision floating-point number.
  • [asinh( x )][@stdlib/math/base/special/asinh]: compute the hyperbolic arcsine of a double-precision floating-point number.
  • [atan( x )][@stdlib/math/base/special/atan]: compute the arctangent of a double-precision floating-point number.
  • [atan2( y, x )][@stdlib/math/base/special/atan2]: compute the angle in the plane (in radians) between the positive x-axis and the ray from (0,0) to the point (x,y).
  • [atand( x )][@stdlib/math/base/special/atand]: compute the arctangent in degrees of a double-precision floating-point number.
  • [atanf( x )][@stdlib/math/base/special/atanf]: compute the arctangent of a single-precision floating-point number.
  • [atanh( x )][@stdlib/math/base/special/atanh]: compute the hyperbolic arctangent of a double-precision floating-point number.
  • [avercos( x )][@stdlib/math/base/special/avercos]: compute the inverse versed cosine.
  • [aversin( x )][@stdlib/math/base/special/aversin]: compute the inverse versed sine.
  • [cos( x )][@stdlib/math/base/special/cos]: compute the cosine of a number.
  • [cosd( x )][@stdlib/math/base/special/cosd]: computes the cosine of an angle measured in degrees.
  • [cosh( x )][@stdlib/math/base/special/cosh]: compute the hyperbolic cosine of a double-precision floating-point number.
  • [cosm1( x )][@stdlib/math/base/special/cosm1]: compute cos(x) - 1.
  • [cospi( x )][@stdlib/math/base/special/cospi]: compute the cosine of a number times π.
  • [covercos( x )][@stdlib/math/base/special/covercos]: compute the coversed cosine.
  • [coversin( x )][@stdlib/math/base/special/coversin]: compute the coversed sine.
  • [hacovercos( x )][@stdlib/math/base/special/hacovercos]: compute the half-value coversed cosine.
  • [hacoversin( x )][@stdlib/math/base/special/hacoversin]: compute the half-value coversed sine.
  • [havercos( x )][@stdlib/math/base/special/havercos]: compute the half-value versed cosine.
  • [haversin( x )][@stdlib/math/base/special/haversin]: compute the half-value versed sine.
  • [risingFactorial( x, n )][@stdlib/math/base/special/rising-factorial]: compute the rising factorial.
  • [sin( x )][@stdlib/math/base/special/sin]: compute the sine of a number.
  • [sinc( x )][@stdlib/math/base/special/sinc]: compute the cardinal sine of a number.
  • [sincos( x )][@stdlib/math/base/special/sincos]: simultaneously compute the sine and cosine of a number.
  • [sincospi()][@stdlib/math/base/special/sincospi]: simultaneously compute the sine and cosine of a number times π.
  • [sinh( x )][@stdlib/math/base/special/sinh]: compute the hyperbolic sine of a double-precision floating-point number.
  • [sinpi( x )][@stdlib/math/base/special/sinpi]: compute the sine of a number times π.
  • [tan( x )][@stdlib/math/base/special/tan]: evaluate the tangent of a number.
  • [tand( x )][@stdlib/math/base/special/tand]: computes the tangent of an angle measured in degrees.
  • [tanh( x )][@stdlib/math/base/special/tanh]: compute the hyperbolic tangent of a double-precision floating-point number.
  • [vercos( x )][@stdlib/math/base/special/vercos]: compute the versed cosine.
  • [versin( x )][@stdlib/math/base/special/versin]: compute the versed sine.

Bessel Functions

  • [besselj0( x )][@stdlib/math/base/special/besselj0]: compute the Bessel function of the first kind of order zero.
  • [besselj1( x )][@stdlib/math/base/special/besselj1]: compute the Bessel function of the first kind of order one.
  • [bessely0( x )][@stdlib/math/base/special/bessely0]: compute the Bessel function of the second kind of order zero.
  • [bessely1( x )][@stdlib/math/base/special/bessely1]: compute the Bessel function of the second kind of order one.

Absolute Value and Rounding Functions

  • [abs( x )][@stdlib/math/base/special/abs]: compute the absolute value of a double-precision floating-point number.
  • [abs2( x )][@stdlib/math/base/special/abs2]: compute the squared absolute value of a double-precision floating-point number.
  • [abs2f( x )][@stdlib/math/base/special/abs2f]: compute the squared absolute value of a single-precision floating-point number.
  • [absf( x )][@stdlib/math/base/special/absf]: compute the absolute value of a single-precision floating-point number.
  • [cabs( z )][@stdlib/math/base/special/cabs]: compute the absolute value of a double-precision complex floating-point number.
  • [cabs2( z )][@stdlib/math/base/special/cabs2]: compute the squared absolute value of a double-precision complex floating-point number.
  • [cabs2f( z )][@stdlib/math/base/special/cabs2f]: compute the squared absolute value of a single-precision complex floating-point number.
  • [cabsf( z )][@stdlib/math/base/special/cabsf]: compute the absolute value of a single-precision complex floating-point number.
  • [cceil( z )][@stdlib/math/base/special/cceil]: round a double-precision complex floating-point number toward positive infinity.
  • [cceilf( z )][@stdlib/math/base/special/cceilf]: round a single-precision complex floating-point number toward positive infinity.
  • [cceiln( z, n )][@stdlib/math/base/special/cceiln]: round each component of a double-precision complex floating-point number to the nearest multiple of 10^n toward positive infinity.
  • [ceil( x )][@stdlib/math/base/special/ceil]: round a double-precision floating-point number toward positive infinity.
  • [ceil10( x )][@stdlib/math/base/special/ceil10]: round a numeric value to the nearest power of 10 toward positive infinity.
  • [ceil2( x )][@stdlib/math/base/special/ceil2]: round a numeric value to the nearest power of two toward positive infinity.
  • [ceilb( x, n, b )][@stdlib/math/base/special/ceilb]: round a numeric value to the nearest multiple of b^n toward positive infinity.
  • [ceilf( x )][@stdlib/math/base/special/ceilf]: round a single-precision floating-point number toward positive infinity.
  • [ceiln( x, n )][@stdlib/math/base/special/ceiln]: round a numeric value to the nearest multiple of 10^n toward positive infinity.
  • [ceilsd( x, n, b )][@stdlib/math/base/special/ceilsd]: round a numeric value to the nearest number toward positive infinity with N significant figures.
  • [cfloor( z )][@stdlib/math/base/special/cfloor]: round a double-precision complex floating-point number toward negative infinity.
  • [cfloorn( z, n )][@stdlib/math/base/special/cfloorn]: round each component of a double-precision complex floating-point number to the nearest multiple of 10^n toward negative infinity.
  • [clamp( v, min, max )][@stdlib/math/base/special/clamp]: restrict a double-precision floating-point number to a specified range.
  • [clampf( v, min, max )][@stdlib/math/base/special/clampf]: restrict a single-precision floating-point number to a specified range.
  • [cround( z )][@stdlib/math/base/special/cround]: round each component of a double-precision complex floating-point number to the nearest integer.
  • [croundn( z, n )][@stdlib/math/base/special/croundn]: round each component of a double-precision complex floating-point number to the nearest multiple of 10^n.
  • [csignum( z )][@stdlib/math/base/special/csignum]: evaluate the signum function of a double-precision complex floating-point number.
  • [floor( x )][@stdlib/math/base/special/floor]: round a double-precision floating-point number toward negative infinity.
  • [floor10( x )][@stdlib/math/base/special/floor10]: round a numeric value to the nearest power of 10 toward negative infinity.
  • [floor2( x )][@stdlib/math/base/special/floor2]: round a numeric value to the nearest power of two toward negative infinity.
  • [floorb( x, n, b )][@stdlib/math/base/special/floorb]: round a numeric value to the nearest multiple of b^n toward negative infinity.
  • [floorf( x )][@stdlib/math/base/special/floorf]: round a single-precision floating-point numeric value toward negative infinity.
  • [floorn( x, n )][@stdlib/math/base/special/floorn]: round a double-precision floating-point number to the nearest multiple of 10^n toward negative infinity.
  • [floorsd( x, n, b )][@stdlib/math/base/special/floorsd]: round a numeric value to the nearest number toward negative infinity with N significant figures.
  • [labs( x )][@stdlib/math/base/special/labs]: compute an absolute value of a signed 32-bit integer.
  • [maxabs( x, y )][@stdlib/math/base/special/maxabs]: return the maximum absolute value.
  • [maxabsn( [x[, y[, ...args]]] )][@stdlib/math/base/special/maxabsn]: return the maximum absolute value.
  • [minabs( x, y )][@stdlib/math/base/special/minabs]: return the minimum absolute value.
  • [minabsn( [x[, y[, ...args]]] )][@stdlib/math/base/special/minabsn]: return the minimum absolute value.
  • [minmaxabs( x, y )][@stdlib/math/base/special/minmaxabs]: return the minimum and maximum absolute values.
  • [minmaxabsn( [x[, y[, ...args]]] )][@stdlib/math/base/special/minmaxabsn]: return the minimum and maximum absolute values.
  • [round( x )][@stdlib/math/base/special/round]: round a numeric value to the nearest integer.
  • [round10( x )][@stdlib/math/base/special/round10]: round a numeric value to the nearest power of 10 on a linear scale.
  • [round2( x )][@stdlib/math/base/special/round2]: round a numeric value to the nearest power of two on a linear scale.
  • [roundb( x, n, b )][@stdlib/math/base/special/roundb]: round a numeric value to the nearest multiple of b^n on a linear scale.
  • [roundn( x, n )][@stdlib/math/base/special/roundn]: round a double-precision floating-point number to the nearest multiple of 10^n.
  • [roundsd( x, n[, b] )][@stdlib/math/base/special/roundsd]: round a numeric value to the nearest number with n significant figures.
  • [signum( x )][@stdlib/math/base/special/signum]: signum function.
  • [signumf( x )][@stdlib/math/base/special/signumf]: signum function.
  • [trunc( x )][@stdlib/math/base/special/trunc]: round a double-precision floating-point number toward zero.
  • [trunc10( x )][@stdlib/math/base/special/trunc10]: round a numeric value to the nearest power of 10 toward zero.
  • [trunc2( x )][@stdlib/math/base/special/trunc2]: round a numeric value to the nearest power of two toward zero.
  • [truncb( x, n, b )][@stdlib/math/base/special/truncb]: round a numeric value to the nearest multiple of b^n toward zero.
  • [truncf( x )][@stdlib/math/base/special/truncf]: round a single-precision floating-point number toward zero.
  • [truncn( x, n )][@stdlib/math/base/special/truncn]: round a numeric value to the nearest multiple of 10^n toward zero.
  • [truncsd( x, n, b )][@stdlib/math/base/special/truncsd]: round a numeric value to the nearest number toward zero with n significant figures.

Other Special Functions

  • acot( x ): compute the inverse cotangent of a double-precision floating-point number.
  • acotd( x ): compute the arccotangent in degrees of a double-precision floating-point number.
  • acotf( x ): compute the inverse cotangent of a single-precision floating-point number.
  • acoth( x ): compute the inverse hyperbolic cotangent of a double-precision floating-point number.
  • acsc( x ): compute the arccosecant of a number.
  • acscd( x ): compute the arccosecant in degrees of a double-precision floating-point number.
  • acscdf( x ): compute the arccosecant (in degrees) of a single-precision floating-point number.
  • acscf( x ): compute the arccosecant of a single-precision floating-point number.
  • acsch( x ): compute the hyperbolic arccosecant of a number.
  • asec( x ): compute the inverse (arc) secant of a number.
  • asecd( x ): compute the arcsecant (in degrees) of a double-precision floating-point number.
  • asecdf( x ): compute the arcsecant (in degrees) of a single-precision floating-point number.
  • asecf( x ): compute the inverse (arc) secant of a single-precision floating-point number.
  • asech( x ): compute the hyperbolic arcsecant of a number.
  • bernoulli( n ): compute the nth Bernoulli number.
  • beta( x, y ): beta function.
  • betainc( x, a, b[, regularized[, upper]] ): incomplete beta function.
  • betaincinv( p, a, b[, upper] ): inverse of the incomplete beta function.
  • betaln( x, y ): natural logarithm of the beta function.
  • binet( x ): evaluate Binet's formula extended to real numbers.
  • binomcoef( n, k ): compute the binomial coefficient.
  • binomcoefln( n, k ): compute the natural logarithm of the binomial coefficient.
  • boxcox( x, lambda ): compute a one-parameter Box-Cox transformation.
  • boxcox1p( x, lambda ): compute a one-parameter Box-Cox transformation of 1+x.
  • boxcox1pinv( y, lambda ): compute the inverse of a one-parameter Box-Cox transformation for 1+x.
  • boxcoxinv( y, lambda ): compute the inverse of a one-parameter Box-Cox transformation.
  • cbrt( x ): compute the cube root of a double-precision floating-point number.
  • cbrtf( x ): compute the cube root of a single-precision floating-point number.
  • ccis( z ): evaluate the cis function for a double-precision complex floating-point number.
  • cexp( z ): evaluate the exponential function for a double-precision complex floating-point number.
  • cflipsign( z, y ): return a double-precision complex floating-point number with the same magnitude as z and the sign of y*z.
  • cflipsignf( z, y ): return a single-precision complex floating-point number with the same magnitude as z and the sign of y*z.
  • cidentity( z ): evaluate the identity function of a double-precision complex floating-point number.
  • cidentityf( z ): evaluate the identity function of a single-precision complex floating-point number.
  • cinv( z ): compute the inverse of a double-precision complex floating-point number.
  • copysign( x, y ): return a double-precision floating-point number with the magnitude of x and the sign of y.
  • copysignf( x, y ): return a single-precision floating-point number with the magnitude of x and the sign of y.
  • cot( x ): evaluate the cotangent of a number.
  • cotd( x ): compute the cotangent of an angle measured in degrees.
  • coth( x ): compute the hyperbolic cotangent of a number.
  • cphase( z ): compute the argument of a double-precision complex floating-point number in radians.
  • cpolar( z ): compute the absolute value and phase of a double-precision complex floating-point number.
  • csc( x ): evaluate the cosecant of a number.
  • cscd( x ): compute the cosecant of a degree.
  • csch( x ): compute the hyperbolic cosecant of a number.
  • deg2rad( x ): convert an angle from degrees to radians.
  • deg2radf( x ): convert an angle from degrees to radians (single-precision).
  • digamma( x ): digamma function.
  • diracDelta( x ): evaluate the Dirac delta function.
  • eta( s ): dirichlet eta function.
  • ellipe( m ): compute the complete elliptic integral of the second kind.
  • ellipj( u, m ): compute the Jacobi elliptic functions sn, cn, and dn.
  • ellipk( m ): compute the complete elliptic integral of the first kind.
  • erf( x ): error function.
  • erfc( x ): complementary error function.
  • [erfcinv( x )][@stdlib/math/base/special/erfcinv]: inverse complementary error function.
  • [erfcx( x )][@stdlib/math/base/special/erfcx]: scaled complementary error function.
  • [erfinv( x )][@stdlib/math/base/special/erfinv]: inverse error function.
  • [factorial( x )][@stdlib/math/base/special/factorial]: factorial function.
  • [factorial2( n )][@stdlib/math/base/special/factorial2]: double factorial function.
  • [factorialln( x )][@stdlib/math/base/special/factorialln]: natural logarithm of the factorial function.
  • [fallingFactorial( x, n )][@stdlib/math/base/special/falling-factorial]: compute the falling factorial.
  • [fibonacciIndex( F )][@stdlib/math/base/special/fibonacci-index]: compute the Fibonacci number index.
  • [fibonacci( n )][@stdlib/math/base/special/fibonacci]: compute the nth Fibonacci number.
  • [flipsign( x, y )][@stdlib/math/base/special/flipsign]: return a double-precision floating-point number with the magnitude of x and the sign of x*y.
  • [flipsignf( x, y )][@stdlib/math/base/special/flipsignf]: return a single-precision floating-point number with the magnitude of x and the sign of x*y.
  • [fresnel( x )][@stdlib/math/base/special/fresnel]: compute the Fresnel integrals S(x) and C(x).
  • [fresnelc( x )][@stdlib/math/base/special/fresnelc]: compute the Fresnel integral C(x).
  • [fresnels( x )][@stdlib/math/base/special/fresnels]: compute the Fresnel integral S(x).
  • [frexp( x )][@stdlib/math/base/special/frexp]: split a double-precision floating-point number into a normalized fraction and an integer power of two.
  • [gamma( x )][@stdlib/math/base/special/gamma]: gamma function.
  • [gamma1pm1( x )][@stdlib/math/base/special/gamma1pm1]: compute gamma(x+1) - 1.
  • [gammainc( x, s[, regularized[, upper ]] )][@stdlib/math/base/special/gammainc]: incomplete gamma function.
  • [gammaincinv( p, s[, upper ] )][@stdlib/math/base/special/gammaincinv]: inverse of incomplete gamma function.
  • [gammaln( x )][@stdlib/math/base/special/gammaln]: natural logarithm of the gamma function.
  • [gammasgn( x )][@stdlib/math/base/special/gammasgn]: sign of the gamma function.
  • [gcd( a, b )][@stdlib/math/base/special/gcd]: compute the greatest common divisor (gcd).
  • [heaviside( x[, continuity] )][@stdlib/math/base/special/heaviside]: evaluate the Heaviside function.
  • [hypot( x, y )][@stdlib/math/base/special/hypot]: compute the hypotenuse avoiding overflow and underflow.
  • [hypotf( x, y )][@stdlib/math/base/special/hypotf]: compute the hypotenuse avoiding overflow and underflow (single-precision).
  • [identity( x )][@stdlib/math/base/special/identity]: evaluate the identity function of a double-precision floating-point number.
  • [identityf( x )][@stdlib/math/base/special/identityf]: evaluate the identity function of a single-precision floating-point number.
  • [inv( x )][@stdlib/math/base/special/inv]: compute the multiplicative inverse of a double-precision floating-point number.
  • [invf( x )][@stdlib/math/base/special/invf]: compute the multiplicative inverse of a single-precision floating-point number.
  • [kroneckerDelta( i, j )][@stdlib/math/base/special/kronecker-delta]: evaluate the Kronecker delta.
  • [kroneckerDeltaf( i, j )][@stdlib/math/base/special/kronecker-deltaf]: evaluate the Kronecker delta (single-precision).
  • [lcm( a, b )][@stdlib/math/base/special/lcm]: compute the least common multiple (lcm).
  • [ldexp( frac, exp )][@stdlib/math/base/special/ldexp]: multiply a double-precision floating-point number by an integer power of two.
  • [lucas( n )][@stdlib/math/base/special/lucas]: compute the nth Lucas number.
  • [max( x, y )][@stdlib/math/base/special/max]: return the maximum value.
  • [maxn( [x[, y[, ...args]]] )][@stdlib/math/base/special/maxn]: return the maximum value.
  • [min( x, y )][@stdlib/math/base/special/min]: return the minimum value.
  • [minmax( x, y )][@stdlib/math/base/special/minmax]: return the minimum and maximum values.
  • [minmaxn( [x[, y[, ...args]]] )][@stdlib/math/base/special/minmaxn]: return the minimum and maximum values.
  • [minn( [x[, y[, ...args]]] )][@stdlib/math/base/special/minn]: return the minimum value.
  • [modf( x )][@stdlib/math/base/special/modf]: decompose a double-precision floating-point number into integral and fractional parts.
  • [negafibonacci( n )][@stdlib/math/base/special/negafibonacci]: compute the nth negaFibonacci number.
  • [negalucas( n )][@stdlib/math/base/special/negalucas]: compute the nth negaLucas number.
  • [nonfibonacci( n )][@stdlib/math/base/special/nonfibonacci]: compute the nth non-Fibonacci number.
  • [pdiff( x, y )][@stdlib/math/base/special/pdiff]: return the positive difference between x and y.
  • [pdifff( x, y )][@stdlib/math/base/special/pdifff]: return the positive difference between x and y.
  • [polygamma( n, x )][@stdlib/math/base/special/polygamma]: polygamma function.
  • [rad2deg( x )][@stdlib/math/base/special/rad2deg]: convert an angle from radians to degrees.
  • [rad2degf( x )][@stdlib/math/base/special/rad2degf]: convert an angle from radians to degrees (single-precision).
  • [ramp( x )][@stdlib/math/base/special/ramp]: evaluate the ramp function.
  • [rampf( x )][@stdlib/math/base/special/rampf]: evaluate the ramp function.
  • [rcbrt( x )][@stdlib/math/base/special/rcbrt]: compute the reciprocal of the principal cube root of a double-precision floating-point number.
  • [rcbrtf( x )][@stdlib/math/base/special/rcbrtf]: compute the reciprocal of the principal cube root of a single-precision floating-point number.
  • [zeta( s )][@stdlib/math/base/special/riemann-zeta]: riemann zeta function.
  • [rsqrt( x )][@stdlib/math/base/special/rsqrt]: compute the reciprocal of the principal square root of a double-precision floating-point number.
  • [rsqrtf( x )][@stdlib/math/base/special/rsqrtf]: compute the reciprocal of the principal square root of a single-precision floating-point number.
  • [secd( x )][@stdlib/math/base/special/secd]: compute the secant of an angle measured in degrees.
  • [sici( x )][@stdlib/math/base/special/sici]: compute the sine and cosine integrals.
  • [spence( x )][@stdlib/math/base/special/spence]: spence's function, also known as the dilogarithm.
  • [sqrt( x )][@stdlib/math/base/special/sqrt]: compute the principal square root of a double-precision floating-point number.
  • [sqrt1pm1( x )][@stdlib/math/base/special/sqrt1pm1]: compute sqrt( 1 + x ) - 1.
  • [sqrtf( x )][@stdlib/math/base/special/sqrtf]: compute the principal square root of a single-precision floating-point number.
  • [sqrtpi( x )][@stdlib/math/base/special/sqrtpi]: compute the principal square root of the product of π and a positive number.
  • [tribonacci( n )][@stdlib/math/base/special/tribonacci]: compute the nth Tribonacci number.
  • [trigamma( x )][@stdlib/math/base/special/trigamma]: trigamma function.
  • [wrap( v, min, max )][@stdlib/math/base/special/wrap]: wrap a value on the half-open interval [min,max).

Fast algorithms of various special functions, which trade accuracy for increased speed, are available in the following sub-namespace:

  • fast: fast math special functions.

Finally, the namespace exports the following kernel functions, which are mainly used internally. Beware that they may only be applicable for input values inside a certain number range and/or may not work as expected if not all arguments satisfy the parameter requirements.

Examples

var objectKeys = require( '@stdlib/utils-keys' );
var special = require( '@stdlib/math-base-special' );

console.log( objectKeys( special ) );

Notice

This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.

For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.

Community

Chat


License

See LICENSE.

Copyright

Copyright © 2016-2024. The Stdlib Authors.