Math
Namespace
Binary
Functions for each binary operator
Class
LinearRegression
Results of a linear regression
Constant
I
i
NaN
NaN
NegativeInfinity
−∞
PositiveInfinity
∞
Function
Abs
(
x
)
Returns the absolute value of a number, or the modulus for complex numbers
double
Acos
(
x
)
Arccosine of x
double
Asin
(
x
)
Arcsine of x
double
Atan
(
x
)
Arctangent of x
double
Atan2
(
y
,
x
)
Arctangent of y divided by x
Ceiling
(
x
)
Returns the smallest whole number greater than or equal to x
double
ChiSquare
(
double
[]
values
,
double
[]
expected
)
Returns the Chi-Square value for the values
double
Cos
(
x
)
Cosine of x in radians
double
Cosh
(
x
)
Hyperbolic cosine of x
double
E
Euler number e. The base of the natural logarithm ln(x)
double
Exp
(
x
)
e raised to the power of x
Factorial
(
x
)
Returns the factorial of x (x!)
Floor
(
x
)
Returns the largest whole number less than or equal to x
double
GeometricMean
(
double
[]
values
)
Compute the geometric mean of the values
double
HarmonicMean
(
double
[]
values
)
Compute the harmonic mean of the values
ImaginaryPart
(
x
)
Returns the imaginary component of a real or complex number
double
Log
(
x
,
double
base
=
null
)
Log of x to base (e if null)
double
Log10
(
x
)
Base 10 log of x
Max
(
x
,
y
)
Returns the greater of x and y
double
Mean
(
double
[]
values
)
Compute the arithmetic mean of the values
double
Median
(
double
[]
values
)
Compute the median of the values
Min
(
x
,
y
)
Returns the lesser of x and y
double
[]
Mode
(
double
[]
values
)
Return a list of the most frequently occurring item in values
double
PI
The ratio of the circumference of a circle to its diameter
double
PI2
2 * PI
double
Pow
(
x
,
y
)
x raised to the power of y
double
Product
(
double
[]
values
)
Compute the product of the values
double
[][]
Quantiles
(
double
[]
values
,
percent
)
Returns a list of quantiles from values
Random
(
range
)
A random number inside the given range
RealPart
(
x
)
Returns the real component of a real or complex number
Round
(
x
)
Round x to the nearest whole number. If x is halfway between two numbers, choose the nearest
number that is away from zero
RoundEven
(
x
)
Round x to the nearest whole number. If x is halfway between two numbers, choose the nearest even
number (a.k.a. banker's rounding)
double
Sin
(
x
)
Sine of x in radians
double
Sinh
(
x
)
Hyperbolic sine of x
double
Sqrt
(
x
)
Compute the square root of the argument
double
StandardDeviation
(
double
[]
values
)
The standard deviation of the values
double
[]
StandardScores
(
double
[]
values
)
Returns an array of the standard scores (Z-scores) for values
double
Sum
(
double
[]
values
)
Compute the sum of the values
double
Tan
(
x
)
Tangent of x in radians
double
Tanh
(
x
)
Hyperbolic tangent of x
double
TAU
2 * PI
double
ToDegrees
(
x
)
Converts from radians to degrees
double
ToRadians
(
x
)
Converts from degrees to radians
double
Variance
(
double
[]
values
)
The variance of the values