carbon.math

このモジュールは、標準ライブラリstd.mathの拡張です。

Members

Functions

complexZero
C complexZero()
Undocumented in source. Be warned that the author may not have intended to support it.
isPowOf2
bool isPowOf2(I n)
Undocumented in source. Be warned that the author may not have intended to support it.
isPrime
bool isPrime(T src)
Undocumented in source. Be warned that the author may not have intended to support it.
lcm
T lcm(T x, T y)
Undocumented in source. Be warned that the author may not have intended to support it.
nextPowOf2
size_t nextPowOf2(T num, size_t next)
F nextPowOf2(F num, size_t next)

nextが1である場合に、next2Pow(num)はnumより大きく、かつ、最小の2の累乗数を返します。

previousPowOf2
auto previousPowOf2(T num)

numより小さく、かつ最大の2の累乗を返します。

primeFactors
void primeFactors(T n, R or)
Undocumented in source. Be warned that the author may not have intended to support it.
primeFactors
Tuple!(T, uint)[] primeFactors(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
primeFactorsSimple
void primeFactorsSimple(T n, R or)
Undocumented in source. Be warned that the author may not have intended to support it.
primeFactorsSimple
Tuple!(T, uint)[] primeFactorsSimple(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
sinc
real sinc(real x)
Undocumented in source. Be warned that the author may not have intended to support it.
sqrtCeil
T sqrtCeil(F x)
Undocumented in source. Be warned that the author may not have intended to support it.
sqrtFloor
T sqrtFloor(F x)
Undocumented in source. Be warned that the author may not have intended to support it.
toDeg
real toDeg(real rad)
Undocumented in source. Be warned that the author may not have intended to support it.
toRad
real toRad(real deg)
Undocumented in source. Be warned that the author may not have intended to support it.
triIntCi
real triIntCi(real x)
triIntSi
real triIntSi(real x)

See also: https://en.wikipedia.org/wiki/Trigonometric_integral

Structs

Imaginary
struct Imaginary(T)
Undocumented in source.

Variables

eulersGamma
enum real eulersGamma;
Undocumented in source.

Meta