C# Class Encog.MathUtil.BoundMath

C# will sometimes return Math.NaN or Math.Infinity when numbers get to large or too small. This can have undesirable effects. This class provides some basic math functions that may be in danger of returning such a value. This class imposes a very large and small ceiling and floor to keep the numbers within range.
显示文件 Open project: encog/encog-silverlight-core

Public Methods

Method Description
Cos ( double a ) : double

Calculate the cos.

Exp ( double a ) : double

Calculate the exp.

Log ( double a ) : double

Calculate the log.

Pow ( double a, double b ) : double

Calculate the power of a number.

Sin ( double a ) : double

Calculate the sin.

Sqrt ( double a ) : double

Calculate the square root.

Method Details

Cos() public static method

Calculate the cos.
public static Cos ( double a ) : double
a double The value passed to the function.
return double

Exp() public static method

Calculate the exp.
public static Exp ( double a ) : double
a double The value passed to the function.
return double

Log() public static method

Calculate the log.
public static Log ( double a ) : double
a double The value passed to the function.
return double

Pow() public static method

Calculate the power of a number.
public static Pow ( double a, double b ) : double
a double The base.
b double The exponent.
return double

Sin() public static method

Calculate the sin.
public static Sin ( double a ) : double
a double The value passed to the function.
return double

Sqrt() public static method

Calculate the square root.
public static Sqrt ( double a ) : double
a double The value passed to the function.
return double