carbon.math

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

Members

Functions

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.
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.
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.

Meta