Home › Packages › math

Package math

This package contains 252 source unit(s) defining 252 class(es) / struct(s). Each unit below lists its fields (the values it stores) and methods (the actions it performs), with a plain explanation of each.

BigArrayGCVerify #sleela 2.5 (lib/math/examples/BigArrayGCVerify.sleela)

BigArrayGCVerify class

Regression guard for the incremental-GC allocate-black fix. It allocates two large int[] arrays and fills them in a long loop, which forces a garbage-collection cycle to run WHILE a second large array is being allocated and populated. Before the fix, an object allocated during the GC's marking phase was not on that cycle's root snapshot and was swept as garbage even though it was a live local -- surfacing as "index assignment on a non-array value" partway through the fill. This program must run to completion and report the expected last elements.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

BigIntegerDemo #sleela 2.5 (lib/math/examples/BigIntegerDemo.sleela)

BigIntegerDemo class

Demonstrates native big-integer multiplication through the VM bridge. SLBigInteger.multiply() calls the bigmul() builtin (opcode OP_BIGMUL), which multiplies base-1e9 limb arrays with a C Karatsuba kernel in one native call. Shows exact products and a large-operand timing. Sibling .sleela files in the package are auto-linked by the runner.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

BigMulVerify #sleela 2.5 (lib/math/examples/BigMulVerify.sleela)

BigMulVerify class

Regression check for the native big-integer multiply (OP_BIGMUL). It multiplies the same operands two ways -- the native bigmul() bridge and a pure-SLeeLa schoolbook multiply -- across several operand sizes spanning the Karatsuba threshold, and asserts the limb arrays are identical. This guards the Karatsuba recombination (the z1 = z1 - z0 - z2 borrow, which must carry a borrow of up to two per limb) against silent regressions.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
schoolbookint schoolbook(int[] a, int na, int[] b, int nb, int[] r)Pure-SLeeLa reference multiply over base-1e9 limbs.
nextLimbint nextLimb(int seed)A tiny deterministic limb generator (linear congruential), values in [0,1e9).
checkSizeint checkSize(int n, int seed)Multiply n-limb operands both ways; return the count of mismatched limbs.
mainvoid main()No description in source.

BigNumOpsVerify #sleela 2.5 (lib/math/examples/BigNumOpsVerify.sleela)

BigNumOpsVerify class

Regression guard for the native big-integer op set -- bigmul (now with an NTT fast path above 512 limbs), bigadd, and bigdivmod. It checks each native op against a pure-SLeeLa reference across sizes that exercise both the Karatsuba and NTT multiply paths, and must report PASS.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
schoolint school(int[] a, int na, int[] b, int nb, int[] r)No description in source.
fillRandomint fillRandom(int[] x, int n, int seed)No description in source.
mulMismatchint mulMismatch(int n, int seed)No description in source.
mainvoid main()No description in source.

MathDemo #sleela 2.5 (lib/math/examples/MathDemo.sleela)

MathDemo class

A runnable tour of the lib/math package exercising a cross-section of the real implementations: number theory, statistics, linear algebra, calculus, geometry, a distribution, and a linear solve. Sibling .sleela files in the package are auto-linked by the runner.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

PiReferenceDemo #sleela 2.5 (lib/math/examples/PiReferenceDemo.sleela)

PiReferenceDemo class

Reports the SLeeLa Modium static pi reference and the math precision norms, and self-verifies pi. SLeeLa prints the verification result on compile (check) and run, so a reader sees that the pi value is correct.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
mainvoid main()No description in source.

SLAbsoluteValue #sleela 2.5 (lib/math/SLAbsoluteValue.sleela)

SLAbsoluteValue class

Defines the SLeeLa standard-library type SLAbsoluteValue used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofDoubledouble ofDouble(double x)No description in source.
ofIntint ofInt(int x)No description in source.
ofLonglong ofLong(long x)No description in source.

SLAccumulation #sleela 2.5 (lib/math/SLAccumulation.sleela)

SLAccumulation class

Defines the SLeeLa standard-library type SLAccumulation used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
totaldouble totalNo description in source.
countint countNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
resetvoid reset()No description in source.
addvoid add(double v)No description in source.
sumdouble sum()No description in source.
meandouble mean()No description in source.
getCountint getCount()No description in source.

SLAdjacencyMatrix #sleela 2.5 (lib/math/SLAdjacencyMatrix.sleela)

SLAdjacencyMatrix class

Defines the SLeeLa standard-library type SLAdjacencyMatrix used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
nint nNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int size)No description in source.
addEdgevoid addEdge(double[] m, int u, int v)No description in source.
adjacentboolean adjacent(double[] m, int u, int v)No description in source.
degreeint degree(double[] m, int u)No description in source.

SLAlgebra #sleela 2.5 (lib/math/SLAlgebra.sleela)

SLAlgebra class

Defines the SLeeLa standard-library type SLAlgebra used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
solveQuadraticint solveQuadratic(double a, double b, double c, double[] out)No description in source.
evaluateLineardouble evaluateLinear(double m, double b, double x)No description in source.

SLAngle #sleela 2.5 (lib/math/SLAngle.sleela)

SLAngle class

Defines the SLeeLa standard-library type SLAngle used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
radiansdouble radiansNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
pidouble pi()No description in source.
setRadiansvoid setRadians(double r)No description in source.
setDegreesvoid setDegrees(double d)No description in source.
getRadiansdouble getRadians()No description in source.
getDegreesdouble getDegrees()No description in source.
normalizeddouble normalized()Normalize to the half-open interval from 0 up to two pi.

SLANOVA #sleela 2.5 (lib/math/SLANOVA.sleela)

SLANOVA class

Defines the SLeeLa standard-library type SLANOVA used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
meandouble mean(double[] xs, int n)No description in source.
fStatisticdouble fStatistic(double[] groupMeans, int[] groupSizes, int g,No description in source.

SLApproximation #sleela 2.5 (lib/math/SLApproximation.sleela)

SLApproximation class

Defines the SLeeLa standard-library type SLApproximation used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
absddouble absd(double x)No description in source.
relativeErrordouble relativeError(double approx, double exact)Relative error |approx - exact| / |exact|.
absoluteErrordouble absoluteError(double approx, double exact)No description in source.

SLArithmetic #sleela 2.5 (lib/math/SLArithmetic.sleela)

SLArithmetic class

Defines the SLeeLa standard-library type SLArithmetic used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
adddouble add(double a, double b)No description in source.
subtractdouble subtract(double a, double b)No description in source.
multiplydouble multiply(double a, double b)No description in source.
dividedouble divide(double a, double b)No description in source.
negatedouble negate(double a)No description in source.

SLAverage #sleela 2.5 (lib/math/SLAverage.sleela)

SLAverage class

Defines the SLeeLa standard-library type SLAverage used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double[] xs, int n)No description in source.
weighteddouble weighted(double[] xs, double[] ws, int n)Weighted average: sum(w*x) / sum(w).

SLBayes #sleela 2.5 (lib/math/SLBayes.sleela)

SLBayes class

Defines the SLeeLa standard-library type SLBayes used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
posteriordouble posterior(double pBgivenA, double pA, double pBgivenNotA)No description in source.

SLBezier #sleela 2.5 (lib/math/SLBezier.sleela)

SLBezier class

Defines the SLeeLa standard-library type SLBezier used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
cubicdouble cubic(double p0, double p1, double p2, double p3, double t)No description in source.
quadraticdouble quadratic(double p0, double p1, double p2, double t)No description in source.

SLBigDecimal #sleela 2.5 (lib/math/SLBigDecimal.sleela)

SLBigDecimal class

Defines the SLeeLa standard-library type SLBigDecimal used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
unscaledlong unscaledNo description in source.
scaleint scaleNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(long value, int decimalPlaces)No description in source.
toDoubledouble toDouble()No description in source.
getUnscaledlong getUnscaled()No description in source.
getScaleint getScale()No description in source.

SLBigInteger #sleela 2.5 (lib/math/SLBigInteger.sleela)

SLBigInteger class

Defines the SLeeLa standard-library type SLBigInteger used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
limbsint[] limbsNo description in source.
countint countNo description in source.
signint signNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
fromLongvoid fromLong(long v)No description in source.
limbCountint limbCount()No description in source.
getSignint getSign()No description in source.
fromLimbsvoid fromLimbs(int[] ls, int n, int sgn)Build directly from a caller-held limb array (little-endian, base 1e9).
limbAtint limbAt(int i)No description in source.
multiplySLBigInteger multiply(SLBigInteger other)No description in source.
normalizevoid normalize()Trim trailing zero limbs (keep at least one).
digitCountOfint digitCountOf(int v)The number of decimal digits in a nonnegative int (1 for zero).
padLimbString padLimb(int v)Nine-character zero-padded decimal of a limb value 0..999999999.
toDecimalStringString toDecimalString()No description in source.

SLBinomialCoefficient #sleela 2.5 (lib/math/SLBinomialCoefficient.sleela)

SLBinomialCoefficient class

Defines the SLeeLa standard-library type SLBinomialCoefficient used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
computelong compute(int n, int k)C(n, k) by the multiplicative formula, computed to avoid overflow early.

SLBinomialDistribution #sleela 2.5 (lib/math/SLBinomialDistribution.sleela)

SLBinomialDistribution class

Defines the SLeeLa standard-library type SLBinomialDistribution used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
pmfdouble pmf(int n, int k, double p)Probability mass C(n,k) p^k (1-p)^(n-k).
meandouble mean(int n, double p)No description in source.
variancedouble variance(int n, double p)No description in source.

SLBisectionSolver #sleela 2.5 (lib/math/SLBisectionSolver.sleela)

SLBisectionSolver class

Defines the SLeeLa standard-library type SLBisectionSolver used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
absddouble absd(double x)No description in source.
midpointdouble midpoint(double a, double b)No description in source.
halfint half(double fa, double fmid)No description in source.
bracketedboolean bracketed(double fa, double fb)No description in source.

SLCardinality #sleela 2.5 (lib/math/SLCardinality.sleela)

SLCardinality class

Defines the SLeeLa standard-library type SLCardinality used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofint of(int[] a, int n)No description in source.
ofUnionint ofUnion(int[] a, int na, int[] b, int nb)Cardinality of the union of two distinct-valued sets.
sameCardinalityboolean sameCardinality(int na, int nb)No description in source.

SLCartesianCoordinate #sleela 2.5 (lib/math/SLCartesianCoordinate.sleela)

SLCartesianCoordinate class

Defines the SLeeLa standard-library type SLCartesianCoordinate used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
xdouble xNo description in source.
ydouble yNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
setvoid set(double px, double py)No description in source.
radiusdouble radius()No description in source.
getXdouble getX()No description in source.
getYdouble getY()No description in source.

SLChiSquareTest #sleela 2.5 (lib/math/SLChiSquareTest.sleela)

SLChiSquareTest class

Defines the SLeeLa standard-library type SLChiSquareTest used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
statisticdouble statistic(double[] observed, double[] expected, int n)No description in source.
degreesOfFreedomint degreesOfFreedom(int categories)No description in source.

SLClamp #sleela 2.5 (lib/math/SLClamp.sleela)

SLClamp class

Defines the SLeeLa standard-library type SLClamp used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double x, double lo, double hi)Constrain x to the closed interval [lo, hi].
ofIntint ofInt(int x, int lo, int hi)No description in source.
inRangeboolean inRange(double x, double lo, double hi)No description in source.

SLCoefficient #sleela 2.5 (lib/math/SLCoefficient.sleela)

SLCoefficient class

Defines the SLeeLa standard-library type SLCoefficient used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
valuedouble valueNo description in source.
degreeint degreeNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double v, int d)No description in source.
getValuedouble getValue()No description in source.
getDegreeint getDegree()No description in source.
termAtdouble termAt(double x)No description in source.

SLCombination #sleela 2.5 (lib/math/SLCombination.sleela)

SLCombination class

Defines the SLeeLa standard-library type SLCombination used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
countlong count(int n, int k)C(n,k), the number of k-subsets of an n-set.

SLCombinationGenerator #sleela 2.5 (lib/math/SLCombinationGenerator.sleela)

SLCombinationGenerator class

Defines the SLeeLa standard-library type SLCombinationGenerator used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
generateint generate(int n, int k, int[] out)No description in source.

SLCombinatorics #sleela 2.5 (lib/math/SLCombinatorics.sleela)

SLCombinatorics class

Defines the SLeeLa standard-library type SLCombinatorics used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
factoriallong factorial(int n)n! as a long.
permutationslong permutations(int n, int k)Permutations P(n,k) = n!/(n-k)! by the falling product.
combinationslong combinations(int n, int k)Combinations C(n,k) by the multiplicative formula.

SLComparator #sleela 2.5 (lib/math/SLComparator.sleela)

SLComparator class

Defines the SLeeLa standard-library type SLComparator used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
compareDoubleint compareDouble(double a, double b)No description in source.
compareIntint compareInt(int a, int b)No description in source.
equalWithinboolean equalWithin(double a, double b, double tol)No description in source.

SLComplex #sleela 2.5 (lib/math/SLComplex.sleela)

SLComplex class

Defines the SLeeLa standard-library type SLComplex used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
redouble reNo description in source.
imdouble imNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
setvoid set(double r, double i)No description in source.
addvoid add(SLComplex o, SLComplex out)No description in source.
multiplyvoid multiply(SLComplex o, SLComplex out)No description in source.
modulusdouble modulus()No description in source.
conjugatevoid conjugate(SLComplex out)No description in source.
getRedouble getRe()No description in source.
getImdouble getIm()No description in source.

SLConditionNumber #sleela 2.5 (lib/math/SLConditionNumber.sleela)

SLConditionNumber class

Defines the SLeeLa standard-library type SLConditionNumber used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
fromExtremesdouble fromExtremes(double largest, double smallest)No description in source.
illConditionedboolean illConditioned(double cond, double threshold)No description in source.

SLConfidenceInterval #sleela 2.5 (lib/math/SLConfidenceInterval.sleela)

SLConfidenceInterval class

Defines the SLeeLa standard-library type SLConfidenceInterval used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
ofMeanvoid ofMean(double mean, double stdDev, int n, double z, double[] out)No description in source.
marginOfErrordouble marginOfError(double stdDev, int n, double z)No description in source.

SLConfidenceLevel #sleela 2.5 (lib/math/SLConfidenceLevel.sleela)

SLConfidenceLevel class

Defines the SLeeLa standard-library type SLConfidenceLevel used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
criticalZdouble criticalZ(int percent)No description in source.
alphadouble alpha(int percent)No description in source.

SLConstant #sleela 2.5 (lib/math/SLConstant.sleela)

SLConstant class

Defines the SLeeLa standard-library type SLConstant used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
pidouble pi()Named mathematical constants.
edouble e()No description in source.
goldenRatiodouble goldenRatio()No description in source.
sqrt2double sqrt2()No description in source.
eulerGammadouble eulerGamma()No description in source.

SLConstraint #sleela 2.5 (lib/math/SLConstraint.sleela)

SLConstraint class

Defines the SLeeLa standard-library type SLConstraint used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
opint opNo description in source.
rhsdouble rhsNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int o, double r)No description in source.
lhsdouble lhs(double[] coeffs, double[] x, int n)No description in source.
satisfiedboolean satisfied(double[] coeffs, double[] x, int n, double tol)No description in source.

SLConvergence #sleela 2.5 (lib/math/SLConvergence.sleela)

SLConvergence class

Defines the SLeeLa standard-library type SLConvergence used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
absddouble absd(double x)No description in source.
reachedboolean reached(double current, double previous, double tol)Has a sequence converged: successive terms within tol?
ratedouble rate(double e0, double e1, double e2)Linear convergence rate estimate from three successive errors.

SLCoordinate #sleela 2.5 (lib/math/SLCoordinate.sleela)

SLCoordinate class

Defines the SLeeLa standard-library type SLCoordinate used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
componentsdouble[] componentsNo description in source.
dimint dimNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int d)No description in source.
setComponentvoid setComponent(int i, double v)No description in source.
getComponentdouble getComponent(int i)No description in source.
getDimint getDim()No description in source.

SLCoordinateDescent #sleela 2.5 (lib/math/SLCoordinateDescent.sleela)

SLCoordinateDescent class

Defines the SLeeLa standard-library type SLCoordinateDescent used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
coordinateStepdouble coordinateStep(double x, double g, double h)No description in source.
nextCoordinateint nextCoordinate(int current, int n)No description in source.

SLCorrelation #sleela 2.5 (lib/math/SLCorrelation.sleela)

SLCorrelation class

Defines the SLeeLa standard-library type SLCorrelation used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
meandouble mean(double[] xs, int n)No description in source.
pearsondouble pearson(double[] xs, double[] ys, int n)Pearson product-moment correlation coefficient in [-1, 1].

SLCorrelationMatrix #sleela 2.5 (lib/math/SLCorrelationMatrix.sleela)

SLCorrelationMatrix class

Defines the SLeeLa standard-library type SLCorrelationMatrix used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
corrdouble corr(double[] data, int n, int vi, int vj)No description in source.
buildvoid build(double[] data, int m, int n, double[] out)No description in source.

SLCosine #sleela 2.5 (lib/math/SLCosine.sleela)

SLCosine class

Defines the SLeeLa standard-library type SLCosine used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
pidouble pi()No description in source.
reducedouble reduce(double x)No description in source.
sindouble sin(double x)No description in source.
cosdouble cos(double x)No description in source.
ofdouble of(double x)No description in source.

SLCovariance #sleela 2.5 (lib/math/SLCovariance.sleela)

SLCovariance class

Defines the SLeeLa standard-library type SLCovariance used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
meandouble mean(double[] xs, int n)No description in source.
populationdouble population(double[] xs, double[] ys, int n)Population covariance of paired samples (divides by n).
sampledouble sample(double[] xs, double[] ys, int n)Sample covariance (divides by n-1).

SLCovarianceMatrix #sleela 2.5 (lib/math/SLCovarianceMatrix.sleela)

SLCovarianceMatrix class

Defines the SLeeLa standard-library type SLCovarianceMatrix used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
covdouble cov(double[] data, int n, int vi, int vj)No description in source.
buildvoid build(double[] data, int m, int n, double[] out)No description in source.

SLCrossProduct #sleela 2.5 (lib/math/SLCrossProduct.sleela)

SLCrossProduct class

Defines the SLeeLa standard-library type SLCrossProduct used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofvoid of(double[] a, double[] b, double[] out)3D cross product a x b, written into `out` (length 3).
of2Ddouble of2D(double ax, double ay, double bx, double by)The scalar magnitude of the 2D cross product.

SLCubicSpline #sleela 2.5 (lib/math/SLCubicSpline.sleela)

SLCubicSpline class

Defines the SLeeLa standard-library type SLCubicSpline used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
hermitedouble hermite(double p0, double p1, double m0, double m1, double t)No description in source.

SLDataSummary #sleela 2.5 (lib/math/SLDataSummary.sleela)

SLDataSummary class

Defines the SLeeLa standard-library type SLDataSummary used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
summarizevoid summarize(double[] xs, int n, double[] out)No description in source.

SLDerivative #sleela 2.5 (lib/math/SLDerivative.sleela)

SLDerivative class

Defines the SLeeLa standard-library type SLDerivative used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
centraldouble central(double[] xs, double[] ys, int i, int n)No description in source.
forwarddouble forward(double[] xs, double[] ys, int i)Forward difference at the left endpoint.

SLDeterminant #sleela 2.5 (lib/math/SLDeterminant.sleela)

SLDeterminant class

Defines the SLeeLa standard-library type SLDeterminant used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double[] src, int n)Determinant of an n x n row-major matrix via Gaussian elimination on a copy.

SLDifference #sleela 2.5 (lib/math/SLDifference.sleela)

SLDifference class

Defines the SLeeLa standard-library type SLDifference used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double a, double b)No description in source.
absolutedouble absolute(double a, double b)No description in source.
forwardvoid forward(double[] xs, int n, double[] out)Successive differences of a sequence written into out (length n-1).

SLDimension #sleela 2.5 (lib/math/SLDimension.sleela)

SLDimension class

Defines the SLeeLa standard-library type SLDimension used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
valueint valueNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(int d)No description in source.
getint get()No description in source.
isScalarboolean isScalar()No description in source.
isVectorboolean isVector()No description in source.
compatibleWithboolean compatibleWith(SLDimension o)No description in source.

SLDiscreteFourier #sleela 2.5 (lib/math/SLDiscreteFourier.sleela)

SLDiscreteFourier class

Defines the SLeeLa standard-library type SLDiscreteFourier used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
reduceAngledouble reduceAngle(double x)No description in source.
sinvdouble sinv(double x)No description in source.
cosvdouble cosv(double x)No description in source.
forwardvoid forward(double[] signal, int n, double[] reOut, double[] imOut)No description in source.

SLDistance #sleela 2.5 (lib/math/SLDistance.sleela)

SLDistance class

Defines the SLeeLa standard-library type SLDistance used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
euclidean2Ddouble euclidean2D(double x1, double y1, double x2, double y2)No description in source.
euclidean3Ddouble euclidean3D(double x1, double y1, double z1, double x2, double y2, double z2)No description in source.
manhattan2Ddouble manhattan2D(double x1, double y1, double x2, double y2)No description in source.

SLDistribution #sleela 2.5 (lib/math/SLDistribution.sleela)

SLDistribution class

Defines the SLeeLa standard-library type SLDistribution used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
meandouble mean(double[] values, double[] probs, int n)A generic discrete distribution over sampled outcome probabilities.
variancedouble variance(double[] values, double[] probs, int n)No description in source.
normalizedboolean normalized(double[] probs, int n, double tol)No description in source.

SLDivisor #sleela 2.5 (lib/math/SLDivisor.sleela)

SLDivisor class

Defines the SLeeLa standard-library type SLDivisor used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
divisorCountint divisorCount(int n)The number of positive divisors of n.
divisorSumint divisorSum(int n)The sum of the positive divisors of n.
dividesboolean divides(int d, int n)No description in source.

SLDotProduct #sleela 2.5 (lib/math/SLDotProduct.sleela)

SLDotProduct class

Defines the SLeeLa standard-library type SLDotProduct used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double[] a, double[] b, int n)No description in source.

SLDoubleMath #sleela 2.5 (lib/math/SLDoubleMath.sleela)

SLDoubleMath class

Defines the SLeeLa standard-library type SLDoubleMath used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
absDdouble absD(double x)No description in source.
hypotdouble hypot(double a, double b)No description in source.
copySigndouble copySign(double mag, double sgn)No description in source.

SLEigenvalue #sleela 2.5 (lib/math/SLEigenvalue.sleela)

SLEigenvalue class

Defines the SLeeLa standard-library type SLEigenvalue used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
of2x2int of2x2(double a, double b, double c, double d, double[] out)No description in source.
powerIterationdouble powerIteration(double[] m, int n, double[] vec, int iters)No description in source.

SLEigenvector #sleela 2.5 (lib/math/SLEigenvector.sleela)

SLEigenvector class

Defines the SLeeLa standard-library type SLEigenvector used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
dominantvoid dominant(double[] m, int n, double[] vec, int iters)No description in source.

SLEquation #sleela 2.5 (lib/math/SLEquation.sleela)

SLEquation class

Defines the SLeeLa standard-library type SLEquation used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
adouble aA linear equation a x + b = 0 with a single root.
bdouble bNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double pa, double pb)No description in source.
hasUniqueRootboolean hasUniqueRoot()No description in source.
rootdouble root()No description in source.
leftMinusRightdouble leftMinusRight(double x)No description in source.

SLErrorBound #sleela 2.5 (lib/math/SLErrorBound.sleela)

SLErrorBound class

Defines the SLeeLa standard-library type SLErrorBound used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
bounddouble boundRecord and widen an error bound as a computation proceeds.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
absddouble absd(double x)No description in source.
resetvoid reset()No description in source.
observevoid observe(double err)No description in source.
getBounddouble getBound()No description in source.
acceptableboolean acceptable(double tol)No description in source.

SLExpectation #sleela 2.5 (lib/math/SLExpectation.sleela)

SLExpectation class

Defines the SLeeLa standard-library type SLExpectation used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double[] values, double[] probs, int n)Expected value E[X] = sum(x_i * p_i); probabilities should sum to 1.

SLExponential #sleela 2.5 (lib/math/SLExponential.sleela)

SLExponential class

Defines the SLeeLa standard-library type SLExponential used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
expdouble exp(double x)e^x via a Taylor series; adequate for |x| within a modest range.
edouble e()No description in source.

SLExpression #sleela 2.5 (lib/math/SLExpression.sleela)

SLExpression class

Defines the SLeeLa standard-library type SLExpression used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
evaluatePostfixdouble evaluatePostfix(int[] ops, double[] vals, int n)No description in source.

SLExpressionEvaluator #sleela 2.5 (lib/math/SLExpressionEvaluator.sleela)

SLExpressionEvaluator class

Defines the SLeeLa standard-library type SLExpressionEvaluator used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
evaluatedouble evaluate(int[] ops, double[] vals, int n)Evaluate a postfix token stream (op -1 = push vals[i], 0..3 = + - * /).

SLExpressionTree #sleela 2.5 (lib/math/SLExpressionTree.sleela)

SLExpressionTree class

Defines the SLeeLa standard-library type SLExpressionTree used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
evaluatedouble evaluate(int[] kind, double[] val, int[] left, int[] right, int node)No description in source.

SLFactor #sleela 2.5 (lib/math/SLFactor.sleela)

SLFactor class

Defines the SLeeLa standard-library type SLFactor used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
rootdouble rootNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double r)No description in source.
evaluatedouble evaluate(double x)No description in source.
getRootdouble getRoot()No description in source.

SLFactorial #sleela 2.5 (lib/math/SLFactorial.sleela)

SLFactorial class

Defines the SLeeLa standard-library type SLFactorial used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
computelong compute(int n)Factorial n! for nonnegative n, as a 64-bit long (exact through 20!).
fallinglong falling(int n, int k)Falling factorial n*(n-1)*...*(n-k+1).

SLFastFourier #sleela 2.5 (lib/math/SLFastFourier.sleela)

SLFastFourier class

Defines the SLeeLa standard-library type SLFastFourier used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
reduceAngledouble reduceAngle(double x)No description in source.
sinvdouble sinv(double x)No description in source.
cosvdouble cosv(double x)No description in source.
isPowerOfTwoboolean isPowerOfTwo(int n)No description in source.
transformvoid transform(double[] re, double[] im, int n)No description in source.

SLFibonacci #sleela 2.5 (lib/math/SLFibonacci.sleela)

SLFibonacci class

Defines the SLeeLa standard-library type SLFibonacci used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
computelong compute(int n)The n-th Fibonacci number (F0 = 0, F1 = 1), computed iteratively.
isFibonacciboolean isFibonacci(long v)No description in source.

SLFiniteSet #sleela 2.5 (lib/math/SLFiniteSet.sleela)

SLFiniteSet class

Defines the SLeeLa standard-library type SLFiniteSet used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
membersint[] membersNo description in source.
sizeint sizeNo description in source.
capacityint capacityNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int cap)No description in source.
containsboolean contains(int v)No description in source.
addboolean add(int v)No description in source.
cardinalityint cardinality()No description in source.

SLFixedPoint #sleela 2.5 (lib/math/SLFixedPoint.sleela)

SLFixedPoint class

Defines the SLeeLa standard-library type SLFixedPoint used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
fracBitsint fracBitsNo description in source.
rawlong rawNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int bits)No description in source.
fromDoublevoid fromDouble(double x)No description in source.
toDoubledouble toDouble()No description in source.
getRawlong getRaw()No description in source.

SLFloatMath #sleela 2.5 (lib/math/SLFloatMath.sleela)

SLFloatMath class

Defines the SLeeLa standard-library type SLFloatMath used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
absFdouble absF(double x)No description in source.
epsilondouble epsilon()Smallest resolvable gap near 1.0 for single precision.
roundTodouble roundTo(double x, int places)No description in source.

SLFormula #sleela 2.5 (lib/math/SLFormula.sleela)

SLFormula class

Defines the SLeeLa standard-library type SLFormula used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
labelString labelA named formula stored as a postfix token stream plus a human label.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
namevoid name(String l)No description in source.
formulaNameString formulaName()No description in source.
evaluatedouble evaluate(int[] ops, double[] vals, int n)No description in source.

SLFormulaParser #sleela 2.5 (lib/math/SLFormulaParser.sleela)

SLFormulaParser class

Defines the SLeeLa standard-library type SLFormulaParser used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
tokenCountint tokenCountNo description in source.
operandCountint operandCountNo description in source.
operatorCountint operatorCountNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
parsevoid parse(String text, int length, int[] codes)No description in source.
charCodeAtint charCodeAt(String s, int i)No description in source.
getTokenCountint getTokenCount()No description in source.

SLFormulaSimplifier #sleela 2.5 (lib/math/SLFormulaSimplifier.sleela)

SLFormulaSimplifier class

Defines the SLeeLa standard-library type SLFormulaSimplifier used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
simplifyLinearvoid simplifyLinear(double a, double b, double[] out)No description in source.
isIdentityMultiplierboolean isIdentityMultiplier(double a)No description in source.
isAnnihilatorboolean isAnnihilator(double a)No description in source.

SLFourier #sleela 2.5 (lib/math/SLFourier.sleela)

SLFourier class

Defines the SLeeLa standard-library type SLFourier used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
reduceAngledouble reduceAngle(double x)No description in source.
sinvdouble sinv(double x)No description in source.
cosvdouble cosv(double x)No description in source.
magnitudevoid magnitude(double[] signal, int n, double[] magOut)Magnitude spectrum of a real signal via the DFT: mag[k] = |X[k]|.

SLFourierSeries #sleela 2.5 (lib/math/SLFourierSeries.sleela)

SLFourierSeries class

Defines the SLeeLa standard-library type SLFourierSeries used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
reduceAngledouble reduceAngle(double x)No description in source.
sinvdouble sinv(double x)No description in source.
cosvdouble cosv(double x)No description in source.
evaluatedouble evaluate(double a0, double[] a, double[] b, int terms, double x)No description in source.

SLFunction #sleela 2.5 (lib/math/SLFunction.sleela)

SLFunction class

Defines the SLeeLa standard-library type SLFunction used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
evaluatedouble evaluate(double[] xs, double[] ys, int n, double x)No description in source.

SLGcd #sleela 2.5 (lib/math/SLGcd.sleela)

SLGcd class

Defines the SLeeLa standard-library type SLGcd used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
computeint compute(int a, int b)Greatest common divisor by the Euclidean algorithm.
coprimeboolean coprime(int a, int b)No description in source.

SLGeometry #sleela 2.5 (lib/math/SLGeometry.sleela)

SLGeometry class

Defines the SLeeLa standard-library type SLGeometry used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
triangleAreadouble triangleArea(double x1, double y1, double x2, double y2, double x3, double y3)No description in source.
circleAreadouble circleArea(double r)No description in source.
circleCircumferencedouble circleCircumference(double r)No description in source.
polygonPerimeterdouble polygonPerimeter(double[] xs, double[] ys, int n)No description in source.
polygonAreadouble polygonArea(double[] xs, double[] ys, int n)Signed polygon area via the shoelace formula (absolute value returned).

SLGradient #sleela 2.5 (lib/math/SLGradient.sleela)

SLGradient class

Defines the SLeeLa standard-library type SLGradient used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
computevoid compute(double[] fPlus, double[] fMinus, int dims, double h, double[] out)No description in source.

SLGradientDescent #sleela 2.5 (lib/math/SLGradientDescent.sleela)

SLGradientDescent class

Defines the SLeeLa standard-library type SLGradientDescent used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
stepvoid step(double[] x, double[] grad, double rate, int n)One gradient-descent parameter update x := x - rate * grad, elementwise.
scalarStepdouble scalarStep(double x, double grad, double rate)No description in source.

SLGradientField #sleela 2.5 (lib/math/SLGradientField.sleela)

SLGradientField class

Defines the SLeeLa standard-library type SLGradientField used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
wint wNo description in source.
hint hNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int width, int height)No description in source.
gradientAtvoid gradientAt(double[] f, int x, int y, double spacing, double[] out)No description in source.

SLGraph #sleela 2.5 (lib/math/SLGraph.sleela)

SLGraph class

Defines the SLeeLa standard-library type SLGraph used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
nint nNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int size)No description in source.
reachableCountint reachableCount(double[] adj, int source)No description in source.
connectedboolean connected(double[] adj)No description in source.

SLGraphEdge #sleela 2.5 (lib/math/SLGraphEdge.sleela)

SLGraphEdge class

Defines the SLeeLa standard-library type SLGraphEdge used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
fromint fromNo description in source.
toint toNo description in source.
weightdouble weightNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(int u, int v, double w)No description in source.
getFromint getFrom()No description in source.
getToint getTo()No description in source.
getWeightdouble getWeight()No description in source.
connectsboolean connects(int a, int b)No description in source.

SLGraphNode #sleela 2.5 (lib/math/SLGraphNode.sleela)

SLGraphNode class

Defines the SLeeLa standard-library type SLGraphNode used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
idint idNo description in source.
degreeint degreeNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int nodeId)No description in source.
incrementDegreevoid incrementDegree()No description in source.
getIdint getId()No description in source.
getDegreeint getDegree()No description in source.

SLHessian #sleela 2.5 (lib/math/SLHessian.sleela)

SLHessian class

Defines the SLeeLa standard-library type SLHessian used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
buildvoid build(double fxx, double fyy, double fxy, double[] out)No description in source.
determinantdouble determinant(double fxx, double fyy, double fxy)No description in source.
classifyint classify(double fxx, double fyy, double fxy)No description in source.

SLHistogram #sleela 2.5 (lib/math/SLHistogram.sleela)

SLHistogram class

Defines the SLeeLa standard-library type SLHistogram used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
buildvoid build(double[] xs, int n, double lo, double hi, int bins, int[] out)No description in source.

SLHypothesisTest #sleela 2.5 (lib/math/SLHypothesisTest.sleela)

SLHypothesisTest class

Defines the SLeeLa standard-library type SLHypothesisTest used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
zStatisticdouble zStatistic(double sampleMean, double mu0, double sigma, int n)No description in source.
rejectTwoSidedboolean rejectTwoSided(double z, double critical)No description in source.

SLInequality #sleela 2.5 (lib/math/SLInequality.sleela)

SLInequality class

Defines the SLeeLa standard-library type SLInequality used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
adouble aNo description in source.
bdouble bNo description in source.
opint opNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double pa, double pb, int o)No description in source.
satisfiesboolean satisfies(double x)No description in source.

SLInfiniteSet #sleela 2.5 (lib/math/SLInfiniteSet.sleela)

SLInfiniteSet class

Defines the SLeeLa standard-library type SLInfiniteSet used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
kindint kindNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int k)No description in source.
containsboolean contains(int v)No description in source.
countableboolean countable()No description in source.

SLIntegerMath #sleela 2.5 (lib/math/SLIntegerMath.sleela)

SLIntegerMath class

Defines the SLeeLa standard-library type SLIntegerMath used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
addlong add(long a, long b)No description in source.
multiplylong multiply(long a, long b)No description in source.
gcdlong gcd(long a, long b)No description in source.
powlong pow(long base, int exp)No description in source.
isEvenboolean isEven(long v)No description in source.

SLIntegral #sleela 2.5 (lib/math/SLIntegral.sleela)

SLIntegral class

Defines the SLeeLa standard-library type SLIntegral used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
trapezoiddouble trapezoid(double[] xs, double[] ys, int n)Definite integral of a sampled function by the trapezoidal rule.

SLInterpolation #sleela 2.5 (lib/math/SLInterpolation.sleela)

SLInterpolation class

Defines the SLeeLa standard-library type SLInterpolation used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
lineardouble linear(double x0, double y0, double x1, double y1, double x)Linear interpolation between (x0,y0) and (x1,y1) at x.
lerpdouble lerp(double a, double b, double t)Normalized linear blend: (1-t)*a + t*b.

SLInterpolationTable #sleela 2.5 (lib/math/SLInterpolationTable.sleela)

SLInterpolationTable class

Defines the SLeeLa standard-library type SLInterpolationTable used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
rowsint rowsA sorted table lookup with linear interpolation between bracketing rows.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setRowsvoid setRows(int r)No description in source.
getRowsint getRows()No description in source.
lookupdouble lookup(double[] xs, double[] ys, int n, double x)No description in source.

SLIntersection #sleela 2.5 (lib/math/SLIntersection.sleela)

SLIntersection class

Defines the SLeeLa standard-library type SLIntersection used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
containsboolean contains(int[] a, int na, int v)No description in source.
ofint of(int[] a, int na, int[] b, int nb, int[] out)No description in source.

SLInterval #sleela 2.5 (lib/math/SLInterval.sleela)

SLInterval class

Defines the SLeeLa standard-library type SLInterval used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
lodouble loNo description in source.
hidouble hiNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double a, double b)No description in source.
containsboolean contains(double x)No description in source.
widthdouble width()No description in source.
midpointdouble midpoint()No description in source.
overlapsboolean overlaps(SLInterval o)No description in source.

SLIntervalArithmetic #sleela 2.5 (lib/math/SLIntervalArithmetic.sleela)

SLIntervalArithmetic class

Defines the SLeeLa standard-library type SLIntervalArithmetic used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
addvoid add(double aLo, double aHi, double bLo, double bHi, double[] out)No description in source.
multiplyvoid multiply(double aLo, double aHi, double bLo, double bHi, double[] out)No description in source.

SLInverse #sleela 2.5 (lib/math/SLInverse.sleela)

SLInverse class

Defines the SLeeLa standard-library type SLInverse used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofboolean of(double[] src, double[] inv, int n)No description in source.

SLIteration #sleela 2.5 (lib/math/SLIteration.sleela)

SLIteration class

Defines the SLeeLa standard-library type SLIteration used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
countint countNo description in source.
limitint limitNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int maxIterations)No description in source.
nextboolean next()No description in source.
getCountint getCount()No description in source.
resetCountvoid resetCount()No description in source.

SLJacobian #sleela 2.5 (lib/math/SLJacobian.sleela)

SLJacobian class

Defines the SLeeLa standard-library type SLJacobian used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
buildvoid build(double[] fPlus, double[] fMinus, int m, int n, double h, double[] out)No description in source.

SLKurtosis #sleela 2.5 (lib/math/SLKurtosis.sleela)

SLKurtosis class

Defines the SLeeLa standard-library type SLKurtosis used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
meandouble mean(double[] xs, int n)No description in source.
ofdouble of(double[] xs, int n)Excess kurtosis: m4 / m2^2 - 3.

SLLagrangeInterpolation #sleela 2.5 (lib/math/SLLagrangeInterpolation.sleela)

SLLagrangeInterpolation class

Defines the SLeeLa standard-library type SLLagrangeInterpolation used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
evaluatedouble evaluate(double[] xs, double[] ys, int n, double x)Lagrange interpolating polynomial evaluated at x, through n sample points.

SLLambda #sleela 2.5 (lib/math/SLLambda.sleela)

SLLambda class

Defines the SLeeLa standard-library type SLLambda used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
scaledouble scaleAn affine lambda x -> scale*x + offset; compose combines two lambdas.
offsetdouble offsetNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double s, double o)No description in source.
applydouble apply(double x)No description in source.
composeAftervoid composeAfter(SLLambda g, SLLambda out)Compose this after g (this(g(x))), writing the result lambda into out.

SLLaplace #sleela 2.5 (lib/math/SLLaplace.sleela)

SLLaplace class

Defines the SLeeLa standard-library type SLLaplace used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
reduceAngledouble reduceAngle(double x)No description in source.
sinvdouble sinv(double x)No description in source.
cosvdouble cosv(double x)No description in source.
expNegdouble expNeg(double x)No description in source.
transformdouble transform(double[] f, int n, double dt, double s)No description in source.

SLLcm #sleela 2.5 (lib/math/SLLcm.sleela)

SLLcm class

Defines the SLeeLa standard-library type SLLcm used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
gcdint gcd(int a, int b)Least common multiple via gcd: lcm(a,b) = |a*b| / gcd(a,b).
computeint compute(int a, int b)No description in source.

SLLeastSquares #sleela 2.5 (lib/math/SLLeastSquares.sleela)

SLLeastSquares class

Defines the SLeeLa standard-library type SLLeastSquares used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
fitvoid fit(double[] xs, double[] ys, int n, double[] out)No description in source.

SLLimit #sleela 2.5 (lib/math/SLLimit.sleela)

SLLimit class

Defines the SLeeLa standard-library type SLLimit used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
estimatedouble estimate(double[] samples, int n)No description in source.
convergingboolean converging(double[] samples, int n, double tol)No description in source.

SLLine #sleela 2.5 (lib/math/SLLine.sleela)

SLLine class

Defines the SLeeLa standard-library type SLLine used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
slopedouble slopeA line in slope-intercept form y = m x + b, with a vertical flag.
interceptdouble interceptNo description in source.
verticalboolean verticalNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
fromPointsvoid fromPoints(double x1, double y1, double x2, double y2)No description in source.
atdouble at(double x)No description in source.
parallelToboolean parallelTo(SLLine o)No description in source.
getSlopedouble getSlope()No description in source.

SLLinearAlgebra #sleela 2.5 (lib/math/SLLinearAlgebra.sleela)

SLLinearAlgebra class

Defines the SLeeLa standard-library type SLLinearAlgebra used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
matVecvoid matVec(double[] a, double[] x, double[] y, int r, int c)Matrix-vector product y = A(r x c) * x.
tracedouble trace(double[] a, int n)Trace of an n x n matrix (sum of the diagonal).

SLLinearProgram #sleela 2.5 (lib/math/SLLinearProgram.sleela)

SLLinearProgram class

Defines the SLeeLa standard-library type SLLinearProgram used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
objectivedouble objective(double[] c, double[] x, int n)No description in source.
feasibleboolean feasible(double[] a, double[] b, double[] x, int m, int n, double tol)Feasible if A x <= b for all m rows (A row-major m x n).

SLLinearRegression #sleela 2.5 (lib/math/SLLinearRegression.sleela)

SLLinearRegression class

Defines the SLeeLa standard-library type SLLinearRegression used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
slopedouble slopeNo description in source.
interceptdouble interceptNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
fitvoid fit(double[] xs, double[] ys, int n)No description in source.
predictdouble predict(double x)No description in source.
getSlopedouble getSlope()No description in source.
getInterceptdouble getIntercept()No description in source.

SLLogarithm #sleela 2.5 (lib/math/SLLogarithm.sleela)

SLLogarithm class

Defines the SLeeLa standard-library type SLLogarithm used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
lndouble ln(double x)No description in source.
logBasedouble logBase(double x, double b)Logarithm of x in an arbitrary base b: ln(x)/ln(b).

SLLongMath #sleela 2.5 (lib/math/SLLongMath.sleela)

SLLongMath class

Defines the SLeeLa standard-library type SLLongMath used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
maxVallong maxVal()No description in source.
clampAddlong clampAdd(long a, long b)No description in source.
absLlong absL(long v)No description in source.
signlong sign(long v)No description in source.

SLLTangent #sleela 2.5 (lib/math/SLLTangent.sleela)

SLLTangent class

Defines the SLeeLa standard-library type SLLTangent used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
slopedouble slopeA line tangent to a curve at a point: slope m through (x0, y0).
x0double x0No description in source.
y0double y0No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double m, double px, double py)No description in source.
atdouble at(double x)Evaluate the tangent line y = y0 + m (x - x0).
getSlopedouble getSlope()No description in source.

SLMachineEpsilon #sleela 2.5 (lib/math/SLMachineEpsilon.sleela)

SLMachineEpsilon class

Defines the SLeeLa standard-library type SLMachineEpsilon used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
computedouble compute()Compute machine epsilon for double precision by halving until 1 + e == 1.
doubleValuedouble doubleValue()No description in source.

SLMarkovChain #sleela 2.5 (lib/math/SLMarkovChain.sleela)

SLMarkovChain class

Defines the SLeeLa standard-library type SLMarkovChain used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
nint nNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int states)No description in source.
stepvoid step(double[] dist, double[] p, double[] out)No description in source.
rowStochasticboolean rowStochastic(double[] p, double tol)No description in source.

SLMath #sleela 2.5 (lib/math/SLMath.sleela)

SLMath class

Defines the SLeeLa standard-library type SLMath used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
pidouble pi()No description in source.
edouble e()No description in source.
absDdouble absD(double x)No description in source.
maxDdouble maxD(double a, double b)No description in source.
minDdouble minD(double a, double b)No description in source.
hypotdouble hypot(double a, double b)No description in source.

SLMathContext #sleela 2.5 (lib/math/SLMathContext.sleela)

SLMathContext class

Defines the SLeeLa standard-library type SLMathContext used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
precisionint precisionNo description in source.
roundingModeint roundingModeNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int digits, int mode)No description in source.
getPrecisionint getPrecision()No description in source.
getRoundingModeint getRoundingMode()No description in source.
rounddouble round(double x)No description in source.

SLMathEngine #sleela 2.5 (lib/math/SLMathEngine.sleela)

SLMathEngine class

Defines the SLeeLa standard-library type SLMathEngine used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
applydouble apply(int op, double a, double b)No description in source.

SLMathEvaluator #sleela 2.5 (lib/math/SLMathEvaluator.sleela)

SLMathEvaluator class

Defines the SLeeLa standard-library type SLMathEvaluator used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
evaluatedouble evaluate(int[] ops, double[] vals, int n)Evaluate a postfix token stream (op -1 pushes vals[i], 0..3 = + - * /).

SLMathNorms #sleela 2.5 (lib/math/SLMathNorms.sleela)

SLMathNorms class

SLMathNorms carries the math precision norms for SLeeLa -- how many digits are carried for irrational constants, repeating decimals, and Finance Verbs. The authoritative, user-editable values live in lib/math/MATH.PRECISION.NORMS.md and lib/math/math-precision-norms.json; these compiled constants are the baseline a build starts from when no config file is read.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
DEFAULT_IRRATIONAL_CARRYstatic final int DEFAULT_IRRATIONAL_CARRY = 2048No description in source.
DEFAULT_REPEATING_CARRYstatic final int DEFAULT_REPEATING_CARRY = 58No description in source.
DEFAULT_FINANCE_CARRYstatic final int DEFAULT_FINANCE_CARRY = 1023No description in source.
FINANCE_CARRY_FLOORstatic final int FINANCE_CARRY_FLOOR = 1023The hard floor below which a Finance Verb must not be configured.
irrationalCarryint irrationalCarryLive values, seeded from the defaults, overridable at runtime via setters.
repeatingCarryint repeatingCarryNo description in source.
financeCarryint financeCarryNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
initDefaultsvoid initDefaults()Start from the compiled defaults.
getIrrationalCarryint getIrrationalCarry()No description in source.
getRepeatingCarryint getRepeatingCarry()No description in source.
getFinanceCarryint getFinanceCarry()No description in source.
setIrrationalCarryvoid setIrrationalCarry(int v)No description in source.
setRepeatingCarryvoid setRepeatingCarry(int v)No description in source.
setFinanceCarryboolean setFinanceCarry(int v)No description in source.
financeCarryValidboolean financeCarryValid()Is the current finance carry valid (at or above the floor)?
financeFloorint financeFloor()The hard floor for finance carry, reachable without instance-static access.
availableboolean available()No description in source.

SLMatrix #sleela 2.5 (lib/math/SLMatrix.sleela)

SLMatrix class

Defines the SLeeLa standard-library type SLMatrix used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
rowsint rowsRow-major dense matrix stored as a flat double[] of length rows*cols.
colsint colsNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
shapevoid shape(int r, int c)No description in source.
atdouble at(double[] m, int r, int c)No description in source.
putvoid put(double[] m, int r, int c, double v)No description in source.
getRowsint getRows()No description in source.
getColsint getCols()No description in source.
identityvoid identity(double[] m, int n)Identity matrix of order n written into `m`.

SLMatrixOperations #sleela 2.5 (lib/math/SLMatrixOperations.sleela)

SLMatrixOperations class

Defines the SLeeLa standard-library type SLMatrixOperations used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
multiplyvoid multiply(double[] a, double[] b, double[] c, int ra, int ca, int cb)Matrix product C = A(ra x ca) * B(ca x cb), all row-major flat arrays.
addvoid add(double[] a, double[] b, double[] c, int r, int cc)Elementwise sum C = A + B for r x c matrices.
scalevoid scale(double[] a, double s, double[] c, int r, int cc)Scalar multiply.

SLMax #sleela 2.5 (lib/math/SLMax.sleela)

SLMax class

Defines the SLeeLa standard-library type SLMax used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double a, double b)No description in source.
ofIntint ofInt(int a, int b)No description in source.
ofArraydouble ofArray(double[] xs, int n)No description in source.

SLMean #sleela 2.5 (lib/math/SLMean.sleela)

SLMean class

Defines the SLeeLa standard-library type SLMean used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
arithmeticdouble arithmetic(double[] xs, int n)Arithmetic mean of the first n elements.
harmonicdouble harmonic(double[] xs, int n)Harmonic mean (all elements must be nonzero).

SLMedian #sleela 2.5 (lib/math/SLMedian.sleela)

SLMedian class

Defines the SLeeLa standard-library type SLMedian used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double[] a, int n)Median of a copy of the data (values are sorted in place in `a`).
sortInPlacevoid sortInPlace(double[] a, int n)No description in source.

SLMetric #sleela 2.5 (lib/math/SLMetric.sleela)

SLMetric class

Defines the SLeeLa standard-library type SLMetric used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
euclideandouble euclidean(double[] a, double[] b, int n)Distance metrics between two n-vectors: Euclidean, Manhattan, Chebyshev.
manhattandouble manhattan(double[] a, double[] b, int n)No description in source.
chebyshevdouble chebyshev(double[] a, double[] b, int n)No description in source.

SLMin #sleela 2.5 (lib/math/SLMin.sleela)

SLMin class

Defines the SLeeLa standard-library type SLMin used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double a, double b)No description in source.
ofIntint ofInt(int a, int b)No description in source.
ofArraydouble ofArray(double[] xs, int n)No description in source.

SLMode #sleela 2.5 (lib/math/SLMode.sleela)

SLMode class

Defines the SLeeLa standard-library type SLMode used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double[] xs, int n)The most frequent value (first-seen wins on ties). O(n^2), copy-free.

SLModulo #sleela 2.5 (lib/math/SLModulo.sleela)

SLModulo class

Defines the SLeeLa standard-library type SLModulo used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
modint mod(int a, int m)Euclidean remainder that is always in [0, m) for positive m.
powModlong powMod(long base, long exp, long m)Modular exponentiation of base to the power exp, modulo m, for nonnegative exp.

SLMoment #sleela 2.5 (lib/math/SLMoment.sleela)

SLMoment class

Defines the SLeeLa standard-library type SLMoment used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
meandouble mean(double[] xs, int n)No description in source.
rawdouble raw(double[] xs, int n, int k)The k-th raw moment about the origin: E[X^k].
centraldouble central(double[] xs, int n, int k)The k-th central moment about the mean.

SLMonteCarlo #sleela 2.5 (lib/math/SLMonteCarlo.sleela)

SLMonteCarlo class

Defines the SLeeLa standard-library type SLMonteCarlo used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
estimatedouble estimate(double[] samples, int n)No description in source.
estimatePidouble estimatePi(int inside, int n)No description in source.

SLMonteCarloSampler #sleela 2.5 (lib/math/SLMonteCarloSampler.sleela)

SLMonteCarloSampler class

Defines the SLeeLa standard-library type SLMonteCarloSampler used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
statelong stateNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
seedvoid seed(long s)No description in source.
nextUniformdouble nextUniform(double a, double b)No description in source.
samplevoid sample(double a, double b, int n, double[] out)No description in source.

SLNewtonInterpolation #sleela 2.5 (lib/math/SLNewtonInterpolation.sleela)

SLNewtonInterpolation class

Defines the SLeeLa standard-library type SLNewtonInterpolation used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
evaluatedouble evaluate(double[] xs, double[] ysIn, int n, double x)No description in source.

SLNewtonMethod #sleela 2.5 (lib/math/SLNewtonMethod.sleela)

SLNewtonMethod class

Defines the SLeeLa standard-library type SLNewtonMethod used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
stepdouble step(double x, double fx, double dfx)One Newton-Raphson update step: x minus f(x) divided by its derivative.

SLNewtonOptimization #sleela 2.5 (lib/math/SLNewtonOptimization.sleela)

SLNewtonOptimization class

Defines the SLeeLa standard-library type SLNewtonOptimization used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
stepdouble step(double x, double gradient, double hessian)No description in source.
isMinimumboolean isMinimum(double hessian)No description in source.

SLNewtonSolver #sleela 2.5 (lib/math/SLNewtonSolver.sleela)

SLNewtonSolver class

Defines the SLeeLa standard-library type SLNewtonSolver used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
stepdouble step(double x, double fx, double dfx)One Newton-Raphson update step toward a root of f.
convergedboolean converged(double xNew, double xOld, double tol)Has the iterate converged within tol?

SLNormalDistribution #sleela 2.5 (lib/math/SLNormalDistribution.sleela)

SLNormalDistribution class

Defines the SLeeLa standard-library type SLNormalDistribution used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
meandouble meanNo description in source.
stdDevdouble stdDevNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
expfdouble expf(double x)No description in source.
configurevoid configure(double m, double s)No description in source.
pdfdouble pdf(double x)No description in source.
cdfdouble cdf(double x)No description in source.

SLNumber #sleela 2.5 (lib/math/SLNumber.sleela)

SLNumber class

Defines the SLeeLa standard-library type SLNumber used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
kindint kindA tagged numeric value: kind 0 = integer (long), 1 = real (double).
ivallong ivalNo description in source.
dvaldouble dvalNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setIntvoid setInt(long v)No description in source.
setRealvoid setReal(double v)No description in source.
asDoubledouble asDouble()No description in source.
isIntegerboolean isInteger()No description in source.

SLNumeric #sleela 2.5 (lib/math/SLNumeric.sleela)

SLNumeric class

Defines the SLeeLa standard-library type SLNumeric used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
valuedouble valueA numeric wrapper exposing common predicates over a double value.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double v)No description in source.
getdouble get()No description in source.
isZeroboolean isZero()No description in source.
isPositiveboolean isPositive()No description in source.
isNegativeboolean isNegative()No description in source.
isIntegerboolean isInteger()No description in source.

SLNumericalDerivative #sleela 2.5 (lib/math/SLNumericalDerivative.sleela)

SLNumericalDerivative class

Defines the SLeeLa standard-library type SLNumericalDerivative used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
derivativedouble derivative(double yPrev, double yNext, double h)Three-point central difference using a step h about sampled triplet.
secondDerivativedouble secondDerivative(double yPrev, double yMid, double yNext, double h)Second derivative via the standard three-point stencil.

SLNumericalIntegration #sleela 2.5 (lib/math/SLNumericalIntegration.sleela)

SLNumericalIntegration class

Defines the SLeeLa standard-library type SLNumericalIntegration used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
trapezoiddouble trapezoid(double[] ys, double a, double b, int n)No description in source.
simpsondouble simpson(double[] ys, double a, double b, int n)Composite Simpson rule (n must be even), sampled ys length n+1.

SLNumericalMath #sleela 2.5 (lib/math/SLNumericalMath.sleela)

SLNumericalMath class

Defines the SLeeLa standard-library type SLNumericalMath used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
chopdouble chop(double x, double tol)Clamp tiny magnitudes to zero below a threshold (denormal flush).
nearlyEqualboolean nearlyEqual(double a, double b, double tol)No description in source.

SLNumericalPrecision #sleela 2.5 (lib/math/SLNumericalPrecision.sleela)

SLNumericalPrecision class

Defines the SLeeLa standard-library type SLNumericalPrecision used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
doubleEpsilondouble doubleEpsilon()No description in source.
nearlyEqualboolean nearlyEqual(double a, double b, double relTol)No description in source.

SLNumericalRoot #sleela 2.5 (lib/math/SLNumericalRoot.sleela)

SLNumericalRoot class

Defines the SLeeLa standard-library type SLNumericalRoot used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
absddouble absd(double x)No description in source.
bracketedboolean bracketed(double fa, double fb)No description in source.
bisectdouble bisect(double a, double b)No description in source.
withinboolean within(double fx, double tol)No description in source.

SLNumericalSequence #sleela 2.5 (lib/math/SLNumericalSequence.sleela)

SLNumericalSequence class

Defines the SLeeLa standard-library type SLNumericalSequence used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
linspacevoid linspace(double a, double b, int n, double[] out)Build a linearly spaced sequence of n points from a to b into out.
geomspacevoid geomspace(double a, double r, int n, double[] out)Build a geometric sequence a, a*r, a*r^2, ... into out.

SLNumericalSolver #sleela 2.5 (lib/math/SLNumericalSolver.sleela)

SLNumericalSolver class

Defines the SLeeLa standard-library type SLNumericalSolver used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
solveLinearboolean solveLinear(double[] aIn, double[] bIn, double[] x, int n)No description in source.

SLNumericFormatter #sleela 2.5 (lib/math/SLNumericFormatter.sleela)

SLNumericFormatter class

Defines the SLeeLa standard-library type SLNumericFormatter used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
MAX_PLACESint MAX_PLACES = 15No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
integerPartlong integerPart(double x)No description in source.
fractionalDigitslong fractionalDigits(double x, int places)The first `places` fractional digits of |x|, as an integer (rounded).
pow10double pow10(int n)10^n as a double, for 0 <= n <= 18.
digitCharString digitChar(long d)The decimal digit 0..9 as a one-character String.
unsignedToStringString unsignedToString(long d)A nonnegative long as its decimal String (no sign).
longToStringString longToString(long d)A signed long as its decimal String.
toFixedString toFixed(double x, int places)No description in source.
stringDigitCountint stringDigitCount(long d)The number of decimal digits in a nonnegative long (1 for zero).
toSignificantString toSignificant(double x, int sig)No description in source.

SLNumericParser #sleela 2.5 (lib/math/SLNumericParser.sleela)

SLNumericParser class

Defines the SLeeLa standard-library type SLNumericParser used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
parseUnsignedlong parseUnsigned(int[] codes, int length)No description in source.

SLObjective #sleela 2.5 (lib/math/SLObjective.sleela)

SLObjective class

Defines the SLeeLa standard-library type SLObjective used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
adouble aNo description in source.
bdouble bNo description in source.
cdouble cNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double pa, double pb, double pc)No description in source.
valuedouble value(double x)No description in source.
gradientdouble gradient(double x)No description in source.
minimizerdouble minimizer()No description in source.

SLODESolver #sleela 2.5 (lib/math/SLODESolver.sleela)

SLODESolver class

Defines the SLeeLa standard-library type SLODESolver used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
eulerStepdouble eulerStep(double y, double fval, double h)No description in source.
heunStepdouble heunStep(double y, double k1, double k2, double h)No description in source.

SLOptimization #sleela 2.5 (lib/math/SLOptimization.sleela)

SLOptimization class

Defines the SLeeLa standard-library type SLOptimization used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
argMinint argMin(double[] values, int n)No description in source.
convergedboolean converged(double fNew, double fOld, double tol)No description in source.

SLOptimizationProblem #sleela 2.5 (lib/math/SLOptimizationProblem.sleela)

SLOptimizationProblem class

Defines the SLeeLa standard-library type SLOptimizationProblem used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
minimizeboolean minimizeNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(boolean doMinimize)No description in source.
bestIndexint bestIndex(double[] objective, int n)No description in source.

SLOrder #sleela 2.5 (lib/math/SLOrder.sleela)

SLOrder class

Defines the SLeeLa standard-library type SLOrder used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
compareint compare(double a, double b)Comparison yielding -1, 0, or 1.
ascendingboolean ascending(double[] a, int n)Is the array sorted ascending?

SLOrdinaryDifferentialEquation #sleela 2.5 (lib/math/SLOrdinaryDifferentialEquation.sleela)

SLOrdinaryDifferentialEquation class

Defines the SLeeLa standard-library type SLOrdinaryDifferentialEquation used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
adouble aNo description in source.
bdouble bNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double pa, double pb)No description in source.
slopedouble slope(double y)No description in source.
eulerStepdouble eulerStep(double y, double h)No description in source.

SLOverflow #sleela 2.5 (lib/math/SLOverflow.sleela)

SLOverflow class

Defines the SLeeLa standard-library type SLOverflow used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
maxLonglong maxLong()No description in source.
addOverflowsboolean addOverflows(long a, long b)No description in source.
mulOverflowsboolean mulOverflows(long a, long b)Would a * b overflow? Checked by dividing the product back out.
exceedsDoubleboolean exceedsDouble(double x, double limit)No description in source.

SLPackage #sleela 2.5 (lib/math/SLPackage.sleela)

SLPackage class

Defines the SLeeLa standard-library package for math.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
packageNameString packageNameNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(String name)No description in source.
nameString name()No description in source.
availableboolean available()No description in source.

SLPartialDerivative #sleela 2.5 (lib/math/SLPartialDerivative.sleela)

SLPartialDerivative class

Defines the SLeeLa standard-library type SLPartialDerivative used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
alongdouble along(double fMinus, double fPlus, double h)No description in source.

SLPathLength #sleela 2.5 (lib/math/SLPathLength.sleela)

SLPathLength class

Defines the SLeeLa standard-library type SLPathLength used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
ofdouble of(double[] xs, double[] ys, int n)Total length of a polyline through n sampled points.

SLPDE #sleela 2.5 (lib/math/SLPDE.sleela)

SLPDE class

Defines the SLeeLa standard-library type SLPDE used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
heatStepvoid heatStep(double[] u, int n, double alpha, double dx, double dt, double[] out)No description in source.
stabilityRatiodouble stabilityRatio(double alpha, double dx, double dt)Stability ratio r = alpha dt / dx^2; explicit scheme is stable when r <= 0.5.

SLPercentile #sleela 2.5 (lib/math/SLPercentile.sleela)

SLPercentile class

Defines the SLeeLa standard-library type SLPercentile used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double[] a, int n, double p)Linear-interpolation percentile p in [0,100] over sorted data `a`.
sortInPlacevoid sortInPlace(double[] a, int n)No description in source.

SLPermutation #sleela 2.5 (lib/math/SLPermutation.sleela)

SLPermutation class

Defines the SLeeLa standard-library type SLPermutation used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
countlong count(int n, int k)P(n,k), the number of ordered k-arrangements of an n-set.
totallong total(int n)n! total permutations.

SLPermutationGenerator #sleela 2.5 (lib/math/SLPermutationGenerator.sleela)

SLPermutationGenerator class

Defines the SLeeLa standard-library type SLPermutationGenerator used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
countlong count(int n)Count of distinct permutations of n items = n!.
nextboolean next(int[] a, int n)No description in source.

SLPhysicalConstant #sleela 2.5 (lib/math/SLPhysicalConstant.sleela)

SLPhysicalConstant class

Defines the SLeeLa standard-library type SLPhysicalConstant used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
speedOfLightdouble speedOfLight()No description in source.
planckdouble planck()No description in source.
elementaryChargedouble elementaryCharge()No description in source.
avogadrodouble avogadro()No description in source.
boltzmanndouble boltzmann()No description in source.
gravitationdouble gravitation()No description in source.

SLPiReference #sleela 2.5 (lib/math/SLPiReference.sleela)

SLPiReference class

SLPiReference is the Modium static reference variable for the mathematical constant pi. It carries pi inline to the irrational-digit-carry norm (SLMathNorms.DEFAULT_IRRATIONAL_CARRY = 2048 fractional digits) as a static final String, reports its own digit count and a digit checksum, and self-verifies its leading digits against a known reference. The value is a Modium catalog static: a single authoritative, hash-checkable reference that the SLeeLa registry seeds as a default start value.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
PIstatic final String PI = "3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912983367336244065664308602139494639522473719070217986094370277053921717629317675238467481846766940513200056812714526356082778577134275778960917363717872146844090122495343014654958537105079227968925892354201995611212902196086403441815981362977477130996051870721134999999837297804995105973173281609631859502445945534690830264252230825334468503526193118817101000313783875288658753320838142061717766914730359825349042875546873115956286388235378759375195778185778053217122680661300192787661119590921642019893809525720106548586327886593615338182796823030195203530185296899577362259941389124972177528347913151557485724245415069595082953311686172785588907509838175463746493931925506040092770167113900984882401285836160356370766010471018194295559619894676783744944825537977472684710404753464620804668425906949129331367702898915210475216205696602405803815019351125338243003558764024749647326391419927260426992279678235478163600934172164121992458631503028618297455570674983850549458858692699569092721079750930295532116534498720275596023648066549911988183479775356636980742654252786255181841757467289097777279380008164706001614524919217321721477235014144197356854816136115735255213347574184946843852332390739414333454776241686251898356948556209921922218427255025425688767179049460165346680498862723279178608578438382796797668145410095388378636095068006422512520511739298489608412848862694560424196528502221066118630674427862203919494504712371378696095636437191728746776465757396241389086583264599581339047802759009946576407895126946839835259570982582262052248940"No description in source.
PI_HEADstatic final String PI_HEAD = "3.141592653589793238462643383279502884197169399375105820974944"The published head: "3." plus the first 60 fractional digits.
PI_TAILstatic final String PI_TAIL = "59230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912983367336244065664308602139494639522473719070217986094370277053921717629317675238467481846766940513200056812714526356082778577134275778960917363717872146844090122495343014654958537105079227968925892354201995611212902196086403441815981362977477130996051870721134999999837297804995105973173281609631859502445945534690830264252230825334468503526193118817101000313783875288658753320838142061717766914730359825349042875546873115956286388235378759375195778185778053217122680661300192787661119590921642019893809525720106548586327886593615338182796823030195203530185296899577362259941389124972177528347913151557485724245415069595082953311686172785588907509838175463746493931925506040092770167113900984882401285836160356370766010471018194295559619894676783744944825537977472684710404753464620804668425906949129331367702898915210475216205696602405803815019351125338243003558764024749647326391419927260426992279678235478163600934172164121992458631503028618297455570674983850549458858692699569092721079750930295532116534498720275596023648066549911988183479775356636980742654252786255181841757467289097777279380008164706001614524919217321721477235014144197356854816136115735255213347574184946843852332390739414333454776241686251898356948556209921922218427255025425688767179049460165346680498862723279178608578438382796797668145410095388378636095068006422512520511739298489608412848862694560424196528502221066118630674427862203919494504712371378696095636437191728746776465757396241389086583264599581339047802759009946576407895126946839835259570982582262052248940"The published tail: the remaining fractional digits. PI_HEAD + PI_TAIL == PI.
PI_HEAD_ECHOstatic final String PI_HEAD_ECHO = "3.141592653589793238462643383279502884197169399375105820974944"An independent echo of the head, for a tamper check against PI_HEAD.
PI_REF_50static final String PI_REF_50 = "14159265358979323846264338327950288419716939937510"The first 50 fractional digits, a widely published reference for pi.
PI_HEAD_FRACTION_50static final String PI_HEAD_FRACTION_50 = "14159265358979323846264338327950288419716939937510"The head with the leading "3." stripped: the first 50 then 60 digits.
PI_DIGITSstatic final int PI_DIGITS = 2048The number of fractional digits carried inline (the irrational-carry norm).
PI_LARGE_PATHstatic final String PI_LARGE_PATH = "pi-generator/pi.100000000.digits"No description in source.
PI_LARGE_DIGITSstatic final int PI_LARGE_DIGITS = 100000000No description in source.
PI_DIGIT_CHECKSUMstatic final int PI_DIGIT_CHECKSUM = 9338The sum of the fractional decimal digits -- a stable integrity checksum.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
valueString value()No description in source.
digitCountint digitCount()No description in source.
checksumint checksum()No description in source.
headString head()The published head ("3." + first 60 fractional digits), via a method.
largePathString largePath()The handle (locator path) to the 100,000,000-digit deeper reference set.
largeDigitsint largeDigits()The fractional-digit count of the deeper reference set resolved by handle.
verifyboolean verify()No description in source.
firstFiftyTwoString firstFiftyTwo()The first 52 characters ("3." + 50 digits), rebuilt from the reference.
reportString report()A one-line human report of the verification outcome.
availableboolean available()No description in source.

SLPlane #sleela 2.5 (lib/math/SLPlane.sleela)

SLPlane class

Defines the SLeeLa standard-library type SLPlane used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
adouble aNo description in source.
bdouble bNo description in source.
cdouble cNo description in source.
ddouble dNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
setvoid set(double pa, double pb, double pc, double pd)No description in source.
signedDistancedouble signedDistance(double x, double y, double z)No description in source.

SLPoint #sleela 2.5 (lib/math/SLPoint.sleela)

SLPoint class

Defines the SLeeLa standard-library type SLPoint used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
xdouble xNo description in source.
ydouble yNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
setvoid set(double px, double py)No description in source.
distanceTodouble distanceTo(SLPoint o)No description in source.
getXdouble getX()No description in source.
getYdouble getY()No description in source.

SLPoissonDistribution #sleela 2.5 (lib/math/SLPoissonDistribution.sleela)

SLPoissonDistribution class

Defines the SLeeLa standard-library type SLPoissonDistribution used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
expfdouble expf(double x)No description in source.
pmfdouble pmf(double lambda, int k)Probability mass lambda^k e^(-lambda) / k!.
meandouble mean(double lambda)No description in source.
variancedouble variance(double lambda)No description in source.

SLPolarCoordinate #sleela 2.5 (lib/math/SLPolarCoordinate.sleela)

SLPolarCoordinate class

Defines the SLeeLa standard-library type SLPolarCoordinate used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
rdouble rNo description in source.
thetadouble thetaNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
pidouble pi()No description in source.
reducedouble reduce(double x)No description in source.
sindouble sin(double x)No description in source.
cosdouble cos(double x)No description in source.
setvoid set(double radius, double angle)No description in source.
toXdouble toX()No description in source.
toYdouble toY()No description in source.
getRdouble getR()No description in source.
getThetadouble getTheta()No description in source.

SLPolynomial #sleela 2.5 (lib/math/SLPolynomial.sleela)

SLPolynomial class

Defines the SLeeLa standard-library type SLPolynomial used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
evaluatedouble evaluate(double[] coeffs, int degree, double x)No description in source.
derivativevoid derivative(double[] coeffs, int degree, double[] out)Derivative coefficients written into out (length degree).
addvoid add(double[] a, double[] b, double[] out, int n)No description in source.

SLPolynomialRegression #sleela 2.5 (lib/math/SLPolynomialRegression.sleela)

SLPolynomialRegression class

Defines the SLeeLa standard-library type SLPolynomialRegression used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
c0double c0No description in source.
c1double c1No description in source.
c2double c2No description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
fitvoid fit(double[] xs, double[] ys, int n)No description in source.
predictdouble predict(double x)No description in source.

SLPower #sleela 2.5 (lib/math/SLPower.sleela)

SLPower class

Defines the SLeeLa standard-library type SLPower used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
intPowdouble intPow(double x, int n)Integer power x to the n by binary exponentiation (negative n inverts).
squaredouble square(double x)Square and cube helpers.
cubedouble cube(double x)No description in source.

SLPrecision #sleela 2.5 (lib/math/SLPrecision.sleela)

SLPrecision class

Defines the SLeeLa standard-library type SLPrecision used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
significantDigitsint significantDigits(double relativeError)Number of correct significant digits implied by a relative error.
withinToleranceboolean withinTolerance(double a, double b, double tol)No description in source.
epsilondouble epsilon()The machine epsilon for IEEE-754 double precision (2^-52).
maxDigitsint maxDigits()The largest number of reliable significant decimal digits in a double.
almostEqualboolean almostEqual(double a, double b, double relTol)No description in source.
agreeingDigitsint agreeingDigits(double a, double b)No description in source.
relativeErrordouble relativeError(double approx, double reference)No description in source.

SLPredicate #sleela 2.5 (lib/math/SLPredicate.sleela)

SLPredicate class

Defines the SLeeLa standard-library type SLPredicate used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
kindint kindNo description in source.
thresholddouble thresholdNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(int k, double t)No description in source.
testboolean test(double x)No description in source.

SLPrime #sleela 2.5 (lib/math/SLPrime.sleela)

SLPrime class

Defines the SLeeLa standard-library type SLPrime used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
isPrimeboolean isPrime(int n)Primality test by trial division up to sqrt(n).
nextPrimeint nextPrime(int n)The next prime strictly greater than n.

SLPrimeFactorization #sleela 2.5 (lib/math/SLPrimeFactorization.sleela)

SLPrimeFactorization class

Defines the SLeeLa standard-library type SLPrimeFactorization used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
factorCountint factorCount(int n)Count the prime factors of n with multiplicity, for n of at least 1.
largestFactorint largestFactor(int n)The largest prime factor of n.

SLProbability #sleela 2.5 (lib/math/SLProbability.sleela)

SLProbability class

Defines the SLeeLa standard-library type SLProbability used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
clampdouble clamp(double p)Clamp a raw value to a valid probability in [0, 1].
complementdouble complement(double p)No description in source.
andIndependentdouble andIndependent(double a, double b)Probability of independent events both occurring.
orExclusivedouble orExclusive(double a, double b)Probability of either of two mutually-exclusive events.
orIndependentdouble orIndependent(double a, double b)Inclusive-or for independent events: a + b - a*b.

SLProbabilityDensity #sleela 2.5 (lib/math/SLProbabilityDensity.sleela)

SLProbabilityDensity class

Defines the SLeeLa standard-library type SLProbabilityDensity used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
normalPdfdouble normalPdf(double x, double mean, double stdDev)Standard-normal probability density function at x.
expNegdouble expNeg(double t)e to the minus t for nonnegative t, via a Taylor series on the argument.

SLProbabilityMass #sleela 2.5 (lib/math/SLProbabilityMass.sleela)

SLProbabilityMass class

Defines the SLeeLa standard-library type SLProbabilityMass used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
validboolean valid(double[] probs, int n, double tol)Validate that a discrete PMF over n outcomes sums to 1 (within tol).
cumulativedouble cumulative(double[] probs, int k)Cumulative mass through index k inclusive.

SLProduct #sleela 2.5 (lib/math/SLProduct.sleela)

SLProduct class

Defines the SLeeLa standard-library type SLProduct used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double[] xs, int n)No description in source.
timesdouble times(double a, double b)No description in source.

SLProgression #sleela 2.5 (lib/math/SLProgression.sleela)

SLProgression class

Defines the SLeeLa standard-library type SLProgression used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
arithmeticTermdouble arithmeticTerm(double a, double d, int k)Arithmetic progression: n-th term a + (n-1) d (1-indexed).
arithmeticSumdouble arithmeticSum(double a, double d, int k)Sum of the first k arithmetic terms.
geometricTermdouble geometricTerm(double a, double r, int k)Geometric progression: n-th term a r^(n-1).
geometricSumdouble geometricSum(double a, double r, int k)Sum of the first k geometric terms.

SLQuadraticProgram #sleela 2.5 (lib/math/SLQuadraticProgram.sleela)

SLQuadraticProgram class

Defines the SLeeLa standard-library type SLQuadraticProgram used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
objectivedouble objective(double[] q, double[] c, double[] x, int n)No description in source.
gradientvoid gradient(double[] q, double[] c, double[] x, int n, double[] out)No description in source.

SLQuantity #sleela 2.5 (lib/math/SLQuantity.sleela)

SLQuantity class

Defines the SLeeLa standard-library type SLQuantity used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
magnitudedouble magnitudeA physical quantity: a numeric magnitude paired with a unit scale to SI.
unitScaledouble unitScaleNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double m, double scaleToSI)No description in source.
inSIdouble inSI()No description in source.
getMagnitudedouble getMagnitude()No description in source.
addvoid add(SLQuantity o)No description in source.

SLQuaternion #sleela 2.5 (lib/math/SLQuaternion.sleela)

SLQuaternion class

Defines the SLeeLa standard-library type SLQuaternion used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
wdouble wNo description in source.
xdouble xNo description in source.
ydouble yNo description in source.
zdouble zNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
setvoid set(double pw, double px, double py, double pz)No description in source.
normdouble norm()No description in source.
multiplyvoid multiply(SLQuaternion o, SLQuaternion out)Hamilton product this * o written into out (w,x,y,z).
conjugatevoid conjugate(SLQuaternion out)No description in source.

SLRandomDistribution #sleela 2.5 (lib/math/SLRandomDistribution.sleela)

SLRandomDistribution class

Defines the SLeeLa standard-library type SLRandomDistribution used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sampleIndexint sampleIndex(double[] cumulative, int n, double u)No description in source.
toCumulativevoid toCumulative(double[] probs, int n, double[] out)Build a cumulative array from probabilities.

SLRandomGenerator #sleela 2.5 (lib/math/SLRandomGenerator.sleela)

SLRandomGenerator class

Defines the SLeeLa standard-library type SLRandomGenerator used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
statelong stateNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
seedvoid seed(long s)No description in source.
nextLonglong nextLong()No description in source.
nextdouble next()No description in source.
nextIntint nextInt(int bound)No description in source.

SLRandomVariable #sleela 2.5 (lib/math/SLRandomVariable.sleela)

SLRandomVariable class

Defines the SLeeLa standard-library type SLRandomVariable used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
expectationdouble expectation(double[] values, double[] probs, int n)No description in source.
variancedouble variance(double[] values, double[] probs, int n)No description in source.

SLRational #sleela 2.5 (lib/math/SLRational.sleela)

SLRational class

Defines the SLeeLa standard-library type SLRational used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
numint numNo description in source.
denint denNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
gcdint gcd(int a, int b)No description in source.
setvoid set(int n, int d)No description in source.
toDoubledouble toDouble()No description in source.
getNumint getNum()No description in source.
getDenint getDen()No description in source.

SLRay #sleela 2.5 (lib/math/SLRay.sleela)

SLRay class

Defines the SLeeLa standard-library type SLRay used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
oxdouble oxNo description in source.
oydouble oyNo description in source.
dxdouble dxNo description in source.
dydouble dyNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double originX, double originY, double dirX, double dirY)No description in source.
pointXdouble pointX(double t)No description in source.
pointYdouble pointY(double t)No description in source.

SLReciprocal #sleela 2.5 (lib/math/SLReciprocal.sleela)

SLReciprocal class

Defines the SLeeLa standard-library type SLReciprocal used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double x)The multiplicative inverse 1/x; returns 0.0 for x == 0 (no infinity).
definedboolean defined(double x)No description in source.

SLRecurrence #sleela 2.5 (lib/math/SLRecurrence.sleela)

SLRecurrence class

Defines the SLeeLa standard-library type SLRecurrence used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
evaluatedouble evaluate(double x0, double x1, double p, double q, int k)No description in source.

SLRecurrenceSolver #sleela 2.5 (lib/math/SLRecurrenceSolver.sleela)

SLRecurrenceSolver class

Defines the SLeeLa standard-library type SLRecurrenceSolver used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
characteristicRootsboolean characteristicRoots(double p, double q, double[] out)No description in source.

SLRegression #sleela 2.5 (lib/math/SLRegression.sleela)

SLRegression class

Defines the SLeeLa standard-library type SLRegression used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
slopedouble slopeNo description in source.
interceptdouble interceptNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
fitvoid fit(double[] xs, double[] ys, int n)No description in source.
predictdouble predict(double x)No description in source.

SLRegressionModel #sleela 2.5 (lib/math/SLRegressionModel.sleela)

SLRegressionModel class

Defines the SLeeLa standard-library type SLRegressionModel used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
slopedouble slopeA fitted linear model plus its coefficient of determination R^2.
interceptdouble interceptNo description in source.
rSquareddouble rSquaredNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
fitvoid fit(double[] xs, double[] ys, int n)No description in source.
getRSquareddouble getRSquared()No description in source.
predictdouble predict(double x)No description in source.

SLRegularization #sleela 2.5 (lib/math/SLRegularization.sleela)

SLRegularization class

Defines the SLeeLa standard-library type SLRegularization used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
l2Penaltydouble l2Penalty(double[] w, int n, double lambda)No description in source.
l1Penaltydouble l1Penalty(double[] w, int n, double lambda)No description in source.

SLRelation #sleela 2.5 (lib/math/SLRelation.sleela)

SLRelation class

Defines the SLeeLa standard-library type SLRelation used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
nint nNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int size)No description in source.
reflexiveboolean reflexive(int[] r)No description in source.
symmetricboolean symmetric(int[] r)No description in source.
transitiveboolean transitive(int[] r)No description in source.

SLResidual #sleela 2.5 (lib/math/SLResidual.sleela)

SLResidual class

Defines the SLeeLa standard-library type SLResidual used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
absddouble absd(double x)No description in source.
ofdouble of(double[] row, double[] x, double b, int n)Residual r = b - A*x for one equation row (dot of row with x).
normInfdouble normInf(double[] r, int n)No description in source.

SLRoot #sleela 2.5 (lib/math/SLRoot.sleela)

SLRoot class

Defines the SLeeLa standard-library type SLRoot used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
nthRootdouble nthRoot(double x, int n)Real n-th root of x for odd n (or nonnegative x) via Newton iteration.
squareRootdouble squareRoot(double x)No description in source.

SLRootFinder #sleela 2.5 (lib/math/SLRootFinder.sleela)

SLRootFinder class

Defines the SLeeLa standard-library type SLRootFinder used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
absddouble absd(double x)No description in source.
signChangeboolean signChange(double fa, double fb)Fixed-point / sign test helpers for a sampled root search.
bisectStepdouble bisectStep(double a, double b)No description in source.
withinboolean within(double fx, double tol)No description in source.

SLRotation #sleela 2.5 (lib/math/SLRotation.sleela)

SLRotation class

Defines the SLeeLa standard-library type SLRotation used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
pidouble pi()No description in source.
reducedouble reduce(double x)No description in source.
sindouble sin(double x)No description in source.
cosdouble cos(double x)No description in source.
rotate2Dvoid rotate2D(double x, double y, double theta, double[] out)No description in source.

SLRounding #sleela 2.5 (lib/math/SLRounding.sleela)

SLRounding class

Defines the SLeeLa standard-library type SLRounding used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
nearestlong nearest(double x)Round half-up to the nearest integer (as a long).
floorOflong floorOf(double x)No description in source.
ceilOflong ceilOf(double x)No description in source.
truncatedouble truncate(double x)No description in source.

SLRungeKutta #sleela 2.5 (lib/math/SLRungeKutta.sleela)

SLRungeKutta class

Defines the SLeeLa standard-library type SLRungeKutta used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
stepdouble step(double y, double k1, double k2, double k3, double k4, double h)No description in source.
stageOffsetdouble stageOffset(int stage, double h)No description in source.

SLScalarField #sleela 2.5 (lib/math/SLScalarField.sleela)

SLScalarField class

Defines the SLeeLa standard-library type SLScalarField used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
wint wNo description in source.
hint hNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int width, int height)No description in source.
atdouble at(double[] grid, int x, int y)No description in source.
gradXdouble gradX(double[] grid, int x, int y, double spacing)Gradient component along x at an interior cell by central difference.

SLScale #sleela 2.5 (lib/math/SLScale.sleela)

SLScale class

Defines the SLeeLa standard-library type SLScale used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
scale2Dvoid scale2D(double x, double y, double sx, double sy, double[] out)Scale a point about the origin by (sx, sy), written into out.
uniformdouble uniform(double v, double factor)No description in source.

SLSecantMethod #sleela 2.5 (lib/math/SLSecantMethod.sleela)

SLSecantMethod class

Defines the SLeeLa standard-library type SLSecantMethod used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
stepdouble step(double x0, double x1, double f0, double f1)One secant update using the two previous iterates and their f-values.

SLSeededRandom #sleela 2.5 (lib/math/SLSeededRandom.sleela)

SLSeededRandom class

Defines the SLeeLa standard-library type SLSeededRandom used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
statelong stateNo description in source.
initiallong initialNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
seedvoid seed(long s)No description in source.
resetvoid reset()No description in source.
nextdouble next()No description in source.

SLSequence #sleela 2.5 (lib/math/SLSequence.sleela)

SLSequence class

Defines the SLeeLa standard-library type SLSequence used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
termsdouble[] termsNo description in source.
nint nNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int count)No description in source.
setTermvoid setTerm(int i, double v)No description in source.
getTermdouble getTerm(int i)No description in source.
lengthint length()No description in source.
sumdouble sum()No description in source.

SLSeries #sleela 2.5 (lib/math/SLSeries.sleela)

SLSeries class

Defines the SLeeLa standard-library type SLSeries used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
partialSumdouble partialSum(double[] terms, int k)Partial sum of a sampled series (first k terms).
geometricLimitdouble geometricLimit(double a, double r)Geometric series limit a/(1-r) for |r| < 1.

SLSeriesExpansion #sleela 2.5 (lib/math/SLSeriesExpansion.sleela)

SLSeriesExpansion class

Defines the SLeeLa standard-library type SLSeriesExpansion used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
expSeriesdouble expSeries(double x, int n)e^x partial sum through n terms (Maclaurin).
geometricSeriesdouble geometricSeries(double x, int n)Geometric 1/(1-x) partial sum through n terms, |x| < 1.

SLSetOperations #sleela 2.5 (lib/math/SLSetOperations.sleela)

SLSetOperations class

Defines the SLeeLa standard-library type SLSetOperations used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
containsboolean contains(int[] a, int na, int v)No description in source.
unionint union(int[] a, int na, int[] b, int nb, int[] out)No description in source.
intersectionint intersection(int[] a, int na, int[] b, int nb, int[] out)Intersection of a and b into out; returns its size.
differenceint difference(int[] a, int na, int[] b, int nb, int[] out)Difference a minus b into out; returns its size.

SLSetTheory #sleela 2.5 (lib/math/SLSetTheory.sleela)

SLSetTheory class

Defines the SLeeLa standard-library type SLSetTheory used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
containsboolean contains(int[] a, int na, int v)Does the sorted set `a` (length na) contain value v?
subsetboolean subset(int[] a, int na, int[] b, int nb)Is `a` a subset of `b`?
cardinalityint cardinality(int[] a, int na)No description in source.

SLSignal #sleela 2.5 (lib/math/SLSignal.sleela)

SLSignal class

Defines the SLeeLa standard-library type SLSignal used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
energydouble energy(double[] x, int n)A sampled discrete signal with energy, power, and convolution helpers.
rmsdouble rms(double[] x, int n)No description in source.
convolvevoid convolve(double[] x, int n, double[] h, int m, double[] out)No description in source.

SLSignum #sleela 2.5 (lib/math/SLSignum.sleela)

SLSignum class

Defines the SLeeLa standard-library type SLSignum used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofDoubleint ofDouble(double x)The sign of x: -1, 0, or +1.
ofIntint ofInt(int x)No description in source.

SLSimpsonRule #sleela 2.5 (lib/math/SLSimpsonRule.sleela)

SLSimpsonRule class

Defines the SLeeLa standard-library type SLSimpsonRule used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
compositedouble composite(double[] ys, double a, double b, int n)Composite Simpson rule over sampled ys (length n+1), n even, on [a,b].

SLSine #sleela 2.5 (lib/math/SLSine.sleela)

SLSine class

Defines the SLeeLa standard-library type SLSine used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
pidouble pi()No description in source.
reducedouble reduce(double x)No description in source.
sindouble sin(double x)No description in source.
cosdouble cos(double x)No description in source.
ofdouble of(double x)No description in source.

SLSkewness #sleela 2.5 (lib/math/SLSkewness.sleela)

SLSkewness class

Defines the SLeeLa standard-library type SLSkewness used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
meandouble mean(double[] xs, int n)No description in source.
ofdouble of(double[] xs, int n)Population skewness: m3 / m2^(3/2).

SLSpline #sleela 2.5 (lib/math/SLSpline.sleela)

SLSpline class

Defines the SLeeLa standard-library type SLSpline used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
linearSegmentdouble linearSegment(double y0, double y1, double t)No description in source.
catmullTangentdouble catmullTangent(double[] ys, int i, int n)Catmull-Rom tangent at point i from its neighbours.

SLStandardDeviation #sleela 2.5 (lib/math/SLStandardDeviation.sleela)

SLStandardDeviation class

Defines the SLeeLa standard-library type SLStandardDeviation used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
meandouble mean(double[] xs, int n)No description in source.
populationdouble population(double[] xs, int n)Population standard deviation.
sampledouble sample(double[] xs, int n)Sample standard deviation (n-1 denominator).

SLStandardError #sleela 2.5 (lib/math/SLStandardError.sleela)

SLStandardError class

Defines the SLeeLa standard-library type SLStandardError used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
ofMeandouble ofMean(double sampleStdDev, int n)Standard error of the mean: s / sqrt(n).

SLStatistics #sleela 2.5 (lib/math/SLStatistics.sleela)

SLStatistics class

Defines the SLeeLa standard-library type SLStatistics used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
meandouble mean(double[] xs, int n)No description in source.
variancePopulationdouble variancePopulation(double[] xs, int n)No description in source.
stdDevPopulationdouble stdDevPopulation(double[] xs, int n)No description in source.
rangedouble range(double[] xs, int n)No description in source.

SLSum #sleela 2.5 (lib/math/SLSum.sleela)

SLSum class

Defines the SLeeLa standard-library type SLSum used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double[] xs, int n)No description in source.
kahandouble kahan(double[] xs, int n)Kahan-compensated summation for improved accuracy.
plusdouble plus(double a, double b)No description in source.

SLSymbolicMath #sleela 2.5 (lib/math/SLSymbolicMath.sleela)

SLSymbolicMath class

Defines the SLeeLa standard-library type SLSymbolicMath used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
newExpint newExpSymbolic rules over monomials represented as (coefficient, exponent) pairs: differentiation and integration of a single power term. >> d/dx of c x^n is (c n) x^(n-1); returns the new coefficient; newExp via field.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
differentiatedouble differentiate(double c, int n)No description in source.
integratedouble integrate(double c, int n)Indefinite integral of c x^n is (c/(n+1)) x^(n+1); newExp holds n+1.
getNewExpint getNewExp()No description in source.

SLSymmetricDifference #sleela 2.5 (lib/math/SLSymmetricDifference.sleela)

SLSymmetricDifference class

Defines the SLeeLa standard-library type SLSymmetricDifference used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
containsboolean contains(int[] a, int na, int v)No description in source.
ofint of(int[] a, int na, int[] b, int nb, int[] out)Elements in exactly one of a or b, written into out; returns the size.

SLTangent #sleela 2.5 (lib/math/SLTangent.sleela)

SLTangent class

Defines the SLeeLa standard-library type SLTangent used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
pidouble pi()No description in source.
reducedouble reduce(double x)No description in source.
sindouble sin(double x)No description in source.
cosdouble cos(double x)No description in source.
ofdouble of(double x)No description in source.

SLTensor #sleela 2.5 (lib/math/SLTensor.sleela)

SLTensor class

Defines the SLeeLa standard-library type SLTensor used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
shapeint[] shapeNo description in source.
rankint rankNo description in source.
totalint totalNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(int[] dims, int k)No description in source.
offsetint offset(int[] coord)No description in source.
sizeint size()No description in source.
getRankint getRank()No description in source.

SLTerm #sleela 2.5 (lib/math/SLTerm.sleela)

SLTerm class

Defines the SLeeLa standard-library type SLTerm used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
coefficientdouble coefficientA monomial term coefficient * x^exponent.
exponentint exponentNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
setvoid set(double c, int e)No description in source.
evaluatedouble evaluate(double x)No description in source.
derivativeCoefficientdouble derivativeCoefficient()No description in source.

SLTopology #sleela 2.5 (lib/math/SLTopology.sleela)

SLTopology class

Defines the SLeeLa standard-library type SLTopology used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
lodouble loNo description in source.
hidouble hiNo description in source.
closedLowboolean closedLowNo description in source.
closedHighboolean closedHighNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(double a, double b, boolean cl, boolean ch)No description in source.
containsboolean contains(double x)No description in source.
isBoundaryboolean isBoundary(double x)No description in source.

SLTransform #sleela 2.5 (lib/math/SLTransform.sleela)

SLTransform class

Defines the SLeeLa standard-library type SLTransform used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
pidouble pi()No description in source.
reducedouble reduce(double x)No description in source.
sindouble sin(double x)No description in source.
cosdouble cos(double x)No description in source.
identityvoid identity(double[] m)No description in source.
applyvoid apply(double[] m, double x, double y, double[] out)No description in source.

SLTranslation #sleela 2.5 (lib/math/SLTranslation.sleela)

SLTranslation class

Defines the SLeeLa standard-library type SLTranslation used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
translate2Dvoid translate2D(double x, double y, double tx, double ty, double[] out)Translate a point by (tx, ty), written into out.

SLTranspose #sleela 2.5 (lib/math/SLTranspose.sleela)

SLTranspose class

Defines the SLeeLa standard-library type SLTranspose used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofvoid of(double[] a, double[] out, int r, int c)Transpose an r x c row-major matrix into out (c x r).

SLTrapezoidRule #sleela 2.5 (lib/math/SLTrapezoidRule.sleela)

SLTrapezoidRule class

Defines the SLeeLa standard-library type SLTrapezoidRule used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
paneldouble panel(double ya, double yb, double h)One trapezoid panel area.
compositedouble composite(double[] ys, double a, double b, int n)Composite rule over sampled ys (length n+1) on [a,b].

SLTrigonometry #sleela 2.5 (lib/math/SLTrigonometry.sleela)

SLTrigonometry class

Defines the SLeeLa standard-library type SLTrigonometry used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
pidouble pi()No description in source.
reducedouble reduce(double x)No description in source.
sindouble sin(double x)No description in source.
cosdouble cos(double x)No description in source.
tandouble tan(double x)No description in source.
degToRaddouble degToRad(double d)No description in source.
radToDegdouble radToDeg(double r)No description in source.

SLTTest #sleela 2.5 (lib/math/SLTTest.sleela)

SLTTest class

Defines the SLeeLa standard-library type SLTTest used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
meandouble mean(double[] xs, int n)No description in source.
oneSampledouble oneSample(double[] xs, int n, double mu0)No description in source.

SLUnderflow #sleela 2.5 (lib/math/SLUnderflow.sleela)

SLUnderflow class

Defines the SLeeLa standard-library type SLUnderflow used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
smallestNormaldouble smallestNormal()No description in source.
underflowsboolean underflows(double x, double threshold)Has a magnitude underflowed below a working threshold (flushed to zero)?
flushdouble flush(double x, double threshold)No description in source.

SLUniformDistribution #sleela 2.5 (lib/math/SLUniformDistribution.sleela)

SLUniformDistribution class

Defines the SLeeLa standard-library type SLUniformDistribution used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
adouble aNo description in source.
bdouble bNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(double lo, double hi)No description in source.
pdfdouble pdf(double x)No description in source.
cdfdouble cdf(double x)No description in source.
meandouble mean()No description in source.
variancedouble variance()No description in source.

SLUnion #sleela 2.5 (lib/math/SLUnion.sleela)

SLUnion class

Defines the SLeeLa standard-library type SLUnion used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
containsboolean contains(int[] a, int na, int v)No description in source.
ofint of(int[] a, int na, int[] b, int nb, int[] out)No description in source.

SLUnit #sleela 2.5 (lib/math/SLUnit.sleela)

SLUnit class

Defines the SLeeLa standard-library type SLUnit used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
scaledouble scaleNo description in source.
offsetdouble offsetNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
configurevoid configure(double s, double o)No description in source.
toBasedouble toBase(double raw)No description in source.
fromBasedouble fromBase(double si)No description in source.

SLUnitConverter #sleela 2.5 (lib/math/SLUnitConverter.sleela)

SLUnitConverter class

Defines the SLeeLa standard-library type SLUnitConverter used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
convertdouble convert(double value, double srcScale, double srcOffset,No description in source.
celsiusToFahrenheitdouble celsiusToFahrenheit(double c)Celsius to Fahrenheit convenience.

SLVariable #sleela 2.5 (lib/math/SLVariable.sleela)

SLVariable class

Defines the SLeeLa standard-library type SLVariable used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
nameValueString nameValueNo description in source.
valuedouble valueNo description in source.
boundboolean boundNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
bindvoid bind(String n, double v)No description in source.
unbindvoid unbind()No description in source.
getdouble get()No description in source.
isBoundboolean isBound()No description in source.
variableNameString variableName()No description in source.

SLVariance #sleela 2.5 (lib/math/SLVariance.sleela)

SLVariance class

Defines the SLeeLa standard-library type SLVariance used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
meandouble mean(double[] xs, int n)No description in source.
populationdouble population(double[] xs, int n)Population variance (divides by n).
sampledouble sample(double[] xs, int n)Sample variance (divides by n-1, Bessel correction).

SLVector #sleela 2.5 (lib/math/SLVector.sleela)

SLVector class

Defines the SLeeLa standard-library type SLVector used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
dotdouble dot(double[] a, double[] b, int n)Dense n-vector operations over caller-held double[] arrays.
normdouble norm(double[] a, int n)No description in source.
addvoid add(double[] a, double[] b, double[] out, int n)No description in source.
scalevoid scale(double[] a, double s, double[] out, int n)No description in source.

SLVector2 #sleela 2.5 (lib/math/SLVector2.sleela)

SLVector2 class

Defines the SLeeLa standard-library type SLVector2 used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
xdouble xNo description in source.
ydouble yNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
setvoid set(double px, double py)No description in source.
dotdouble dot(SLVector2 o)No description in source.
lengthdouble length()No description in source.
crossdouble cross(SLVector2 o)No description in source.
addvoid add(SLVector2 o)No description in source.
scalevoid scale(double s)No description in source.
getXdouble getX()No description in source.
getYdouble getY()No description in source.

SLVector3 #sleela 2.5 (lib/math/SLVector3.sleela)

SLVector3 class

Defines the SLeeLa standard-library type SLVector3 used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
xdouble xNo description in source.
ydouble yNo description in source.
zdouble zNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
setvoid set(double px, double py, double pz)No description in source.
dotdouble dot(SLVector3 o)No description in source.
lengthdouble length()No description in source.
addvoid add(SLVector3 o)No description in source.
scalevoid scale(double s)No description in source.
crossvoid cross(SLVector3 o, SLVector3 out)Cross product written into `out`.
getXdouble getX()No description in source.
getYdouble getY()No description in source.
getZdouble getZ()No description in source.

SLVector4 #sleela 2.5 (lib/math/SLVector4.sleela)

SLVector4 class

Defines the SLeeLa standard-library type SLVector4 used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
xdouble xNo description in source.
ydouble yNo description in source.
zdouble zNo description in source.
wdouble wNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
setvoid set(double px, double py, double pz, double pw)No description in source.
dotdouble dot(SLVector4 o)No description in source.
lengthdouble length()No description in source.
scalevoid scale(double s)No description in source.

SLVectorField #sleela 2.5 (lib/math/SLVectorField.sleela)

SLVectorField class

Defines the SLeeLa standard-library type SLVectorField used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Fields — the named values this unit stores.

FieldDeclarationWhat it holds
wint wNo description in source.
hint hNo description in source.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
configurevoid configure(int width, int height)No description in source.
divergencedouble divergence(double[] u, double[] v, int x, int y, double spacing)No description in source.
magnitudedouble magnitude(double ux, double vy)No description in source.

SLVectorNorm #sleela 2.5 (lib/math/SLVectorNorm.sleela)

SLVectorNorm class

Defines the SLeeLa standard-library type SLVectorNorm used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
sqrtdouble sqrt(double x)No description in source.
l1double l1(double[] a, int n)L1 (taxicab) norm.
l2double l2(double[] a, int n)L2 (Euclidean) norm.
lInfdouble lInf(double[] a, int n)L-infinity (maximum absolute component) norm.

SLVectorProjection #sleela 2.5 (lib/math/SLVectorProjection.sleela)

SLVectorProjection class

Defines the SLeeLa standard-library type SLVectorProjection used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
coefficientdouble coefficient(double[] a, double[] b, int n)Scalar projection of a onto b: (a.b)/|b|^2 as the coefficient.
projectvoid project(double[] a, double[] b, double[] out, int n)Vector projection of a onto b, written into `out`.

SLZScore #sleela 2.5 (lib/math/SLZScore.sleela)

SLZScore class

Defines the SLeeLa standard-library type SLZScore used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
ofdouble of(double x, double mean, double stdDev)The standard score (x - mean) / stddev.
unstandardizedouble unstandardize(double z, double mean, double stdDev)Recover the raw value from a z-score.

SLZTransform #sleela 2.5 (lib/math/SLZTransform.sleela)

SLZTransform class

Defines the SLeeLa standard-library type SLZTransform used within the math library family.

Carries the standard Metadata Class record — eleven catalogued provenance attributes (version, id, author, date, copyright, trademark, corporation, origin, birth date, science rating, national schedule) with matching get/set accessors. These are omitted from the tables below for brevity.

Methods — the actions this unit can perform.

MethodSignatureWhat it does
evaluateRealdouble evaluateReal(double[] x, int n, double z)No description in source.