Click or drag to resize

RMath Class

Provides methods for real numbers, that were forgotten by the Math class.
Inheritance Hierarchy
SystemObject
  Altaxo.CalcRMath

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static class RMath

The RMath type exposes the following members.

Methods
 NameDescription
Public methodStatic memberAcosh Computes the inverse hyperbolic cosine of x.
Public methodStatic memberAreIntervalsOverlappingCC Tests if the interval [a0, a1] is overlapping with the interval [b0, b1]. The return value is true if the intervals overlap, or only touching each other (for instance, if a1==b0).
Public methodStatic memberAreIntervalsOverlappingCO Tests if the interval [a0, a1) is overlapping with the interval [b0, b1). The return value is true if the intervals overlap. Because the end of the intervals are open, the return value is false if for instance a1==b0.
Public methodStatic memberAsinh Computes the inverse hyperbolic sine of x.
Public methodStatic memberAtanh Computes the inverse hyperbolic tangent of x.
Public Extension MethodClampToInterval Clamps the value x to the interval [xmin, xmax]. If Double.NaN is provided, the return value is Double.NaN.
Public methodStatic memberEvaluatePolynom1stDerivativeOrderAscending(Double, IReadOnlyListDouble) Evaluates the 1st derivative of a polynom. The polynomial coefficients are given in ascending order, thus a0 is the first element in the array of coefficients.
Public methodStatic memberEvaluatePolynom1stDerivativeOrderAscending(Double, ReadOnlySpanDouble) Evaluates the 1st derivative of a polynom. The polynomial coefficients are given in ascending order, thus a0 is the first element in the array of coefficients.
Public methodStatic memberEvaluatePolynomOrderAscending(Double, IReadOnlyListDouble) Evaluates the polynom. The polynomial coefficients are given in ascending order.
Public methodStatic memberEvaluatePolynomOrderAscending(Double, ReadOnlySpanDouble) Evaluates the polynom. The polynomial coefficients are given in ascending order.
Public methodStatic memberEvaluatePolynomOrderDescending(Double, IReadOnlyListDouble) Evaluates the polynom. The polynomial coefficients are given in ascending order.
Public methodStatic memberEvaluatePolynomOrderDescending(Double, ReadOnlySpanDouble) Evaluates the polynom. The polynomial coefficients are given in ascending order.
Public methodStatic memberFindNearestIndex Finds the (fractional) index of the nearest element in the xVector to the xValue.
Public methodStatic memberHypot The standard hypot() function for two arguments taking care of overflows and zerodivides.
Public Extension MethodInFractionOfUnorderedIntervalCC If x is inside the interval [leftValue, rightValue] or [rightValue, leftValue], then this function returns a value in the range [0,1] designating the (linear) position inside that interval. I.e. if rightValue > leftValue, the return value would be (x-leftValue)/(rightValue-leftValue).
Public methodStatic memberInterpolateLinear(Double, IReadOnlyListDouble, Boolean) Interpolates values of an array.
Public methodStatic memberInterpolateLinear(Double, Double, Double) Interpolates linearly between leftValue and rightValue, using the parameter fraction.
Public methodStatic memberInterpolateLinear(Double, Double, Boolean) Interpolates values of an array.
Public methodStatic memberIsFinite(Double) Tests if x is finite, i.e. is in the interval [double.MinValue, double.MaxValue].
Public Extension MethodIsFinite(Single) Tests if x is finite, i.e. is in the interval [float.MinValue, float.MaxValue].
Public Extension MethodIsInIntervalCC Tests whether or not x is in the closed interval [xmin, xmax]. No test is done if xmin is less than xmax.
Public Extension MethodIsInIntervalCO Tests whether or not x is in the semi-open interval [xmin, xmax). No test is done if xmin is less than xmax.
Public Extension MethodIsInIntervalOC Tests whether or not x is in the semi-open interval (xmin, xmax]. No test is done if xmin is less than xmax.
Public Extension MethodIsInIntervalOO Tests whether or not x is in the open interval (xmin, xmax). No test is done if xmin is less than xmax.
Public Extension MethodIsNaN(Double) Test if x is not a number.
Public Extension MethodIsNaN(Single) Test if x is not a number.
Public methodStatic memberLog1p Computes log(1 + x) with improved accuracy for small values of x.
Public methodStatic memberMinMax(Double, Double) Gets the minimum and maximum of two values.
Public methodStatic memberMinMax(Double, Double, Double) Gets the minimum and maximum of three values.
Public methodStatic memberMinMax(Double, Double, Double, Double) Gets the minimum and maximum of four values.
Public methodStatic memberOneMinusExp Calculates 1 - exp(x) with improved accuracy around x = 0.
Public Extension MethodPow(Double, Int32) Calculates x^n by repeated squaring.
Public Extension MethodPow(Double, Int64) Calculates x^n by repeated squaring.
Public Extension MethodPow2 Calculates (square of x).
Public Extension MethodPow3 Calculates (cube of x).
Public Extension MethodPow4 Calculates x⁴.
Public Extension MethodPow5 Calculates x⁵.
Public Extension MethodPow6 Calculates x⁶.
Public Extension MethodPow7 Calculates x⁷.
Public Extension MethodPow8 Calculates x⁸.
Public Extension MethodPow9 Calculates x⁹.
Public methodStatic memberScaleDecadic Calculates x * 10^n.
Public methodStatic memberTenToThePowerOf Returns 10 to the power of i, i.e. 10^i.
Top
Fields
 NameDescription
Public fieldStatic memberDoubleMaximalDecimalPower Greatest power of 10 that can be parsed is 308.
Public fieldStatic memberDoubleMinimalDecimalPower Smallest power of 10 that can be parsed is -323.
Public fieldStatic memberDoubleMinimalDecimalPowerWithoutPrecisionLoss Smallest power of 10 that can be parsed without precision loss is -308.
Top
See Also