Extreme Optimization >
User's Guide >
Mathematics Library >
General Classes >
Elementary Functions
Extreme Optimization User's Guide
User's Guide
Up: General Classes Next: Function Delegates Previous: Mathematical Constants Contents
Elementary Functions
The System.Math class in the .NET framework Base Class Libraries implements a large number of
elementary functions. Unfortunately, this list is far from complete. The ElementaryFunctions class in the Extreme.Mathematics namespace defines many elementary functions that are missing from
System.Math.
Hyperbolic Functions
| Method |
Description |
| Cosh
|
Hyperbolic cosine. |
| Coth
|
Hyperbolic cotangent. |
| Csch
|
Hyperbolic cosecant. |
| Sinh
|
Hyperbolic sine. |
| Sech
|
Hyperbolic secant. |
| Tanh
|
Hyperbolic tangent. |
Table 1. Hyperbolic functions.
Inverse Hyperbolic Functions
| Method |
Description |
| Acosh
|
Inverse hyperbolic cosine. |
| Acoth
|
Inverse hyperbolic cotangent. |
| Acsch
|
Inverse hyperbolic cosecant. |
| Asech
|
Inverse hyperbolic secant. |
| Asech
|
Inverse hyperbolic secant. |
| Atanh
|
Inverse hyperbolic tangent. |
Table 2. Inverse Hyperbolic functions.
Exponential, Logarithmic and Miscellaneous Functions
| Method |
Description |
| ExpMinus1
|
The exponential function minus one, ex-1, calculated to high precision when x
is near zero. |
| Hypot
|
The hypotenuse of a right-angled triangle with specified sides. |
| LambertW
|
Lambert's W function, the (real) solution W of x=WeW. |
| Log1PlusX |
The natural logarithm of 1+x calculated to high precision for x close to zero. |
| Pow
|
A number raised to an integer power. |
Table 3. Exponential, logarithmic, and miscellaneous functions.
The Pow method is useful only for larger values of the exponent. For small values, the JIT compiler
automatically converts the expression to an optimized multiplication.
Up: General Classes Next: Function Delegates Previous: Mathematical Constants Contents
Copyright 2004-2008,
Extreme Optimization. All rights reserved.
Extreme Optimization, Complexity made simple, M#, and M
Sharp are trademarks of ExoAnalytics Inc.
Microsoft, Visual C#, Visual Basic, Visual Studio, Visual
Studio.NET, and the Visual Studio Logo are registered trademarks of Microsoft Corporation