Elementary Class

Contains methods for evaluating various elementary functions.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
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.
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.
Clip Clips a number so that it is within the specified interval.
Cos Returns the cosine of an angle using accurate argument reduction.
Cosh Returns the hyperbolic cosine of a real number.
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.
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(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(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.
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.
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.
Sinh Returns the hyperbolic sine of a real number.
SinPi Returns the sine of an angle expressed in multiples of π.
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