C# Class MaCRo.Tools.exMath

Math Library for Micro Framework Compatible with full .NET Framework System.Math (C)opyright 2009 Elze Kool, http://www.microframework.nl This Sourcecode is Public Domain. You are free to use this class Non-Commercialy and Commercialy. This sourcecode is provided AS-IS. I take no responsibility for direct or indirect damage coused by this program/class.
Afficher le fichier Open project: AlexAlbala/MaCRo

Méthodes publiques

Свойство Type Description
E double
PI double

Méthodes publiques

Méthode Description
Abs ( double x ) : double

Returns the absolute value

Acos ( double x ) : double

Returns the angle whose cosine is the specified number

Asin ( double x ) : double

Returns the angle whose sine is the specified number

Atan ( double x ) : double

Returns the angle whose tangent is the specified number

Atan2 ( double y, double x ) : double

Returns the angle whose tangent is the quotient of two specified numbers.

Ceiling ( double x ) : double

Returns the smallest integer greater than or equal to the specified number

Cos ( double x ) : double

Calculate Cosinus

Cosh ( double x ) : double

Returns the hyperbolic cosine of the specified angle

Exp ( double x ) : double

Returns e raised to the specified power

Floor ( double x ) : double

Returns the largest integer less than or equal to the specified number.

Log ( double x ) : double

Returns the natural (base e) logarithm of a specified number

Log ( double x, double newBase ) : double

Calculate logaritmic value from value with given base

Log10 ( double x ) : double

Returns the base 10 logarithm of a specified number.

Max ( double x, double y ) : double

Returns the larger of two specified numbers

Min ( double x, double y ) : double

Returns the smaller of two specified numbers

Pow ( double x, double y ) : double

Returns a specified number raised to the specified power

Sign ( double x ) : double

Returns a value indicating the sign

Sin ( double x ) : double

Calculate Sinus

Sinh ( double x ) : double

Returns the hyperbolic sine of the specified angle.

Sqrt ( double x ) : double

Returns the square root of a specified number

Tan ( double x ) : double

Calculate Tangens

Tanh ( double x ) : double

Returns the hyperbolic tangent of the specified angle

ToDeg ( float angle ) : float
ToRad ( float angle ) : float
Truncate ( double x ) : double

Calculates the integral part of x to the nearest integer towards zero.

Private Methods

Méthode Description
_power ( double x, int c ) : double
atans ( double x ) : double
atanx ( double x ) : double
expm1 ( double x ) : double

Method Details

Abs() public static méthode

Returns the absolute value
public static Abs ( double x ) : double
x double A number
Résultat double

Acos() public static méthode

Returns the angle whose cosine is the specified number
public static Acos ( double x ) : double
x double A number representing a cosine
Résultat double

Asin() public static méthode

Returns the angle whose sine is the specified number
public static Asin ( double x ) : double
x double A number representing a sine
Résultat double

Atan() public static méthode

Returns the angle whose tangent is the specified number
public static Atan ( double x ) : double
x double A number representing a tangent
Résultat double

Atan2() public static méthode

Returns the angle whose tangent is the quotient of two specified numbers.
public static Atan2 ( double y, double x ) : double
y double The y coordinate of a point
x double The x coordinate of a point
Résultat double

Ceiling() public static méthode

Returns the smallest integer greater than or equal to the specified number
public static Ceiling ( double x ) : double
x double a Number
Résultat double

Cos() public static méthode

Calculate Cosinus
public static Cos ( double x ) : double
x double Value
Résultat double

Cosh() public static méthode

Returns the hyperbolic cosine of the specified angle
public static Cosh ( double x ) : double
x double An angle, measured in radians
Résultat double

Exp() public static méthode

Returns e raised to the specified power
public static Exp ( double x ) : double
x double A number specifying a power
Résultat double

Floor() public static méthode

Returns the largest integer less than or equal to the specified number.
public static Floor ( double x ) : double
x double a Number
Résultat double

Log() public static méthode

Returns the natural (base e) logarithm of a specified number
public static Log ( double x ) : double
x double a Number
Résultat double

Log() public static méthode

Calculate logaritmic value from value with given base
public static Log ( double x, double newBase ) : double
x double a Number
newBase double Base to use
Résultat double

Log10() public static méthode

Returns the base 10 logarithm of a specified number.
public static Log10 ( double x ) : double
x double a Number
Résultat double

Max() public static méthode

Returns the larger of two specified numbers
public static Max ( double x, double y ) : double
x double a Number
y double a Number
Résultat double

Min() public static méthode

Returns the smaller of two specified numbers
public static Min ( double x, double y ) : double
x double a Number
y double a Number
Résultat double

Pow() public static méthode

Returns a specified number raised to the specified power
public static Pow ( double x, double y ) : double
x double number to be raised to a power
y double number that specifies a power
Résultat double

Sign() public static méthode

Returns a value indicating the sign
public static Sign ( double x ) : double
x double A signed number.
Résultat double

Sin() public static méthode

Calculate Sinus
public static Sin ( double x ) : double
x double Value
Résultat double

Sinh() public static méthode

Returns the hyperbolic sine of the specified angle.
public static Sinh ( double x ) : double
x double An angle, measured in radians
Résultat double

Sqrt() public static méthode

Returns the square root of a specified number
public static Sqrt ( double x ) : double
x double A number
Résultat double

Tan() public static méthode

Calculate Tangens
public static Tan ( double x ) : double
x double Value
Résultat double

Tanh() public static méthode

Returns the hyperbolic tangent of the specified angle
public static Tanh ( double x ) : double
x double An angle, measured in radians
Résultat double

ToDeg() public static méthode

public static ToDeg ( float angle ) : float
angle float
Résultat float

ToRad() public static méthode

public static ToRad ( float angle ) : float
angle float
Résultat float

Truncate() public static méthode

Calculates the integral part of x to the nearest integer towards zero.
public static Truncate ( double x ) : double
x double A number to truncate
Résultat double

Property Details

E public_oe static_oe property

Natural base E
public static double E
Résultat double

PI public_oe static_oe property

PI
public static double PI
Résultat double