Class Trig
Static DoublePrecision Trigonometry Helper Class
Inheritance
System.Object
Trig
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: CADability.dll
Syntax
Methods
|
Improve this Doc
View Source
Acos(Double)
Trigonometric Arcus Cosine (Arkuscosinus) in radians
Declaration
public static double Acos(double length)
Parameters
| Type |
Name |
Description |
| System.Double |
length |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Acosh(Double)
Trigonometric Hyperbolic Area Cosine (Areacosinus hyperbolicus)
Declaration
public static double Acosh(double x)
Parameters
| Type |
Name |
Description |
| System.Double |
x |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Acot(Double)
Trigonometric Arcus Cotangent (Arkuscotangens) in radians
Declaration
public static double Acot(double length)
Parameters
| Type |
Name |
Description |
| System.Double |
length |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Acoth(Double)
Trigonometric Hyperbolic Area Cotangent (Areacotangens hyperbolicus)
Declaration
public static double Acoth(double x)
Parameters
| Type |
Name |
Description |
| System.Double |
x |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Acsc(Double)
Trigonometric Arcus Cosecant (Arkuscosekans) in radians
Declaration
public static double Acsc(double length)
Parameters
| Type |
Name |
Description |
| System.Double |
length |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Acsch(Double)
Trigonometric Hyperbolic Area Cosecant (Areacosekans hyperbolicus)
Declaration
public static double Acsch(double x)
Parameters
| Type |
Name |
Description |
| System.Double |
x |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
ArcusTangentFromRational(Double, Double)
The principal argument (in radians) of the complex number x+I*y
Declaration
public static double ArcusTangentFromRational(double nominator, double denominator)
Parameters
| Type |
Name |
Description |
| System.Double |
nominator |
y
|
| System.Double |
denominator |
x
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Asec(Double)
Trigonometric Arcus Secant (Arkussekans) in radians
Declaration
public static double Asec(double length)
Parameters
| Type |
Name |
Description |
| System.Double |
length |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Asech(Double)
Trigonometric Hyperbolic Area Secant (Areasekans hyperbolicus)
Declaration
public static double Asech(double x)
Parameters
| Type |
Name |
Description |
| System.Double |
x |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Asin(Double)
Trigonometric Arcus Sine (Arkussinus) in radians
Declaration
public static double Asin(double length)
Parameters
| Type |
Name |
Description |
| System.Double |
length |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Asinh(Double)
Trigonometric Hyperbolic Area Sine (Areasinus hyperbolicus)
Declaration
public static double Asinh(double x)
Parameters
| Type |
Name |
Description |
| System.Double |
x |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Atan(Double)
Trigonometric Arcus Tangent (Arkustangens) in radians
Declaration
public static double Atan(double length)
Parameters
| Type |
Name |
Description |
| System.Double |
length |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Atanh(Double)
Trigonometric Hyperbolic Area Tangent (Areatangens hyperbolicus)
Declaration
public static double Atanh(double x)
Parameters
| Type |
Name |
Description |
| System.Double |
x |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Beta(Double, Double)
Declaration
public static double Beta(double z, double w)
Parameters
| Type |
Name |
Description |
| System.Double |
z |
|
| System.Double |
w |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
BinomialCoefficient(Int32, Int32)
Returns a binomial coefficient of n and k as a double precision number
Declaration
public static double BinomialCoefficient(int n, int k)
Parameters
| Type |
Name |
Description |
| System.Int32 |
n |
|
| System.Int32 |
k |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Cos(Double)
Trigonometric Cosine (Cosinus) of an angle in radians
Declaration
public static double Cos(double angleRadians)
Parameters
| Type |
Name |
Description |
| System.Double |
angleRadians |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Cosh(Double)
Trigonometric Hyperbolic Cosine (Cosinus hyperbolicus)
Declaration
public static double Cosh(double x)
Parameters
| Type |
Name |
Description |
| System.Double |
x |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Cot(Double)
Trigonometric Cotangent (Cotangens) of an angle in radians
Declaration
public static double Cot(double angleRadians)
Parameters
| Type |
Name |
Description |
| System.Double |
angleRadians |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Coth(Double)
Trigonometric Hyperbolic Cotangent (Cotangens hyperbolicus)
Declaration
public static double Coth(double x)
Parameters
| Type |
Name |
Description |
| System.Double |
x |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Csc(Double)
Trigonometric Cosecant (Cosekans) of an angle in radians
Declaration
public static double Csc(double angleRadians)
Parameters
| Type |
Name |
Description |
| System.Double |
angleRadians |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Csch(Double)
Trigonometric Hyperbolic Cosecant (Cosekans hyperbolicus)
Declaration
public static double Csch(double x)
Parameters
| Type |
Name |
Description |
| System.Double |
x |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
DegreeToNewgrad(Double)
Converts a degree (360-periodic) angle to a newgrad (400-periodic) angle.
Declaration
public static double DegreeToNewgrad(double degree)
Parameters
| Type |
Name |
Description |
| System.Double |
degree |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
DegreeToRadiant(Double)
Converts a degree (360-periodic) angle to a radiant (2*Pi-periodic) angle.
Declaration
public static double DegreeToRadiant(double degree)
Parameters
| Type |
Name |
Description |
| System.Double |
degree |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Factorial(Int32)
Returns a factorial of an integer number (n!)
Declaration
public static double Factorial(int n)
Parameters
| Type |
Name |
Description |
| System.Int32 |
n |
The value to be factorialized
|
Returns
| Type |
Description |
| System.Double |
The double precision result
|
|
Improve this Doc
View Source
FactorialLn(Int32)
Declaration
public static double FactorialLn(int n)
Parameters
| Type |
Name |
Description |
| System.Int32 |
n |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
GammaLn(Double)
Returns the natural logarithm of Gamma for a real value > 0
Declaration
public static double GammaLn(double xx)
Parameters
| Type |
Name |
Description |
| System.Double |
xx |
A real value for Gamma calculation
|
Returns
| Type |
Description |
| System.Double |
A value ln|Gamma(xx))| for xx > 0
|
|
Improve this Doc
View Source
Hypot(Double, Double)
Returns
sqrt(a2 + b2)
without underflow/overlow.
Declaration
public static double Hypot(double a, double b)
Parameters
| Type |
Name |
Description |
| System.Double |
a |
|
| System.Double |
b |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
NewgradToDegree(Double)
Converts a newgrad (400-periodic) angle to a degree (360-periodic) angle.
Declaration
public static double NewgradToDegree(double newgrad)
Parameters
| Type |
Name |
Description |
| System.Double |
newgrad |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
NewgradToRadiant(Double)
Converts a newgrad (400-periodic) angle to a radiant (2*Pi-periodic) angle.
Declaration
public static double NewgradToRadiant(double newgrad)
Parameters
| Type |
Name |
Description |
| System.Double |
newgrad |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
RadiantToDegree(Double)
Converts a radiant (2*Pi-periodic) angle to a degree (360-periodic) angle.
Declaration
public static double RadiantToDegree(double radiant)
Parameters
| Type |
Name |
Description |
| System.Double |
radiant |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
RadiantToNewgrad(Double)
Converts a radiant (2*Pi-periodic) angle to a newgrad (400-periodic) angle.
Declaration
public static double RadiantToNewgrad(double radiant)
Parameters
| Type |
Name |
Description |
| System.Double |
radiant |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Sec(Double)
Trigonometric Secant (Sekans) of an angle in radians
Declaration
public static double Sec(double angleRadians)
Parameters
| Type |
Name |
Description |
| System.Double |
angleRadians |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Sech(Double)
Trigonometric Hyperbolic Secant (Sekans hyperbolicus)
Declaration
public static double Sech(double x)
Parameters
| Type |
Name |
Description |
| System.Double |
x |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Sin(Double)
Trigonometric Sine (Sinus) of an angle in radians
Declaration
public static double Sin(double angleRadians)
Parameters
| Type |
Name |
Description |
| System.Double |
angleRadians |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Sinh(Double)
Trigonometric Hyperbolic Sine (Sinus hyperbolicus)
Declaration
public static double Sinh(double x)
Parameters
| Type |
Name |
Description |
| System.Double |
x |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Tan(Double)
Trigonometric Tangent (Tangens) of an angle in radians
Declaration
public static double Tan(double angleRadians)
Parameters
| Type |
Name |
Description |
| System.Double |
angleRadians |
|
Returns
| Type |
Description |
| System.Double |
|
|
Improve this Doc
View Source
Tanh(Double)
Trigonometric Hyperbolic Tangent (Tangens hyperbolicus)
Declaration
public static double Tanh(double x)
Parameters
| Type |
Name |
Description |
| System.Double |
x |
|
Returns
| Type |
Description |
| System.Double |
|