Skip to main content

math.tppl

function ceil​

function ceil(x : Real) => Int

function exp​

function exp(x : Real) => Real

function floor​

function floor(x : Real) => Int

function lnGamma​

TODO: Implement the approx in full (requires fabs, sin) TODO: Should PI be defined as global constant?

function lnGamma(z: Real) => Real

function log​

function log(x : Real) => Real

function logFactorial​

function logFactorial(n: Real) => Real

function max​

function max(a: Real, b: Real) => Real

function maxInt​

function maxInt(a : Int, b : Int) => Int

function min​

function min(a: Real, b: Real) => Real

function minInt​

function minInt(a : Int, b : Int) => Int

function round​

function round(x : Real) => Int

function sqrt​

function sqrt(x : Real) => Real