C# Класс Sharith.MathUtils.XMath

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AsymptFactorial ( double x ) : double
AsymptFactorial ( int x ) : string
AsymptSwingingFactorial ( double x ) : double
BitCount ( int w ) : int

Bit count

BitLength ( byte b ) : int
BitLength ( int w ) : int

Calculates the bit length of an integer.

CeilLog2 ( int n ) : int

Ceiling of the binary logarithm.

ClearOpCounter ( ) : void
ExactDecimalDigitsPerMillisecond ( int n, long ms ) : long
Exp ( double x ) : string
Factorial ( int n ) : Sharith.Arithmetic.XInt
FloorLog2 ( int n ) : int

Floor of the binary logarithm.

FloorSqrt ( int n ) : int

Floor of the square root.

GetOpCounts ( ) : long[]
Log2 ( double value ) : double

Logarithm to base 10.

Logarithm to base 2.

OmegaSwingHighBound ( int n ) : int
PiHighBound ( long n ) : int

High bound for number of primes not exeeding n.

Product ( Sharith.Arithmetic.XInt a ) : Sharith.Arithmetic.XInt
Product ( Sharith.Arithmetic.XInt a, int start, int len ) : Sharith.Arithmetic.XInt
Product ( int a ) : Sharith.Arithmetic.XInt
Product ( int a, int start, int length ) : Sharith.Arithmetic.XInt
Product ( int a, int start, int length, int increment ) : Sharith.Arithmetic.XInt
Product ( long a ) : Sharith.Arithmetic.XInt
Product ( long a, int len ) : Sharith.Arithmetic.XInt
RecProduct ( long s, int n, int m ) : Sharith.Arithmetic.XInt
Sqrt ( int n ) : int

Berechnung der groessten Zahl, deren Quadrat n nicht uebersteigt.

Приватные методы

Метод Описание
BigRecProduct ( Sharith.Arithmetic.XInt s, int n, int m ) : Sharith.Arithmetic.XInt

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

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

public static AsymptFactorial ( double x ) : double
x double
Результат double

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

public static AsymptFactorial ( int x ) : string
x int
Результат string

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

public static AsymptSwingingFactorial ( double x ) : double
x double
Результат double

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

Bit count
public static BitCount ( int w ) : int
w int
Результат int

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

public static BitLength ( byte b ) : int
b byte
Результат int

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

Calculates the bit length of an integer.
public static BitLength ( int w ) : int
w int
Результат int

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

Ceiling of the binary logarithm.
public static CeilLog2 ( int n ) : int
n int
Результат int

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

public static ClearOpCounter ( ) : void
Результат void

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

public static ExactDecimalDigitsPerMillisecond ( int n, long ms ) : long
n int
ms long
Результат long

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

public static Exp ( double x ) : string
x double
Результат string

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

public static Factorial ( int n ) : Sharith.Arithmetic.XInt
n int
Результат Sharith.Arithmetic.XInt

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

Floor of the binary logarithm.
public static FloorLog2 ( int n ) : int
n int
Результат int

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

Floor of the square root.
public static FloorSqrt ( int n ) : int
n int
Результат int

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

public static GetOpCounts ( ) : long[]
Результат long[]

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

Logarithm to base 10. Logarithm to base 2.
public static Log2 ( double value ) : double
value double
Результат double

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

public static OmegaSwingHighBound ( int n ) : int
n int
Результат int

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

High bound for number of primes not exeeding n.
public static PiHighBound ( long n ) : int
n long
Результат int

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

public static Product ( Sharith.Arithmetic.XInt a ) : Sharith.Arithmetic.XInt
a Sharith.Arithmetic.XInt
Результат Sharith.Arithmetic.XInt

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

public static Product ( Sharith.Arithmetic.XInt a, int start, int len ) : Sharith.Arithmetic.XInt
a Sharith.Arithmetic.XInt
start int
len int
Результат Sharith.Arithmetic.XInt

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

public static Product ( int a ) : Sharith.Arithmetic.XInt
a int
Результат Sharith.Arithmetic.XInt

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

public static Product ( int a, int start, int length ) : Sharith.Arithmetic.XInt
a int
start int
length int
Результат Sharith.Arithmetic.XInt

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

public static Product ( int a, int start, int length, int increment ) : Sharith.Arithmetic.XInt
a int
start int
length int
increment int
Результат Sharith.Arithmetic.XInt

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

public static Product ( long a ) : Sharith.Arithmetic.XInt
a long
Результат Sharith.Arithmetic.XInt

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

public static Product ( long a, int len ) : Sharith.Arithmetic.XInt
a long
len int
Результат Sharith.Arithmetic.XInt

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

public static RecProduct ( long s, int n, int m ) : Sharith.Arithmetic.XInt
s long
n int
m int
Результат Sharith.Arithmetic.XInt

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

Berechnung der groessten Zahl, deren Quadrat n nicht uebersteigt.
public static Sqrt ( int n ) : int
n int
Результат int