C# Class MA.Limits.Helpers.MathHelper

Afficher le fichier Open project: redips789/MAprojektas

Méthodes publiques

Méthode Description
AreApproximatelyEqual ( double value1, double value2 ) : bool
AreApproximatelyEqual ( double value1, double value2, double maxDifference ) : bool
BinomialCoefficient ( int n, int k ) : double
Factorial ( int n ) : long
FastPow ( double a, int n ) : double
GreatestCommonDivisor ( int a, int b ) : int
IsInteger ( double x ) : bool
IsZero ( double value ) : bool
IsZero ( double value, double maxDifference ) : bool
Power ( double a, int powerNumerator, int powerDenominator ) : double

Method Details

AreApproximatelyEqual() public static méthode

public static AreApproximatelyEqual ( double value1, double value2 ) : bool
value1 double
value2 double
Résultat bool

AreApproximatelyEqual() public static méthode

public static AreApproximatelyEqual ( double value1, double value2, double maxDifference ) : bool
value1 double
value2 double
maxDifference double
Résultat bool

BinomialCoefficient() public static méthode

public static BinomialCoefficient ( int n, int k ) : double
n int
k int
Résultat double

Factorial() public static méthode

public static Factorial ( int n ) : long
n int
Résultat long

FastPow() public static méthode

public static FastPow ( double a, int n ) : double
a double
n int
Résultat double

GreatestCommonDivisor() public static méthode

public static GreatestCommonDivisor ( int a, int b ) : int
a int
b int
Résultat int

IsInteger() public static méthode

public static IsInteger ( double x ) : bool
x double
Résultat bool

IsZero() public static méthode

public static IsZero ( double value ) : bool
value double
Résultat bool

IsZero() public static méthode

public static IsZero ( double value, double maxDifference ) : bool
value double
maxDifference double
Résultat bool

Power() public static méthode

public static Power ( double a, int powerNumerator, int powerDenominator ) : double
a double
powerNumerator int
powerDenominator int
Résultat double