C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Cos() публичный статический Метод

Calculate the cos.
public static Cos ( double a ) : double
a double The value passed to the function.
Результат double

Exp() публичный статический Метод

Calculate the exp.
public static Exp ( double a ) : double
a double The value passed to the function.
Результат double

Log() публичный статический Метод

Calculate the log.
public static Log ( double a ) : double
a double The value passed to the function.
Результат double

Pow() публичный статический Метод

Calculate the power of a number.
public static Pow ( double a, double b ) : double
a double The base.
b double The exponent.
Результат double

Sin() публичный статический Метод

Calculate the sin.
public static Sin ( double a ) : double
a double The value passed to the function.
Результат double

Sqrt() публичный статический Метод

Calculate the square root.
public static Sqrt ( double a ) : double
a double The value passed to the function.
Результат double