Class Trig
- Namespace
- MathNet.Numerics
- Assembly
- CADability.dll
Static DoublePrecision Trigonometry Helper Class
public sealed class Trig
- Inheritance
-
Trig
- Inherited Members
Methods
Acos(double)
Trigonometric Arcus Cosine (Arkuscosinus) in radians
public static double Acos(double length)
Parameters
lengthdouble
Returns
Acosh(double)
Trigonometric Hyperbolic Area Cosine (Areacosinus hyperbolicus)
public static double Acosh(double x)
Parameters
xdouble
Returns
Acot(double)
Trigonometric Arcus Cotangent (Arkuscotangens) in radians
public static double Acot(double length)
Parameters
lengthdouble
Returns
Acoth(double)
Trigonometric Hyperbolic Area Cotangent (Areacotangens hyperbolicus)
public static double Acoth(double x)
Parameters
xdouble
Returns
Acsc(double)
Trigonometric Arcus Cosecant (Arkuscosekans) in radians
public static double Acsc(double length)
Parameters
lengthdouble
Returns
Acsch(double)
Trigonometric Hyperbolic Area Cosecant (Areacosekans hyperbolicus)
public static double Acsch(double x)
Parameters
xdouble
Returns
ArcusTangentFromRational(double, double)
The principal argument (in radians) of the complex number x+I*y
public static double ArcusTangentFromRational(double nominator, double denominator)
Parameters
Returns
Asec(double)
Trigonometric Arcus Secant (Arkussekans) in radians
public static double Asec(double length)
Parameters
lengthdouble
Returns
Asech(double)
Trigonometric Hyperbolic Area Secant (Areasekans hyperbolicus)
public static double Asech(double x)
Parameters
xdouble
Returns
Asin(double)
Trigonometric Arcus Sine (Arkussinus) in radians
public static double Asin(double length)
Parameters
lengthdouble
Returns
Asinh(double)
Trigonometric Hyperbolic Area Sine (Areasinus hyperbolicus)
public static double Asinh(double x)
Parameters
xdouble
Returns
Atan(double)
Trigonometric Arcus Tangent (Arkustangens) in radians
public static double Atan(double length)
Parameters
lengthdouble
Returns
Atanh(double)
Trigonometric Hyperbolic Area Tangent (Areatangens hyperbolicus)
public static double Atanh(double x)
Parameters
xdouble
Returns
Beta(double, double)
Returns the beta function B(z, w) = Γ(z)·Γ(w) / Γ(z + w), computed via GammaLn(double).
public static double Beta(double z, double w)
Parameters
Returns
- double
The value of the beta function
BinomialCoefficient(int, int)
Returns a binomial coefficient of n and k as a double precision number
public static double BinomialCoefficient(int n, int k)
Parameters
Returns
Cos(double)
Trigonometric Cosine (Cosinus) of an angle in radians
public static double Cos(double angleRadians)
Parameters
angleRadiansdouble
Returns
Cosh(double)
Trigonometric Hyperbolic Cosine (Cosinus hyperbolicus)
public static double Cosh(double x)
Parameters
xdouble
Returns
Cot(double)
Trigonometric Cotangent (Cotangens) of an angle in radians
public static double Cot(double angleRadians)
Parameters
angleRadiansdouble
Returns
Coth(double)
Trigonometric Hyperbolic Cotangent (Cotangens hyperbolicus)
public static double Coth(double x)
Parameters
xdouble
Returns
Csc(double)
Trigonometric Cosecant (Cosekans) of an angle in radians
public static double Csc(double angleRadians)
Parameters
angleRadiansdouble
Returns
Csch(double)
Trigonometric Hyperbolic Cosecant (Cosekans hyperbolicus)
public static double Csch(double x)
Parameters
xdouble
Returns
DegreeToNewgrad(double)
Converts a degree (360-periodic) angle to a newgrad (400-periodic) angle.
public static double DegreeToNewgrad(double degree)
Parameters
degreedouble
Returns
DegreeToRadiant(double)
Converts a degree (360-periodic) angle to a radiant (2*Pi-periodic) angle.
public static double DegreeToRadiant(double degree)
Parameters
degreedouble
Returns
Factorial(int)
Returns a factorial of an integer number (n!)
public static double Factorial(int n)
Parameters
nintThe value to be factorialized
Returns
- double
The double precision result
FactorialLn(int)
Returns the natural logarithm of the factorial of n, ln(n!), computed via the logarithm of the
gamma function (GammaLn(double)). Throws an ArithmeticException for a negative argument.
public static double FactorialLn(int n)
Parameters
nintA non-negative integer
Returns
- double
ln(n!)
GammaLn(double)
Returns the natural logarithm of Gamma for a real value > 0
public static double GammaLn(double xx)
Parameters
xxdoubleA real value for Gamma calculation
Returns
- double
A value ln|Gamma(xx))| for xx > 0
Hypot(double, double)
Returns
<pre><code class="lang-csharp">sqrt(a2 + b2)</code></pre>
without underflow/overlow.
public static double Hypot(double a, double b)
Parameters
Returns
NewgradToDegree(double)
Converts a newgrad (400-periodic) angle to a degree (360-periodic) angle.
public static double NewgradToDegree(double newgrad)
Parameters
newgraddouble
Returns
NewgradToRadiant(double)
Converts a newgrad (400-periodic) angle to a radiant (2*Pi-periodic) angle.
public static double NewgradToRadiant(double newgrad)
Parameters
newgraddouble
Returns
RadiantToDegree(double)
Converts a radiant (2*Pi-periodic) angle to a degree (360-periodic) angle.
public static double RadiantToDegree(double radiant)
Parameters
radiantdouble
Returns
RadiantToNewgrad(double)
Converts a radiant (2*Pi-periodic) angle to a newgrad (400-periodic) angle.
public static double RadiantToNewgrad(double radiant)
Parameters
radiantdouble
Returns
Sec(double)
Trigonometric Secant (Sekans) of an angle in radians
public static double Sec(double angleRadians)
Parameters
angleRadiansdouble
Returns
Sech(double)
Trigonometric Hyperbolic Secant (Sekans hyperbolicus)
public static double Sech(double x)
Parameters
xdouble
Returns
Sin(double)
Trigonometric Sine (Sinus) of an angle in radians
public static double Sin(double angleRadians)
Parameters
angleRadiansdouble
Returns
Sinh(double)
Trigonometric Hyperbolic Sine (Sinus hyperbolicus)
public static double Sinh(double x)
Parameters
xdouble
Returns
Tan(double)
Trigonometric Tangent (Tangens) of an angle in radians
public static double Tan(double angleRadians)
Parameters
angleRadiansdouble
Returns
Tanh(double)
Trigonometric Hyperbolic Tangent (Tangens hyperbolicus)
public static double Tanh(double x)
Parameters
xdouble