Table of Contents

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

length double

Returns

double

Acosh(double)

Trigonometric Hyperbolic Area Cosine (Areacosinus hyperbolicus)

public static double Acosh(double x)

Parameters

x double

Returns

double

Acot(double)

Trigonometric Arcus Cotangent (Arkuscotangens) in radians

public static double Acot(double length)

Parameters

length double

Returns

double

Acoth(double)

Trigonometric Hyperbolic Area Cotangent (Areacotangens hyperbolicus)

public static double Acoth(double x)

Parameters

x double

Returns

double

Acsc(double)

Trigonometric Arcus Cosecant (Arkuscosekans) in radians

public static double Acsc(double length)

Parameters

length double

Returns

double

Acsch(double)

Trigonometric Hyperbolic Area Cosecant (Areacosekans hyperbolicus)

public static double Acsch(double x)

Parameters

x double

Returns

double

ArcusTangentFromRational(double, double)

The principal argument (in radians) of the complex number x+I*y

public static double ArcusTangentFromRational(double nominator, double denominator)

Parameters

nominator double

y

denominator double

x

Returns

double

Asec(double)

Trigonometric Arcus Secant (Arkussekans) in radians

public static double Asec(double length)

Parameters

length double

Returns

double

Asech(double)

Trigonometric Hyperbolic Area Secant (Areasekans hyperbolicus)

public static double Asech(double x)

Parameters

x double

Returns

double

Asin(double)

Trigonometric Arcus Sine (Arkussinus) in radians

public static double Asin(double length)

Parameters

length double

Returns

double

Asinh(double)

Trigonometric Hyperbolic Area Sine (Areasinus hyperbolicus)

public static double Asinh(double x)

Parameters

x double

Returns

double

Atan(double)

Trigonometric Arcus Tangent (Arkustangens) in radians

public static double Atan(double length)

Parameters

length double

Returns

double

Atanh(double)

Trigonometric Hyperbolic Area Tangent (Areatangens hyperbolicus)

public static double Atanh(double x)

Parameters

x double

Returns

double

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

z double

First argument, must be positive

w double

Second argument, must be positive

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

n int
k int

Returns

double

Cos(double)

Trigonometric Cosine (Cosinus) of an angle in radians

public static double Cos(double angleRadians)

Parameters

angleRadians double

Returns

double

Cosh(double)

Trigonometric Hyperbolic Cosine (Cosinus hyperbolicus)

public static double Cosh(double x)

Parameters

x double

Returns

double

Cot(double)

Trigonometric Cotangent (Cotangens) of an angle in radians

public static double Cot(double angleRadians)

Parameters

angleRadians double

Returns

double

Coth(double)

Trigonometric Hyperbolic Cotangent (Cotangens hyperbolicus)

public static double Coth(double x)

Parameters

x double

Returns

double

Csc(double)

Trigonometric Cosecant (Cosekans) of an angle in radians

public static double Csc(double angleRadians)

Parameters

angleRadians double

Returns

double

Csch(double)

Trigonometric Hyperbolic Cosecant (Cosekans hyperbolicus)

public static double Csch(double x)

Parameters

x double

Returns

double

DegreeToNewgrad(double)

Converts a degree (360-periodic) angle to a newgrad (400-periodic) angle.

public static double DegreeToNewgrad(double degree)

Parameters

degree double

Returns

double

DegreeToRadiant(double)

Converts a degree (360-periodic) angle to a radiant (2*Pi-periodic) angle.

public static double DegreeToRadiant(double degree)

Parameters

degree double

Returns

double

Factorial(int)

Returns a factorial of an integer number (n!)

public static double Factorial(int n)

Parameters

n int

The 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

n int

A 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

xx double

A 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

a double
b double

Returns

double

NewgradToDegree(double)

Converts a newgrad (400-periodic) angle to a degree (360-periodic) angle.

public static double NewgradToDegree(double newgrad)

Parameters

newgrad double

Returns

double

NewgradToRadiant(double)

Converts a newgrad (400-periodic) angle to a radiant (2*Pi-periodic) angle.

public static double NewgradToRadiant(double newgrad)

Parameters

newgrad double

Returns

double

RadiantToDegree(double)

Converts a radiant (2*Pi-periodic) angle to a degree (360-periodic) angle.

public static double RadiantToDegree(double radiant)

Parameters

radiant double

Returns

double

RadiantToNewgrad(double)

Converts a radiant (2*Pi-periodic) angle to a newgrad (400-periodic) angle.

public static double RadiantToNewgrad(double radiant)

Parameters

radiant double

Returns

double

Sec(double)

Trigonometric Secant (Sekans) of an angle in radians

public static double Sec(double angleRadians)

Parameters

angleRadians double

Returns

double

Sech(double)

Trigonometric Hyperbolic Secant (Sekans hyperbolicus)

public static double Sech(double x)

Parameters

x double

Returns

double

Sin(double)

Trigonometric Sine (Sinus) of an angle in radians

public static double Sin(double angleRadians)

Parameters

angleRadians double

Returns

double

Sinh(double)

Trigonometric Hyperbolic Sine (Sinus hyperbolicus)

public static double Sinh(double x)

Parameters

x double

Returns

double

Tan(double)

Trigonometric Tangent (Tangens) of an angle in radians

public static double Tan(double angleRadians)

Parameters

angleRadians double

Returns

double

Tanh(double)

Trigonometric Hyperbolic Tangent (Tangens hyperbolicus)

public static double Tanh(double x)

Parameters

x double

Returns

double