Elementary Class

Contains methods for evaluating various elementary functions.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static class Elementary
Inheritance
Object  →  Elementary

Remarks

The methods in the Elementary class implement a number of elementary functions that are not available in the standard Math class. In particular, it supports more trigonometric and hyperbolic functions and their inverses, as well as some methods that are more accurate for specific values.

Methods

Acosh Returns the inverse hyperbolic cosine of a real number.
Acosh1PlusX Returns the inverse hyperbolic cosine of one plus a real number.
Acoth Returns the inverse hyperbolic cotangent of a real number.
Acsch Returns the inverse hyperbolic cosecant of a real number.
Asech Returns the inverse hyperbolic secant of a real number.
Asinh Returns the inverse hyperbolic sine of a real number.
Atanh Returns the inverse hyperbolic tangent of a real number.
Cbrt Returns the cube root of a number.
Clamp Clips a number so that it is within the specified interval.
Clip Clips a number so that it is within the specified interval.
Obsolete.
Cos Returns the cosine of an angle using accurate argument reduction.
Cosh Returns the hyperbolic cosine of a real number.
CoshM1 Returns the hyperbolic cosine of a real number minus one.
CosM1 Returns the cosine of an angle, minus 1, accurately for angles close to a multiple of π.
CosPi Returns the cosine of an angle expressed in multiples of π.
Coth Returns the hyperbolic cotangent of a real number.
Csch Returns the hyperbolic cosecant of a real number.
ExpMinus1 Returns the exponential function minus 1.
GetSymbolicDerivative Returns a lambda expression that represents the derivative of a method with respect to the specified argument.
Gudermannian Evaluates the Gudermannian function gd(x).
Hypot Gets the length of the hypotenuse of a right-angled triangle with sides of specified length.
IsFinite(Double) Returns whether the specified double-precision floating-point number is finite.
IsFinite(Single) Returns whether the specified float-precision floating-point number is finite.
IsInfinite(Double) Returns whether the specified double-precision floating-point number equals positive or negative infinity.
IsInfinite(Single) Returns whether the specified float-precision floating-point number equals positive or negative infinity.
IsNaN(Double) Returns whether the specified double-precision floating-point number is a Not-A-Number (NaN) value.
IsNaN(Single) Returns whether the specified float-precision floating-point number is a Not-A-Number (NaN) value.
LambertW Returns the Lambert W function.
Log1PlusX Returns the logarithm of 1 plus the argument.
Logistic Returns the logistic function.
LogLogistic Returns the logarithm of the logistic function.
LogSumExp Computes the logarithm of the sum of exponentials.
Max(Double[]) Returns the largest value in an array using IEEE-754r semantics.
Max(ReadOnlySpan<Double>) Returns the largest value in a span using IEEE-754r semantics.
Max(ReadOnlySpan<Single>) Returns the largest value in a span using IEEE-754r semantics.
Max(Single[]) Returns the largest value in an array using IEEE-754r semantics.
Max(Double, Double) Returns the largest of two numbers using IEEE-754r semantics.
Max(Single, Single) Returns the largest of two numbers using IEEE-754r semantics.
Max(Double, Double, Double) Returns the largest of three numbers using IEEE-754r semantics.
Max(Single, Single, Single) Returns the largest of three numbers using IEEE-754r semantics.
Min(Double[]) Returns the smallest value in an array using IEEE-754r semantics.
Min(ReadOnlySpan<Double>) Returns the smallest value in a span using IEEE-754r semantics.
Min(ReadOnlySpan<Single>) Returns the smallest value in a span using IEEE-754r semantics.
Min(Single[]) Returns the smallest value in an array using IEEE-754r semantics.
Min(Double, Double) Returns the smallest of two numbers using IEEE-754r semantics.
Min(Single, Single) Returns the smallest of two numbers using IEEE-754r semantics.
Min(Double, Double, Double) Returns the smallest of three numbers using IEEE-754r semantics.
Min(Single, Single, Single) Returns the smallest of three numbers using IEEE-754r semantics.
Pow(Double, Int32) Returns a number raised to an integer power.
Pow(Single, Int32) Returns a number raised to an integer power.
Pow<T>(T, Int32) Returns a number raised to an integer power.
Powers(Double, Int32) Returns a sequence of powers of a real number.
Powers(Double, Int32, Int32) Returns a sequence of powers of a real number.
RootN Returns the n-th root of a number.
ScaleByPowerOfTwo(Double, Int32) Multiplies a number by a power of two.
ScaleByPowerOfTwo(Single, Int32) Multiplies a number by a power of two.
Sech Returns the hyperbolic secant of a real number.
Sin Returns the sine of an angle using accurate argument reduction.
Sinc Evaluates the normalized sinc function.
SinCos Returns the cosine of an angle using accurate argument reduction.
SinCosPi Returns the sine and cosine of an angle expressed in multiples of π.
Sinh Returns the hyperbolic sine of a real number.
SinhCosh Returns a tuple of the hyperbolic sine and cosine of a real number.
SinPi Returns the sine of an angle expressed in multiples of π.
SmoothStep(Double) Returns the Smoothstep function.
SmoothStep(Double, Double, Double) Returns the Smoothstep function.
SoftThreshold Reduces the magnitude of a number towards zero.
Sqrt1pxm1 Returns the difference between the square root of a number close to 1, and 1.
Step(Double) Returns the Heaviside step function.
Step(Double, Double) Returns the Heaviside step function.
Tan Returns the tangent of an angle using accurate argument reduction.
Tanh Returns the hyperbolic tangent of a real number.
TanPi Returns the tangent of an angle expressed in multiples of π.

See Also