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.
Exibir arquivo Open project: AlexAlbala/MaCRo

Public Properties

Property Type Description
E double
PI double

Public Methods

Method 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

Method Description
_power ( double x, int c ) : double
atans ( double x ) : double
atanx ( double x ) : double
expm1 ( double x ) : double

Method Details

Abs() public static method

Returns the absolute value
public static Abs ( double x ) : double
x double A number
return double

Acos() public static method

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

Asin() public static method

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

Atan() public static method

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

Atan2() public static method

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
return double

Ceiling() public static method

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

Cos() public static method

Calculate Cosinus
public static Cos ( double x ) : double
x double Value
return double

Cosh() public static method

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

Exp() public static method

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

Floor() public static method

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

Log() public static method

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

Log() public static method

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
return double

Log10() public static method

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

Max() public static method

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

Min() public static method

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

Pow() public static method

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
return double

Sign() public static method

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

Sin() public static method

Calculate Sinus
public static Sin ( double x ) : double
x double Value
return double

Sinh() public static method

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

Sqrt() public static method

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

Tan() public static method

Calculate Tangens
public static Tan ( double x ) : double
x double Value
return double

Tanh() public static method

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

ToDeg() public static method

public static ToDeg ( float angle ) : float
angle float
return float

ToRad() public static method

public static ToRad ( float angle ) : float
angle float
return float

Truncate() public static method

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

Property Details

E public_oe static_oe property

Natural base E
public static double E
return double

PI public_oe static_oe property

PI
public static double PI
return double