is-natural-number
Check if a value is a natural number
Found 2138 results for mathematics
Check if a value is a natural number
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif
Computes the greatest common divisor (gcd).
Computes the least common multiple (lcm).
C APIs for registering a Node-API module exporting an interface for invoking a unary numerical function.
C APIs for registering a Node-API module exporting an interface for invoking a binary numerical function.
Double-precision floating-point negative infinity.
High word mask for the exponent of a double-precision floating-point number.
The bias of a double-precision floating-point number's exponent.
Test if a double-precision floating-point numeric value is infinite.
Return the real and imaginary components of a single-precision complex floating-point number.
The maximum biased base 2 exponent for a subnormal double-precision floating-point number.
Return the real and imaginary components of a double-precision complex floating-point number.
Multiply a double-precision floating-point number by an integer power of two.
The maximum biased base 2 exponent for a double-precision floating-point number.
Smallest positive double-precision floating-point normal number.
High word mask for excluding the sign bit of a double-precision floating-point number.
Double-precision floating-point positive infinity.
Test if a double-precision floating-point numeric value is NaN.
Compute the absolute value of a double-precision floating-point number.
Return a double-precision floating-point number with the magnitude of x and the sign of y.
Parse math interval
The minimum biased base 2 exponent for a subnormal double-precision floating-point number.
High word mask for the sign bit of a double-precision floating-point number.
Computes the L2 norm (Euclidean norm) of an array of values.
Computes the dot product between two numeric arrays.
Computes the cosine similarity between two arrays.
Test if a finite double-precision floating-point number is an integer.
Round a double-precision floating-point number toward negative infinity.
Test if a finite numeric value is an odd number.
Find how many values of a discrete periodic function are contained in an interval.
Exponential function.
Return the maximum value.
Given a point and a distance, determine how many periodic values were skipped.
compute the greatest common divisor using euclid's algorithm
Find the nearest value of a discrete periodic function, given a point.
Gamma function.
Test if a double-precision floating-point numeric value is positive zero.
Natural logarithm of 2.
Compute the sine of a number.
Positive infinity.
Return the real and imaginary components of a single-precision complex floating-point number.
Test if a double-precision floating-point numeric value is negative zero.
Round a double-precision floating-point number toward positive infinity.
Ï€.
the gamma function (Γ)
Compute the sine of a double-precision floating-point number on [-π/4, π/4].
Return the real and imaginary components of a double-precision complex floating-point number.
The Euler-Mascheroni constant.
Test if a finite numeric value is an even number.
Compute the principal square root of a double-precision floating-point number.
Compute sin(Ï€x).
Compute the cosine of a number.
Round a numeric value to the nearest integer.
Evaluate the natural logarithm of a double-precision floating-point number.
Compute the cosine of a double-precision floating-point number on [-π/4, π/4].
Square root of double-precision floating-point epsilon.
2Ï€.
Natural exponential function.
Round a double-precision floating-point number toward zero.
High word mask for the significand of a double-precision floating-point number.
Complementary error function.
Calculate a scaled Lanczos sum for the approximation of the gamma function.
Compute gamma(x+1) - 1.
Incomplete gamma function.
Smallest positive normalized single-precision floating-point number.
Maximum double-precision floating-point number.
One half times the natural logarithm of 2.
Natural logarithm of the smallest normalized double-precision floating-point number.
Square root of 2Ï€.
Compute `x - nπ/2 = r`.
Natural logarithm of the gamma function.
Standard library statistical functions.
Natural logarithm of the maximum double-precision floating-point number.
Compute the sum of an infinite series.
Evaluate a polynomial using double-precision floating-point arithmetic.
Natural logarithm of the square root of 2Ï€.
Standard math.
Evaluate a factorial.
Difference between one and the smallest value greater than one that can be represented as a double-precision floating-point number.
Return the minimum value.
Evaluate the natural logarithm of 1+x.
Euler's number.
Evaluate bˣ - 1.
Continued fraction approximation.
Compute exp(x) - 1.
Arbitrary constant `g` to be used in Lanczos approximation functions.
Random numbers.
Beta function.
Maximum single-precision floating-point number.
Inverse complementary error function.
Evaluate the signum function for a double-precision floating-point number.
Calculate the Lanczos sum for the approximation of the gamma function.
1/4 times π.
Incomplete beta function.
BLAS.
1/2 times π.
Incomplete beta function and its first derivative.
Return the real component of a double-precision complex floating-point number.
Return the real component of a single-precision complex floating-point number.
Return the imaginary component of a double-precision complex floating-point number.
Return the maximum absolute value.
Test if a finite double-precision floating-point number is a nonnegative integer.
Compute the binomial coefficient.
Return the minimum absolute value.
Compute the ratio of two gamma functions.
Compute the arcsine of a double-precision floating-point number.
Inverse incomplete gamma function.
Return the imaginary component of a single-precision complex floating-point number.
Perform C-like multiplication of two unsigned 32-bit integers.
A 32-bit Mersenne Twister pseudorandom number generator.
Compute the arccosine of a double-precision floating-point number.
The minimum base 10 exponent for a subnormal double-precision floating-point number.
A Node-Red node to perform basic mathematical calculations
The minimum base 10 exponent for a normal double-precision floating-point number.
Square root of 2.
Copy values from x into y.
Evaluate ln(1+x) - x.
The maximum base 10 exponent for a double-precision floating-point number.
Inverse incomplete beta function.
Smallest positive double-precision floating-point number.
Utilities for performing mathematical set operations on intervals and arrays of intervals
Round a double-precision floating-point number to the nearest multiple of 10^n.
Evaluate the tangent of a number.
Compute the tangent of a double-precision floating-point number on [-π/4, π/4].
Standard library.
Modulus function.
Inverse incomplete beta function.
Natural logarithm of the beta function.
The minimum biased base 2 exponent for a normal double-precision floating-point number.
Exponentially distributed pseudorandom numbers.
Uniformly distributed pseudorandom numbers between 0 and 1.
Compute the natural logarithm of the binomial coefficient.
Calculate the variance of a strided array using a two-pass algorithm.
Returns an integer corresponding to the unbiased exponent of a double-precision floating-point number.
Test if a finite double-precision floating-point number is a negative integer.
Normally distributed pseudorandom numbers using the improved Ziggurat method.
A linear congruential pseudorandom number generator (LCG) based on Park and Miller.
A linear congruential pseudorandom number generator (LCG) whose output is shuffled.
Inverse error function.
Discrete uniform distributed pseudorandom numbers.
Adds a constant to each strided array element and computes the sum using pairwise summation.
Calculate the arithmetic mean of a strided array using a two-pass error correction algorithm.
Uniformly distributed pseudorandom numbers.
Calculate the sum of strided array elements using pairwise summation.
Compute the greatest common divisor (gcd).
Bernoulli distributed pseudorandom numbers.
characteristic functions for chi-squared distributions
Exact test for the success probability in a Bernoulli experiment.
Returns a 32-bit integer corresponding to the more significant 32 bits of a double-precision floating-point number.
Evaluate the natural logarithm of the factorial function.
Gamma distributed pseudorandom numbers.
Digamma function.
Normally distributed pseudorandom numbers.
Binomial distributed pseudorandom numbers.
Standard normal pseudorandom numbers.
Student's t-distributed pseudorandom numbers.
Laplace (double exponential) distributed pseudorandom numbers.
Rayleigh distributed pseudorandom numbers.
Chi-square distributed pseudorandom numbers.
Chi distributed pseudorandom numbers.
Negative binomial distributed pseudorandom numbers.
Pareto (Type I) distributed pseudorandom numbers.
Weibull distributed pseudorandom numbers.
Pseudorandom numbers having integer values.
Beta distributed pseudorandom numbers.
Normally distributed pseudorandom numbers using the Box-Muller transform.
Base pseudorandom number generators.
Hypergeometric distributed pseudorandom numbers.
Inverse gamma distributed pseudorandom numbers.
Calculate the arithmetic mean of a strided array.
Log-normally distributed pseudorandom numbers.
F distributed pseudorandom numbers.
Lévy distributed pseudorandom numbers.
Geometric distributed pseudorandom numbers.
Calculate the variance of a strided array.
Compute a sum incrementally.
Test if a finite double-precision floating-point number is a positive integer.
Powerful mathematics and statistics library for JavaScript.
Logistic distributed pseudorandom numbers.
Test if a double-precision floating-point number is a probability.
Poisson distributed random numbers.
Arcsine distributed pseudorandom numbers.
Beta prime distributed pseudorandom numbers.
Raised cosine distributed pseudorandom numbers.
Erlang distributed pseudorandom numbers.
Kumaraswamy's double bounded distributed pseudorandom numbers.
Gumbel distributed pseudorandom numbers.
Triangular distributed pseudorandom numbers.
Fréchet distributed pseudorandom numbers.
Cauchy distributed pseudorandom numbers.
Sample elements from an array-like object.
Euclidean geometry classes and tools for JavaScript
Converts degrees to radians.
Converts radians to degrees.
A small javascript module for working with normal distributions
Computes the median of an array.
Compute the absolute difference of two real numbers.
Generates a linearly spaced index array from a subsequence string.
Two-sample Student's t-Test.
Matrices.
javascript light-weight symbolic math expression evaluator
Inverse chi-squared cumulative distribution function
Return the imaginary component of a double-precision complex floating-point number.
A simple function for calculating the chi-squared probability for a given observation set and expected set"
Scientific and statistical computing in JavaScript.
Trigonometry rules to solve equations for angles and sides
Return the real component of a double-precision complex floating-point number.
Completely solve trigonometry equations for angles and sides
Calculate the standard deviation of a strided array.
Calculate the standard deviation of a strided array using a two-pass algorithm.
Computes a quantile for a numeric array.
Negative infinity.
Computes an absolute value.
Constructor for creating arrays filled with pseudorandom values drawn from a nullary PRNG.
Constructor for creating arrays filled with pseudorandom values drawn from a binary PRNG.
Create a factory function for generating pseudorandom values drawn from a binary PRNG.
Machine learning algorithms.
Perform a chi-square independence test.
Add a constant to each element in a double-precision floating-point strided array.
Multiply a double-precision floating-point vector by a constant.
Provides a method to compute a moving arithmetic mean incrementally.
Calculate the sum of double-precision floating-point strided array elements using pairwise summation.
Calculate the minimum value of a double-precision floating-point strided array.
Compute the hyperbolic arctangent of a double-precision floating-point number.
Computes the quadratic mean (root mean square).
Evaluates a polynomial.
Sets the less significant 32 bits of a double-precision floating-point number.
Library to enumerate all natural number lists with a target sum.
Compute a Pearson product-moment correlation test between paired samples.
Create an array containing pseudorandom numbers drawn from a continuous uniform distribution.
Compute the hyperbolic tangent of a double-precision floating-point number.
LAPACK routines.
Natural exponential function.
Multiplies a double-precision floating-point number by an integer power of two.
Create an array containing pseudorandom numbers drawn from a discrete uniform distribution.
Splits a floating-point number into a higher order word and a lower order word.
Rounds a numeric value toward positive infinity.
Computes the maximum value of a numeric array and returns the corresponding array indices.
Rounds a numeric value toward negative infinity.
Error function.
Creates a double-precision floating-point number from a higher order word and a lower order word.
Returns a double-precision floating-point number with the magnitude of x and the sign of y.
Smallest positive double-precision floating-point number.
Computes the covariance between one or more numeric arrays.
Evaluates a polynomial.
Returns a normal number `y` and exponent `exp` satisfying `x = y * 2^exp`.
Natural logarithm of 1/2.
mzMath - a collection of TypeScript-based math helpers.
Test if a double-precision floating-point numeric value is finite.