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.
Test if a double-precision floating-point numeric value is infinite.
The bias of a double-precision floating-point number's exponent.
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.
High word mask for the exponent 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.
Find the nearest value of a discrete periodic function, given a point.
compute the greatest common divisor using euclid's algorithm
Gamma function.
Test if a double-precision floating-point numeric value is positive zero.
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 (Γ)
Return the real and imaginary components of a double-precision complex floating-point number.
The Euler-Mascheroni constant.
Compute the principal square root of a double-precision floating-point number.
Compute the cosine of a number.
Test if a finite numeric value is an even 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.
Complementary error function.
High word mask for the significand of a double-precision floating-point number.
Calculate a scaled Lanczos sum for the approximation of the gamma function.
Maximum double-precision floating-point number.
Compute gamma(x+1) - 1.
Incomplete gamma function.
Smallest positive normalized single-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 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 gamma function.
Natural logarithm of 2.
Standard math.
Return the minimum value.
Evaluate the natural logarithm of 1+x.
Difference between one and the smallest value greater than one that can be represented as a double-precision floating-point number.
Ï€.
Evaluate a factorial.
Compute the sine of a double-precision floating-point number on [-π/4, π/4].
Euler's number.
Evaluate bˣ - 1.
Continued fraction approximation.
Compute sin(Ï€x).
Compute exp(x) - 1.
Arbitrary constant `g` to be used in Lanczos approximation functions.
Random numbers.
Inverse complementary error function.
Evaluate the signum function for a double-precision floating-point number.
1/4 times π.
Incomplete beta function.
BLAS.
1/2 times π.
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.
Standard library statistical functions.
Natural logarithm of the square root of 2Ï€.
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.
Beta function.
A 32-bit Mersenne Twister pseudorandom number generator.
Maximum single-precision floating-point number.
Calculate the Lanczos sum for the approximation of the gamma function.
Incomplete beta function and its first derivative.
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
Test if a finite double-precision floating-point number is a nonnegative integer.
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.
Uniformly distributed pseudorandom numbers between 0 and 1.
Calculate the variance of a strided array using a two-pass algorithm.
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.
Uniformly distributed pseudorandom numbers.
Compute the greatest common divisor (gcd).
Calculate the sum of strided array elements using pairwise summation.
Exponentially distributed pseudorandom numbers.
Returns a 32-bit integer corresponding to the more significant 32 bits of a double-precision floating-point number.
Exact test for the success probability in a Bernoulli experiment.
Gamma distributed pseudorandom numbers.
Evaluate the natural logarithm of the factorial function.
Normally distributed pseudorandom numbers.
Digamma function.
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.
Compute the natural logarithm of the binomial coefficient.
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.
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 positive integer.
Logistic distributed pseudorandom numbers.
Poisson distributed random numbers.
Calculate the arithmetic mean of a strided array using a two-pass error correction algorithm.
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.
Test if a double-precision floating-point number is a probability.
Triangular distributed pseudorandom numbers.
Fréchet distributed pseudorandom numbers.
Cauchy distributed pseudorandom numbers.
Bernoulli distributed pseudorandom numbers.
characteristic functions for chi-squared distributions
Binomial distributed pseudorandom numbers.
Standard normal pseudorandom numbers.
Student's t-distributed pseudorandom numbers.
Laplace (double exponential) distributed pseudorandom numbers.
Rayleigh distributed pseudorandom numbers.
Euclidean geometry classes and tools for JavaScript
Converts degrees to radians.
Converts radians to degrees.
Compute a sum incrementally.
Sample elements from an array-like object.
Powerful mathematics and statistics library for JavaScript.
A small javascript module for working with normal distributions
Computes the median of an array.
Two-sample Student's t-Test.
Generates a linearly spaced index array from a subsequence string.
javascript light-weight symbolic math expression evaluator
Compute the absolute difference of two real numbers.
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"
Inverse chi-squared cumulative distribution function
Scientific and statistical computing in JavaScript.
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.
Matrices.
Computes a quantile for a numeric array.
Negative infinity.
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.
Constructor for creating arrays filled with pseudorandom values drawn from a nullary PRNG.
Trigonometry rules to solve equations for angles and sides
Machine learning algorithms.
Perform a chi-square independence test.
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 an absolute value.
Computes the quadratic mean (root mean square).
Evaluates a polynomial.
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.
Add a constant to each element in a double-precision floating-point strided array.
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.
Sets the less significant 32 bits of a double-precision floating-point number.
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.
Computes the covariance between one or more numeric arrays.
Smallest positive double-precision floating-point number.
Evaluates a polynomial.
Returns a normal number `y` and exponent `exp` satisfying `x = y * 2^exp`.
Multiplies a double-precision floating-point number by an integer power of two.
Natural logarithm of 1/2.
Error function.
mzMath - a collection of TypeScript-based math helpers.
Test if a double-precision floating-point numeric value is finite.