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