math.html
api/sleela/3.1/version-024/package/math.html · 3592 line(s) · html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Package math — SleelaDoc API</title>
<link rel="stylesheet" href="../style.css">
</head>
<body>
<header class="top">
<div class="brand"><a href="../index.html">SleelaDoc API</a></div>
<div class="tag">HTML documentation for the SLeeLa standard library (/lib)</div>
</header>
<div class="wrap">
<nav class="side">
<a href="../index.html"><strong>Home</strong></a>
<a href="../packages.html"><strong>All packages</strong></a>
<a href="../glossary.html"><strong>Glossary</strong></a>
<a href="../authorship.html"><strong>Authorship</strong></a>
<h2>Packages</h2><ul>
<li><a href="../package/advantage.html">advantage</a></li>
<li><a href="../package/alphabet.html">alphabet</a></li>
<li><a href="../package/antivirus.html">antivirus</a></li>
<li><a href="../package/api.html">api</a></li>
<li><a href="../package/array.html">array</a></li>
<li><a href="../package/audio.html">audio</a></li>
<li><a href="../package/autocad.html">autocad</a></li>
<li><a href="../package/ballum.html">ballum</a></li>
<li><a href="../package/bash.html">bash</a></li>
<li><a href="../package/boolean.html">boolean</a></li>
<li><a href="../package/cdma.html">cdma</a></li>
<li><a href="../package/char.html">char</a></li>
<li><a href="../package/character.html">character</a></li>
<li><a href="../package/character-recognition.html">character-recognition</a></li>
<li><a href="../package/churn.html">churn</a></li>
<li><a href="../package/citizen.html">citizen</a></li>
<li><a href="../package/codecs.html">codecs</a></li>
<li><a href="../package/collections.html">collections</a></li>
<li><a href="../package/common-rails.html">common-rails</a></li>
<li><a href="../package/compiler.html">compiler</a></li>
<li><a href="../package/compression.html">compression</a></li>
<li><a href="../package/config.html">config</a></li>
<li><a href="../package/connector.html">connector</a></li>
<li><a href="../package/coorenagraph.html">coorenagraph</a></li>
<li><a href="../package/core.html">core</a></li>
<li><a href="../package/cpu.html">cpu</a></li>
<li><a href="../package/crypto.html">crypto</a></li>
<li><a href="../package/data.html">data</a></li>
<li><a href="../package/data-structures.html">data-structures</a></li>
<li><a href="../package/database.html">database</a></li>
<li><a href="../package/debugger.html">debugger</a></li>
<li><a href="../package/decompiler.html">decompiler</a></li>
<li><a href="../package/deliberation.html">deliberation</a></li>
<li><a href="../package/drivers.html">drivers</a></li>
<li><a href="../package/examples.html">examples</a></li>
<li><a href="../package/filesystem.html">filesystem</a></li>
<li><a href="../package/gameplay.html">gameplay</a></li>
<li><a href="../package/governance.html">governance</a></li>
<li><a href="../package/gui.html">gui</a></li>
<li><a href="../package/guidoc.html">guidoc</a></li>
<li><a href="../package/hotlink.html">hotlink</a></li>
<li><a href="../package/html.html">html</a></li>
<li><a href="../package/http.html">http</a></li>
<li><a href="../package/http-1.0.html">http-1.0</a></li>
<li><a href="../package/http-2.0.html">http-2.0</a></li>
<li><a href="../package/http-3.0.html">http-3.0</a></li>
<li><a href="../package/http-4.0.html">http-4.0</a></li>
<li><a href="../package/http-5.0.html">http-5.0</a></li>
<li><a href="../package/http-6.0.html">http-6.0</a></li>
<li><a href="../package/http-7.0.html">http-7.0</a></li>
<li><a href="../package/http-8.0.html">http-8.0</a></li>
<li><a href="../package/http-9.0.html">http-9.0</a></li>
<li><a href="../package/http-servers.html">http-servers</a></li>
<li><a href="../package/ide.html">ide</a></li>
<li><a href="../package/ide-workbench.html">ide-workbench</a></li>
<li><a href="../package/idea.html">idea</a></li>
<li><a href="../package/inference-model.html">inference-model</a></li>
<li><a href="../package/inputs.html">inputs</a></li>
<li><a href="../package/international-criminal-court.html">international-criminal-court</a></li>
<li><a href="../package/io.html">io</a></li>
<li><a href="../package/java.html">java</a></li>
<li><a href="../package/java28.html">java28</a></li>
<li><a href="../package/journey.html">journey</a></li>
<li><a href="../package/languages.html">languages</a></li>
<li><a href="../package/large-language-models.html">large-language-models</a></li>
<li><a href="../package/ledger.html">ledger</a></li>
<li><a href="../package/linux-editors.html">linux-editors</a></li>
<li><a href="../package/manifesto.html">manifesto</a></li>
<li><a href="../package/math.html">math</a></li>
<li><a href="../package/memory.html">memory</a></li>
<li><a href="../package/modules.html">modules</a></li>
<li><a href="../package/moral-capacitor.html">moral-capacitor</a></li>
<li><a href="../package/munction.html">munction</a></li>
<li><a href="../package/native.html">native</a></li>
<li><a href="../package/net.html">net</a></li>
<li><a href="../package/neural-nets.html">neural-nets</a></li>
<li><a href="../package/nordshrift.html">nordshrift</a></li>
<li><a href="../package/observer.html">observer</a></li>
<li><a href="../package/opcodes.html">opcodes</a></li>
<li><a href="../package/operating-system.html">operating-system</a></li>
<li><a href="../package/os-level-support.html">os-level-support</a></li>
<li><a href="../package/philosophers.html">philosophers</a></li>
<li><a href="../package/philosophy.html">philosophy</a></li>
<li><a href="../package/politico.html">politico</a></li>
<li><a href="../package/process.html">process</a></li>
<li><a href="../package/psychiatry.html">psychiatry</a></li>
<li><a href="../package/public.html">public</a></li>
<li><a href="../package/reflection.html">reflection</a></li>
<li><a href="../package/regex.html">regex</a></li>
<li><a href="../package/registry.html">registry</a></li>
<li><a href="../package/rmi.html">rmi</a></li>
<li><a href="../package/rrs.html">rrs</a></li>
<li><a href="../package/runtime.html">runtime</a></li>
<li><a href="../package/security.html">security</a></li>
<li><a href="../package/server-edition.html">server-edition</a></li>
<li><a href="../package/signal-processing.html">signal-processing</a></li>
<li><a href="../package/sldocument.html">sldocument</a></li>
<li><a href="../package/sleela.html">sleela</a></li>
<li><a href="../package/sleela-sql.html">sleela-sql</a></li>
<li><a href="../package/sleela-terminal.html">sleela-terminal</a></li>
<li><a href="../package/sleeladoc.html">sleeladoc</a></li>
<li><a href="../package/slrtp.html">slrtp</a></li>
<li><a href="../package/social-model.html">social-model</a></li>
<li><a href="../package/softlisten.html">softlisten</a></li>
<li><a href="../package/sommeliers.html">sommeliers</a></li>
<li><a href="../package/spatial.html">spatial</a></li>
<li><a href="../package/sst.html">sst</a></li>
<li><a href="../package/synchro.html">synchro</a></li>
<li><a href="../package/systems.html">systems</a></li>
<li><a href="../package/telephony-skya.html">telephony-skya</a></li>
<li><a href="../package/terminal.html">terminal</a></li>
<li><a href="../package/terminal_pixel.html">terminal_pixel</a></li>
<li><a href="../package/text.html">text</a></li>
<li><a href="../package/ui.html">ui</a></li>
<li><a href="../package/us-infrastructure.html">us-infrastructure</a></li>
<li><a href="../package/user-interface.html">user-interface</a></li>
<li><a href="../package/video.html">video</a></li>
<li><a href="../package/vm.html">vm</a></li>
<li><a href="../package/web-server-technology.html">web-server-technology</a></li>
<li><a href="../package/website.html">website</a></li>
<li><a href="../package/wifi.html">wifi</a></li>
<li><a href="../package/xlt.html">xlt</a></li>
<li><a href="../package/xml.html">xml</a></li>
</ul>
</nav>
<main>
<div class="crumbs"><a href="../index.html">Home</a> › <a href="../packages.html">Packages</a> › math</div>
<h1>Package <code>math</code></h1>
<div class="lead">This package contains <strong>252</strong> source unit(s) defining <strong>252</strong> 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.</div>
<input class="search" placeholder="Filter on this page (Ctrl+F also works)…" oninput="flt(this.value)">
<h2 class="section" data-u="bigarraygcverify">BigArrayGCVerify <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/examples/BigArrayGCVerify.sleela)</span></h2>
<div data-u="bigarraygcverify bigarraygcverify">
<h3 id="BigArrayGCVerify">BigArrayGCVerify <span class="pill">class</span></h3>
<p class="desc">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.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>main</code></td><td><span class="sig">void main()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="bigintegerdemo">BigIntegerDemo <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/examples/BigIntegerDemo.sleela)</span></h2>
<div data-u="bigintegerdemo bigintegerdemo">
<h3 id="BigIntegerDemo">BigIntegerDemo <span class="pill">class</span></h3>
<p class="desc">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.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>main</code></td><td><span class="sig">void main()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="bigmulverify">BigMulVerify <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/examples/BigMulVerify.sleela)</span></h2>
<div data-u="bigmulverify bigmulverify">
<h3 id="BigMulVerify">BigMulVerify <span class="pill">class</span></h3>
<p class="desc">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.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>schoolbook</code></td><td><span class="sig">int schoolbook(int[] a, int na, int[] b, int nb, int[] r)</span></td><td class="desc">Pure-SLeeLa reference multiply over base-1e9 limbs.</td></tr>
<tr><td><code>nextLimb</code></td><td><span class="sig">int nextLimb(int seed)</span></td><td class="desc">A tiny deterministic limb generator (linear congruential), values in [0,1e9).</td></tr>
<tr><td><code>checkSize</code></td><td><span class="sig">int checkSize(int n, int seed)</span></td><td class="desc">Multiply n-limb operands both ways; return the count of mismatched limbs.</td></tr>
<tr><td><code>main</code></td><td><span class="sig">void main()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="bignumopsverify">BigNumOpsVerify <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/examples/BigNumOpsVerify.sleela)</span></h2>
<div data-u="bignumopsverify bignumopsverify">
<h3 id="BigNumOpsVerify">BigNumOpsVerify <span class="pill">class</span></h3>
<p class="desc">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.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>school</code></td><td><span class="sig">int school(int[] a, int na, int[] b, int nb, int[] r)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>fillRandom</code></td><td><span class="sig">int fillRandom(int[] x, int n, int seed)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>mulMismatch</code></td><td><span class="sig">int mulMismatch(int n, int seed)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>main</code></td><td><span class="sig">void main()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="mathdemo">MathDemo <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/examples/MathDemo.sleela)</span></h2>
<div data-u="mathdemo mathdemo">
<h3 id="MathDemo">MathDemo <span class="pill">class</span></h3>
<p class="desc">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.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>main</code></td><td><span class="sig">void main()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="pireferencedemo">PiReferenceDemo <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/examples/PiReferenceDemo.sleela)</span></h2>
<div data-u="pireferencedemo pireferencedemo">
<h3 id="PiReferenceDemo">PiReferenceDemo <span class="pill">class</span></h3>
<p class="desc">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.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>main</code></td><td><span class="sig">void main()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slabsolutevalue">SLAbsoluteValue <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLAbsoluteValue.sleela)</span></h2>
<div data-u="slabsolutevalue slabsolutevalue">
<h3 id="SLAbsoluteValue">SLAbsoluteValue <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLAbsoluteValue used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>ofDouble</code></td><td><span class="sig">double ofDouble(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>ofInt</code></td><td><span class="sig">int ofInt(int x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>ofLong</code></td><td><span class="sig">long ofLong(long x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slaccumulation">SLAccumulation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLAccumulation.sleela)</span></h2>
<div data-u="slaccumulation slaccumulation">
<h3 id="SLAccumulation">SLAccumulation <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLAccumulation used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>total</code></td><td><span class="sig">double total</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>count</code></td><td><span class="sig">int count</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>reset</code></td><td><span class="sig">void reset()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>add</code></td><td><span class="sig">void add(double v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sum</code></td><td><span class="sig">double sum()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getCount</code></td><td><span class="sig">int getCount()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sladjacencymatrix">SLAdjacencyMatrix <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLAdjacencyMatrix.sleela)</span></h2>
<div data-u="sladjacencymatrix sladjacencymatrix">
<h3 id="SLAdjacencyMatrix">SLAdjacencyMatrix <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLAdjacencyMatrix used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>n</code></td><td><span class="sig">int n</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int size)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>addEdge</code></td><td><span class="sig">void addEdge(double[] m, int u, int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>adjacent</code></td><td><span class="sig">boolean adjacent(double[] m, int u, int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>degree</code></td><td><span class="sig">int degree(double[] m, int u)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slalgebra">SLAlgebra <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLAlgebra.sleela)</span></h2>
<div data-u="slalgebra slalgebra">
<h3 id="SLAlgebra">SLAlgebra <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLAlgebra used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>solveQuadratic</code></td><td><span class="sig">int solveQuadratic(double a, double b, double c, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>evaluateLinear</code></td><td><span class="sig">double evaluateLinear(double m, double b, double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slangle">SLAngle <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLAngle.sleela)</span></h2>
<div data-u="slangle slangle">
<h3 id="SLAngle">SLAngle <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLAngle used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>radians</code></td><td><span class="sig">double radians</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>pi</code></td><td><span class="sig">double pi()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setRadians</code></td><td><span class="sig">void setRadians(double r)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setDegrees</code></td><td><span class="sig">void setDegrees(double d)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getRadians</code></td><td><span class="sig">double getRadians()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getDegrees</code></td><td><span class="sig">double getDegrees()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>normalized</code></td><td><span class="sig">double normalized()</span></td><td class="desc">Normalize to the half-open interval from 0 up to two pi.</td></tr>
</table>
</div>
<h2 class="section" data-u="slanova">SLANOVA <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLANOVA.sleela)</span></h2>
<div data-u="slanova slanova">
<h3 id="SLANOVA">SLANOVA <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLANOVA used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>fStatistic</code></td><td><span class="sig">double fStatistic(double[] groupMeans, int[] groupSizes, int g,</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slapproximation">SLApproximation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLApproximation.sleela)</span></h2>
<div data-u="slapproximation slapproximation">
<h3 id="SLApproximation">SLApproximation <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLApproximation used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>absd</code></td><td><span class="sig">double absd(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>relativeError</code></td><td><span class="sig">double relativeError(double approx, double exact)</span></td><td class="desc">Relative error |approx - exact| / |exact|.</td></tr>
<tr><td><code>absoluteError</code></td><td><span class="sig">double absoluteError(double approx, double exact)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slarithmetic">SLArithmetic <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLArithmetic.sleela)</span></h2>
<div data-u="slarithmetic slarithmetic">
<h3 id="SLArithmetic">SLArithmetic <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLArithmetic used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>add</code></td><td><span class="sig">double add(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>subtract</code></td><td><span class="sig">double subtract(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>multiply</code></td><td><span class="sig">double multiply(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>divide</code></td><td><span class="sig">double divide(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>negate</code></td><td><span class="sig">double negate(double a)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slaverage">SLAverage <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLAverage.sleela)</span></h2>
<div data-u="slaverage slaverage">
<h3 id="SLAverage">SLAverage <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLAverage used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>weighted</code></td><td><span class="sig">double weighted(double[] xs, double[] ws, int n)</span></td><td class="desc">Weighted average: sum(w*x) / sum(w).</td></tr>
</table>
</div>
<h2 class="section" data-u="slbayes">SLBayes <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLBayes.sleela)</span></h2>
<div data-u="slbayes slbayes">
<h3 id="SLBayes">SLBayes <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLBayes used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>posterior</code></td><td><span class="sig">double posterior(double pBgivenA, double pA, double pBgivenNotA)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slbezier">SLBezier <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLBezier.sleela)</span></h2>
<div data-u="slbezier slbezier">
<h3 id="SLBezier">SLBezier <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLBezier used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>cubic</code></td><td><span class="sig">double cubic(double p0, double p1, double p2, double p3, double t)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>quadratic</code></td><td><span class="sig">double quadratic(double p0, double p1, double p2, double t)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slbigdecimal">SLBigDecimal <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLBigDecimal.sleela)</span></h2>
<div data-u="slbigdecimal slbigdecimal">
<h3 id="SLBigDecimal">SLBigDecimal <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLBigDecimal used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>unscaled</code></td><td><span class="sig">long unscaled</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>scale</code></td><td><span class="sig">int scale</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(long value, int decimalPlaces)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>toDouble</code></td><td><span class="sig">double toDouble()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getUnscaled</code></td><td><span class="sig">long getUnscaled()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getScale</code></td><td><span class="sig">int getScale()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slbiginteger">SLBigInteger <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLBigInteger.sleela)</span></h2>
<div data-u="slbiginteger slbiginteger">
<h3 id="SLBigInteger">SLBigInteger <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLBigInteger used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>limbs</code></td><td><span class="sig">int[] limbs</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>count</code></td><td><span class="sig">int count</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sign</code></td><td><span class="sig">int sign</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>fromLong</code></td><td><span class="sig">void fromLong(long v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>limbCount</code></td><td><span class="sig">int limbCount()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getSign</code></td><td><span class="sig">int getSign()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>fromLimbs</code></td><td><span class="sig">void fromLimbs(int[] ls, int n, int sgn)</span></td><td class="desc">Build directly from a caller-held limb array (little-endian, base 1e9).</td></tr>
<tr><td><code>limbAt</code></td><td><span class="sig">int limbAt(int i)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>multiply</code></td><td><span class="sig">SLBigInteger multiply(SLBigInteger other)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>normalize</code></td><td><span class="sig">void normalize()</span></td><td class="desc">Trim trailing zero limbs (keep at least one).</td></tr>
<tr><td><code>digitCountOf</code></td><td><span class="sig">int digitCountOf(int v)</span></td><td class="desc">The number of decimal digits in a nonnegative int (1 for zero).</td></tr>
<tr><td><code>padLimb</code></td><td><span class="sig">String padLimb(int v)</span></td><td class="desc">Nine-character zero-padded decimal of a limb value 0..999999999.</td></tr>
<tr><td><code>toDecimalString</code></td><td><span class="sig">String toDecimalString()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slbinomialcoefficient">SLBinomialCoefficient <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLBinomialCoefficient.sleela)</span></h2>
<div data-u="slbinomialcoefficient slbinomialcoefficient">
<h3 id="SLBinomialCoefficient">SLBinomialCoefficient <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLBinomialCoefficient used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>compute</code></td><td><span class="sig">long compute(int n, int k)</span></td><td class="desc">C(n, k) by the multiplicative formula, computed to avoid overflow early.</td></tr>
</table>
</div>
<h2 class="section" data-u="slbinomialdistribution">SLBinomialDistribution <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLBinomialDistribution.sleela)</span></h2>
<div data-u="slbinomialdistribution slbinomialdistribution">
<h3 id="SLBinomialDistribution">SLBinomialDistribution <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLBinomialDistribution used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>pmf</code></td><td><span class="sig">double pmf(int n, int k, double p)</span></td><td class="desc">Probability mass C(n,k) p^k (1-p)^(n-k).</td></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean(int n, double p)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>variance</code></td><td><span class="sig">double variance(int n, double p)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slbisectionsolver">SLBisectionSolver <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLBisectionSolver.sleela)</span></h2>
<div data-u="slbisectionsolver slbisectionsolver">
<h3 id="SLBisectionSolver">SLBisectionSolver <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLBisectionSolver used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>absd</code></td><td><span class="sig">double absd(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>midpoint</code></td><td><span class="sig">double midpoint(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>half</code></td><td><span class="sig">int half(double fa, double fmid)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>bracketed</code></td><td><span class="sig">boolean bracketed(double fa, double fb)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slcardinality">SLCardinality <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCardinality.sleela)</span></h2>
<div data-u="slcardinality slcardinality">
<h3 id="SLCardinality">SLCardinality <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCardinality used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">int of(int[] a, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>ofUnion</code></td><td><span class="sig">int ofUnion(int[] a, int na, int[] b, int nb)</span></td><td class="desc">Cardinality of the union of two distinct-valued sets.</td></tr>
<tr><td><code>sameCardinality</code></td><td><span class="sig">boolean sameCardinality(int na, int nb)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slcartesiancoordinate">SLCartesianCoordinate <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCartesianCoordinate.sleela)</span></h2>
<div data-u="slcartesiancoordinate slcartesiancoordinate">
<h3 id="SLCartesianCoordinate">SLCartesianCoordinate <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCartesianCoordinate used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>x</code></td><td><span class="sig">double x</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>y</code></td><td><span class="sig">double y</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double px, double py)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>radius</code></td><td><span class="sig">double radius()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getX</code></td><td><span class="sig">double getX()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getY</code></td><td><span class="sig">double getY()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slchisquaretest">SLChiSquareTest <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLChiSquareTest.sleela)</span></h2>
<div data-u="slchisquaretest slchisquaretest">
<h3 id="SLChiSquareTest">SLChiSquareTest <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLChiSquareTest used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>statistic</code></td><td><span class="sig">double statistic(double[] observed, double[] expected, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>degreesOfFreedom</code></td><td><span class="sig">int degreesOfFreedom(int categories)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slclamp">SLClamp <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLClamp.sleela)</span></h2>
<div data-u="slclamp slclamp">
<h3 id="SLClamp">SLClamp <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLClamp used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double x, double lo, double hi)</span></td><td class="desc">Constrain x to the closed interval [lo, hi].</td></tr>
<tr><td><code>ofInt</code></td><td><span class="sig">int ofInt(int x, int lo, int hi)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>inRange</code></td><td><span class="sig">boolean inRange(double x, double lo, double hi)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slcoefficient">SLCoefficient <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCoefficient.sleela)</span></h2>
<div data-u="slcoefficient slcoefficient">
<h3 id="SLCoefficient">SLCoefficient <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCoefficient used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>value</code></td><td><span class="sig">double value</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>degree</code></td><td><span class="sig">int degree</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double v, int d)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getValue</code></td><td><span class="sig">double getValue()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getDegree</code></td><td><span class="sig">int getDegree()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>termAt</code></td><td><span class="sig">double termAt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slcombination">SLCombination <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCombination.sleela)</span></h2>
<div data-u="slcombination slcombination">
<h3 id="SLCombination">SLCombination <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCombination used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>count</code></td><td><span class="sig">long count(int n, int k)</span></td><td class="desc">C(n,k), the number of k-subsets of an n-set.</td></tr>
</table>
</div>
<h2 class="section" data-u="slcombinationgenerator">SLCombinationGenerator <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCombinationGenerator.sleela)</span></h2>
<div data-u="slcombinationgenerator slcombinationgenerator">
<h3 id="SLCombinationGenerator">SLCombinationGenerator <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCombinationGenerator used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>generate</code></td><td><span class="sig">int generate(int n, int k, int[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slcombinatorics">SLCombinatorics <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCombinatorics.sleela)</span></h2>
<div data-u="slcombinatorics slcombinatorics">
<h3 id="SLCombinatorics">SLCombinatorics <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCombinatorics used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>factorial</code></td><td><span class="sig">long factorial(int n)</span></td><td class="desc">n! as a long.</td></tr>
<tr><td><code>permutations</code></td><td><span class="sig">long permutations(int n, int k)</span></td><td class="desc">Permutations P(n,k) = n!/(n-k)! by the falling product.</td></tr>
<tr><td><code>combinations</code></td><td><span class="sig">long combinations(int n, int k)</span></td><td class="desc">Combinations C(n,k) by the multiplicative formula.</td></tr>
</table>
</div>
<h2 class="section" data-u="slcomparator">SLComparator <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLComparator.sleela)</span></h2>
<div data-u="slcomparator slcomparator">
<h3 id="SLComparator">SLComparator <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLComparator used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>compareDouble</code></td><td><span class="sig">int compareDouble(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>compareInt</code></td><td><span class="sig">int compareInt(int a, int b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>equalWithin</code></td><td><span class="sig">boolean equalWithin(double a, double b, double tol)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slcomplex">SLComplex <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLComplex.sleela)</span></h2>
<div data-u="slcomplex slcomplex">
<h3 id="SLComplex">SLComplex <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLComplex used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>re</code></td><td><span class="sig">double re</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>im</code></td><td><span class="sig">double im</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double r, double i)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>add</code></td><td><span class="sig">void add(SLComplex o, SLComplex out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>multiply</code></td><td><span class="sig">void multiply(SLComplex o, SLComplex out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>modulus</code></td><td><span class="sig">double modulus()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>conjugate</code></td><td><span class="sig">void conjugate(SLComplex out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getRe</code></td><td><span class="sig">double getRe()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getIm</code></td><td><span class="sig">double getIm()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slconditionnumber">SLConditionNumber <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLConditionNumber.sleela)</span></h2>
<div data-u="slconditionnumber slconditionnumber">
<h3 id="SLConditionNumber">SLConditionNumber <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLConditionNumber used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>fromExtremes</code></td><td><span class="sig">double fromExtremes(double largest, double smallest)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>illConditioned</code></td><td><span class="sig">boolean illConditioned(double cond, double threshold)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slconfidenceinterval">SLConfidenceInterval <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLConfidenceInterval.sleela)</span></h2>
<div data-u="slconfidenceinterval slconfidenceinterval">
<h3 id="SLConfidenceInterval">SLConfidenceInterval <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLConfidenceInterval used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>ofMean</code></td><td><span class="sig">void ofMean(double mean, double stdDev, int n, double z, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>marginOfError</code></td><td><span class="sig">double marginOfError(double stdDev, int n, double z)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slconfidencelevel">SLConfidenceLevel <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLConfidenceLevel.sleela)</span></h2>
<div data-u="slconfidencelevel slconfidencelevel">
<h3 id="SLConfidenceLevel">SLConfidenceLevel <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLConfidenceLevel used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>criticalZ</code></td><td><span class="sig">double criticalZ(int percent)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>alpha</code></td><td><span class="sig">double alpha(int percent)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slconstant">SLConstant <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLConstant.sleela)</span></h2>
<div data-u="slconstant slconstant">
<h3 id="SLConstant">SLConstant <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLConstant used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>pi</code></td><td><span class="sig">double pi()</span></td><td class="desc">Named mathematical constants.</td></tr>
<tr><td><code>e</code></td><td><span class="sig">double e()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>goldenRatio</code></td><td><span class="sig">double goldenRatio()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sqrt2</code></td><td><span class="sig">double sqrt2()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>eulerGamma</code></td><td><span class="sig">double eulerGamma()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slconstraint">SLConstraint <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLConstraint.sleela)</span></h2>
<div data-u="slconstraint slconstraint">
<h3 id="SLConstraint">SLConstraint <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLConstraint used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>op</code></td><td><span class="sig">int op</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>rhs</code></td><td><span class="sig">double rhs</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int o, double r)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>lhs</code></td><td><span class="sig">double lhs(double[] coeffs, double[] x, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>satisfied</code></td><td><span class="sig">boolean satisfied(double[] coeffs, double[] x, int n, double tol)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slconvergence">SLConvergence <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLConvergence.sleela)</span></h2>
<div data-u="slconvergence slconvergence">
<h3 id="SLConvergence">SLConvergence <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLConvergence used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>absd</code></td><td><span class="sig">double absd(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>reached</code></td><td><span class="sig">boolean reached(double current, double previous, double tol)</span></td><td class="desc">Has a sequence converged: successive terms within tol?</td></tr>
<tr><td><code>rate</code></td><td><span class="sig">double rate(double e0, double e1, double e2)</span></td><td class="desc">Linear convergence rate estimate from three successive errors.</td></tr>
</table>
</div>
<h2 class="section" data-u="slcoordinate">SLCoordinate <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCoordinate.sleela)</span></h2>
<div data-u="slcoordinate slcoordinate">
<h3 id="SLCoordinate">SLCoordinate <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCoordinate used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>components</code></td><td><span class="sig">double[] components</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>dim</code></td><td><span class="sig">int dim</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int d)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setComponent</code></td><td><span class="sig">void setComponent(int i, double v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getComponent</code></td><td><span class="sig">double getComponent(int i)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getDim</code></td><td><span class="sig">int getDim()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slcoordinatedescent">SLCoordinateDescent <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCoordinateDescent.sleela)</span></h2>
<div data-u="slcoordinatedescent slcoordinatedescent">
<h3 id="SLCoordinateDescent">SLCoordinateDescent <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCoordinateDescent used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>coordinateStep</code></td><td><span class="sig">double coordinateStep(double x, double g, double h)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>nextCoordinate</code></td><td><span class="sig">int nextCoordinate(int current, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slcorrelation">SLCorrelation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCorrelation.sleela)</span></h2>
<div data-u="slcorrelation slcorrelation">
<h3 id="SLCorrelation">SLCorrelation <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCorrelation used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>pearson</code></td><td><span class="sig">double pearson(double[] xs, double[] ys, int n)</span></td><td class="desc">Pearson product-moment correlation coefficient in [-1, 1].</td></tr>
</table>
</div>
<h2 class="section" data-u="slcorrelationmatrix">SLCorrelationMatrix <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCorrelationMatrix.sleela)</span></h2>
<div data-u="slcorrelationmatrix slcorrelationmatrix">
<h3 id="SLCorrelationMatrix">SLCorrelationMatrix <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCorrelationMatrix used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>corr</code></td><td><span class="sig">double corr(double[] data, int n, int vi, int vj)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>build</code></td><td><span class="sig">void build(double[] data, int m, int n, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slcosine">SLCosine <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCosine.sleela)</span></h2>
<div data-u="slcosine slcosine">
<h3 id="SLCosine">SLCosine <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCosine used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>pi</code></td><td><span class="sig">double pi()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>reduce</code></td><td><span class="sig">double reduce(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sin</code></td><td><span class="sig">double sin(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cos</code></td><td><span class="sig">double cos(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slcovariance">SLCovariance <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCovariance.sleela)</span></h2>
<div data-u="slcovariance slcovariance">
<h3 id="SLCovariance">SLCovariance <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCovariance used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>population</code></td><td><span class="sig">double population(double[] xs, double[] ys, int n)</span></td><td class="desc">Population covariance of paired samples (divides by n).</td></tr>
<tr><td><code>sample</code></td><td><span class="sig">double sample(double[] xs, double[] ys, int n)</span></td><td class="desc">Sample covariance (divides by n-1).</td></tr>
</table>
</div>
<h2 class="section" data-u="slcovariancematrix">SLCovarianceMatrix <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCovarianceMatrix.sleela)</span></h2>
<div data-u="slcovariancematrix slcovariancematrix">
<h3 id="SLCovarianceMatrix">SLCovarianceMatrix <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCovarianceMatrix used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>cov</code></td><td><span class="sig">double cov(double[] data, int n, int vi, int vj)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>build</code></td><td><span class="sig">void build(double[] data, int m, int n, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slcrossproduct">SLCrossProduct <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCrossProduct.sleela)</span></h2>
<div data-u="slcrossproduct slcrossproduct">
<h3 id="SLCrossProduct">SLCrossProduct <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCrossProduct used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">void of(double[] a, double[] b, double[] out)</span></td><td class="desc">3D cross product a x b, written into `out` (length 3).</td></tr>
<tr><td><code>of2D</code></td><td><span class="sig">double of2D(double ax, double ay, double bx, double by)</span></td><td class="desc">The scalar magnitude of the 2D cross product.</td></tr>
</table>
</div>
<h2 class="section" data-u="slcubicspline">SLCubicSpline <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLCubicSpline.sleela)</span></h2>
<div data-u="slcubicspline slcubicspline">
<h3 id="SLCubicSpline">SLCubicSpline <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLCubicSpline used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>hermite</code></td><td><span class="sig">double hermite(double p0, double p1, double m0, double m1, double t)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sldatasummary">SLDataSummary <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLDataSummary.sleela)</span></h2>
<div data-u="sldatasummary sldatasummary">
<h3 id="SLDataSummary">SLDataSummary <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLDataSummary used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>summarize</code></td><td><span class="sig">void summarize(double[] xs, int n, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slderivative">SLDerivative <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLDerivative.sleela)</span></h2>
<div data-u="slderivative slderivative">
<h3 id="SLDerivative">SLDerivative <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLDerivative used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>central</code></td><td><span class="sig">double central(double[] xs, double[] ys, int i, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>forward</code></td><td><span class="sig">double forward(double[] xs, double[] ys, int i)</span></td><td class="desc">Forward difference at the left endpoint.</td></tr>
</table>
</div>
<h2 class="section" data-u="sldeterminant">SLDeterminant <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLDeterminant.sleela)</span></h2>
<div data-u="sldeterminant sldeterminant">
<h3 id="SLDeterminant">SLDeterminant <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLDeterminant used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double[] src, int n)</span></td><td class="desc">Determinant of an n x n row-major matrix via Gaussian elimination on a copy.</td></tr>
</table>
</div>
<h2 class="section" data-u="sldifference">SLDifference <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLDifference.sleela)</span></h2>
<div data-u="sldifference sldifference">
<h3 id="SLDifference">SLDifference <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLDifference used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>absolute</code></td><td><span class="sig">double absolute(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>forward</code></td><td><span class="sig">void forward(double[] xs, int n, double[] out)</span></td><td class="desc">Successive differences of a sequence written into out (length n-1).</td></tr>
</table>
</div>
<h2 class="section" data-u="sldimension">SLDimension <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLDimension.sleela)</span></h2>
<div data-u="sldimension sldimension">
<h3 id="SLDimension">SLDimension <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLDimension used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>value</code></td><td><span class="sig">int value</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(int d)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>get</code></td><td><span class="sig">int get()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isScalar</code></td><td><span class="sig">boolean isScalar()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isVector</code></td><td><span class="sig">boolean isVector()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>compatibleWith</code></td><td><span class="sig">boolean compatibleWith(SLDimension o)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sldiscretefourier">SLDiscreteFourier <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLDiscreteFourier.sleela)</span></h2>
<div data-u="sldiscretefourier sldiscretefourier">
<h3 id="SLDiscreteFourier">SLDiscreteFourier <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLDiscreteFourier used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>reduceAngle</code></td><td><span class="sig">double reduceAngle(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sinv</code></td><td><span class="sig">double sinv(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cosv</code></td><td><span class="sig">double cosv(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>forward</code></td><td><span class="sig">void forward(double[] signal, int n, double[] reOut, double[] imOut)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sldistance">SLDistance <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLDistance.sleela)</span></h2>
<div data-u="sldistance sldistance">
<h3 id="SLDistance">SLDistance <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLDistance used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>euclidean2D</code></td><td><span class="sig">double euclidean2D(double x1, double y1, double x2, double y2)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>euclidean3D</code></td><td><span class="sig">double euclidean3D(double x1, double y1, double z1, double x2, double y2, double z2)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>manhattan2D</code></td><td><span class="sig">double manhattan2D(double x1, double y1, double x2, double y2)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sldistribution">SLDistribution <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLDistribution.sleela)</span></h2>
<div data-u="sldistribution sldistribution">
<h3 id="SLDistribution">SLDistribution <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLDistribution used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean(double[] values, double[] probs, int n)</span></td><td class="desc">A generic discrete distribution over sampled outcome probabilities.</td></tr>
<tr><td><code>variance</code></td><td><span class="sig">double variance(double[] values, double[] probs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>normalized</code></td><td><span class="sig">boolean normalized(double[] probs, int n, double tol)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sldivisor">SLDivisor <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLDivisor.sleela)</span></h2>
<div data-u="sldivisor sldivisor">
<h3 id="SLDivisor">SLDivisor <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLDivisor used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>divisorCount</code></td><td><span class="sig">int divisorCount(int n)</span></td><td class="desc">The number of positive divisors of n.</td></tr>
<tr><td><code>divisorSum</code></td><td><span class="sig">int divisorSum(int n)</span></td><td class="desc">The sum of the positive divisors of n.</td></tr>
<tr><td><code>divides</code></td><td><span class="sig">boolean divides(int d, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sldotproduct">SLDotProduct <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLDotProduct.sleela)</span></h2>
<div data-u="sldotproduct sldotproduct">
<h3 id="SLDotProduct">SLDotProduct <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLDotProduct used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double[] a, double[] b, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sldoublemath">SLDoubleMath <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLDoubleMath.sleela)</span></h2>
<div data-u="sldoublemath sldoublemath">
<h3 id="SLDoubleMath">SLDoubleMath <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLDoubleMath used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>absD</code></td><td><span class="sig">double absD(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>hypot</code></td><td><span class="sig">double hypot(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>copySign</code></td><td><span class="sig">double copySign(double mag, double sgn)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sleigenvalue">SLEigenvalue <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLEigenvalue.sleela)</span></h2>
<div data-u="sleigenvalue sleigenvalue">
<h3 id="SLEigenvalue">SLEigenvalue <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLEigenvalue used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>of2x2</code></td><td><span class="sig">int of2x2(double a, double b, double c, double d, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>powerIteration</code></td><td><span class="sig">double powerIteration(double[] m, int n, double[] vec, int iters)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sleigenvector">SLEigenvector <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLEigenvector.sleela)</span></h2>
<div data-u="sleigenvector sleigenvector">
<h3 id="SLEigenvector">SLEigenvector <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLEigenvector used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>dominant</code></td><td><span class="sig">void dominant(double[] m, int n, double[] vec, int iters)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slequation">SLEquation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLEquation.sleela)</span></h2>
<div data-u="slequation slequation">
<h3 id="SLEquation">SLEquation <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLEquation used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>a</code></td><td><span class="sig">double a</span></td><td class="desc">A linear equation a x + b = 0 with a single root.</td></tr>
<tr><td><code>b</code></td><td><span class="sig">double b</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double pa, double pb)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>hasUniqueRoot</code></td><td><span class="sig">boolean hasUniqueRoot()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>root</code></td><td><span class="sig">double root()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>leftMinusRight</code></td><td><span class="sig">double leftMinusRight(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slerrorbound">SLErrorBound <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLErrorBound.sleela)</span></h2>
<div data-u="slerrorbound slerrorbound">
<h3 id="SLErrorBound">SLErrorBound <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLErrorBound used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>bound</code></td><td><span class="sig">double bound</span></td><td class="desc">Record and widen an error bound as a computation proceeds.</td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>absd</code></td><td><span class="sig">double absd(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>reset</code></td><td><span class="sig">void reset()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>observe</code></td><td><span class="sig">void observe(double err)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getBound</code></td><td><span class="sig">double getBound()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>acceptable</code></td><td><span class="sig">boolean acceptable(double tol)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slexpectation">SLExpectation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLExpectation.sleela)</span></h2>
<div data-u="slexpectation slexpectation">
<h3 id="SLExpectation">SLExpectation <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLExpectation used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double[] values, double[] probs, int n)</span></td><td class="desc">Expected value E[X] = sum(x_i * p_i); probabilities should sum to 1.</td></tr>
</table>
</div>
<h2 class="section" data-u="slexponential">SLExponential <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLExponential.sleela)</span></h2>
<div data-u="slexponential slexponential">
<h3 id="SLExponential">SLExponential <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLExponential used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>exp</code></td><td><span class="sig">double exp(double x)</span></td><td class="desc">e^x via a Taylor series; adequate for |x| within a modest range.</td></tr>
<tr><td><code>e</code></td><td><span class="sig">double e()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slexpression">SLExpression <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLExpression.sleela)</span></h2>
<div data-u="slexpression slexpression">
<h3 id="SLExpression">SLExpression <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLExpression used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>evaluatePostfix</code></td><td><span class="sig">double evaluatePostfix(int[] ops, double[] vals, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slexpressionevaluator">SLExpressionEvaluator <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLExpressionEvaluator.sleela)</span></h2>
<div data-u="slexpressionevaluator slexpressionevaluator">
<h3 id="SLExpressionEvaluator">SLExpressionEvaluator <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLExpressionEvaluator used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>evaluate</code></td><td><span class="sig">double evaluate(int[] ops, double[] vals, int n)</span></td><td class="desc">Evaluate a postfix token stream (op -1 = push vals[i], 0..3 = + - * /).</td></tr>
</table>
</div>
<h2 class="section" data-u="slexpressiontree">SLExpressionTree <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLExpressionTree.sleela)</span></h2>
<div data-u="slexpressiontree slexpressiontree">
<h3 id="SLExpressionTree">SLExpressionTree <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLExpressionTree used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>evaluate</code></td><td><span class="sig">double evaluate(int[] kind, double[] val, int[] left, int[] right, int node)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slfactor">SLFactor <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLFactor.sleela)</span></h2>
<div data-u="slfactor slfactor">
<h3 id="SLFactor">SLFactor <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLFactor used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>root</code></td><td><span class="sig">double root</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double r)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>evaluate</code></td><td><span class="sig">double evaluate(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getRoot</code></td><td><span class="sig">double getRoot()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slfactorial">SLFactorial <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLFactorial.sleela)</span></h2>
<div data-u="slfactorial slfactorial">
<h3 id="SLFactorial">SLFactorial <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLFactorial used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>compute</code></td><td><span class="sig">long compute(int n)</span></td><td class="desc">Factorial n! for nonnegative n, as a 64-bit long (exact through 20!).</td></tr>
<tr><td><code>falling</code></td><td><span class="sig">long falling(int n, int k)</span></td><td class="desc">Falling factorial n*(n-1)*...*(n-k+1).</td></tr>
</table>
</div>
<h2 class="section" data-u="slfastfourier">SLFastFourier <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLFastFourier.sleela)</span></h2>
<div data-u="slfastfourier slfastfourier">
<h3 id="SLFastFourier">SLFastFourier <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLFastFourier used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>reduceAngle</code></td><td><span class="sig">double reduceAngle(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sinv</code></td><td><span class="sig">double sinv(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cosv</code></td><td><span class="sig">double cosv(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isPowerOfTwo</code></td><td><span class="sig">boolean isPowerOfTwo(int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>transform</code></td><td><span class="sig">void transform(double[] re, double[] im, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slfibonacci">SLFibonacci <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLFibonacci.sleela)</span></h2>
<div data-u="slfibonacci slfibonacci">
<h3 id="SLFibonacci">SLFibonacci <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLFibonacci used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>compute</code></td><td><span class="sig">long compute(int n)</span></td><td class="desc">The n-th Fibonacci number (F0 = 0, F1 = 1), computed iteratively.</td></tr>
<tr><td><code>isFibonacci</code></td><td><span class="sig">boolean isFibonacci(long v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slfiniteset">SLFiniteSet <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLFiniteSet.sleela)</span></h2>
<div data-u="slfiniteset slfiniteset">
<h3 id="SLFiniteSet">SLFiniteSet <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLFiniteSet used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>members</code></td><td><span class="sig">int[] members</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>size</code></td><td><span class="sig">int size</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>capacity</code></td><td><span class="sig">int capacity</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int cap)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>contains</code></td><td><span class="sig">boolean contains(int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>add</code></td><td><span class="sig">boolean add(int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cardinality</code></td><td><span class="sig">int cardinality()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slfixedpoint">SLFixedPoint <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLFixedPoint.sleela)</span></h2>
<div data-u="slfixedpoint slfixedpoint">
<h3 id="SLFixedPoint">SLFixedPoint <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLFixedPoint used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>fracBits</code></td><td><span class="sig">int fracBits</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>raw</code></td><td><span class="sig">long raw</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int bits)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>fromDouble</code></td><td><span class="sig">void fromDouble(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>toDouble</code></td><td><span class="sig">double toDouble()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getRaw</code></td><td><span class="sig">long getRaw()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slfloatmath">SLFloatMath <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLFloatMath.sleela)</span></h2>
<div data-u="slfloatmath slfloatmath">
<h3 id="SLFloatMath">SLFloatMath <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLFloatMath used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>absF</code></td><td><span class="sig">double absF(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>epsilon</code></td><td><span class="sig">double epsilon()</span></td><td class="desc">Smallest resolvable gap near 1.0 for single precision.</td></tr>
<tr><td><code>roundTo</code></td><td><span class="sig">double roundTo(double x, int places)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slformula">SLFormula <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLFormula.sleela)</span></h2>
<div data-u="slformula slformula">
<h3 id="SLFormula">SLFormula <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLFormula used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>label</code></td><td><span class="sig">String label</span></td><td class="desc">A named formula stored as a postfix token stream plus a human label.</td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>name</code></td><td><span class="sig">void name(String l)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>formulaName</code></td><td><span class="sig">String formulaName()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>evaluate</code></td><td><span class="sig">double evaluate(int[] ops, double[] vals, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slformulaparser">SLFormulaParser <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLFormulaParser.sleela)</span></h2>
<div data-u="slformulaparser slformulaparser">
<h3 id="SLFormulaParser">SLFormulaParser <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLFormulaParser used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>tokenCount</code></td><td><span class="sig">int tokenCount</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>operandCount</code></td><td><span class="sig">int operandCount</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>operatorCount</code></td><td><span class="sig">int operatorCount</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>parse</code></td><td><span class="sig">void parse(String text, int length, int[] codes)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>charCodeAt</code></td><td><span class="sig">int charCodeAt(String s, int i)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getTokenCount</code></td><td><span class="sig">int getTokenCount()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slformulasimplifier">SLFormulaSimplifier <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLFormulaSimplifier.sleela)</span></h2>
<div data-u="slformulasimplifier slformulasimplifier">
<h3 id="SLFormulaSimplifier">SLFormulaSimplifier <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLFormulaSimplifier used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>simplifyLinear</code></td><td><span class="sig">void simplifyLinear(double a, double b, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isIdentityMultiplier</code></td><td><span class="sig">boolean isIdentityMultiplier(double a)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isAnnihilator</code></td><td><span class="sig">boolean isAnnihilator(double a)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slfourier">SLFourier <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLFourier.sleela)</span></h2>
<div data-u="slfourier slfourier">
<h3 id="SLFourier">SLFourier <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLFourier used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>reduceAngle</code></td><td><span class="sig">double reduceAngle(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sinv</code></td><td><span class="sig">double sinv(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cosv</code></td><td><span class="sig">double cosv(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>magnitude</code></td><td><span class="sig">void magnitude(double[] signal, int n, double[] magOut)</span></td><td class="desc">Magnitude spectrum of a real signal via the DFT: mag[k] = |X[k]|.</td></tr>
</table>
</div>
<h2 class="section" data-u="slfourierseries">SLFourierSeries <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLFourierSeries.sleela)</span></h2>
<div data-u="slfourierseries slfourierseries">
<h3 id="SLFourierSeries">SLFourierSeries <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLFourierSeries used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>reduceAngle</code></td><td><span class="sig">double reduceAngle(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sinv</code></td><td><span class="sig">double sinv(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cosv</code></td><td><span class="sig">double cosv(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>evaluate</code></td><td><span class="sig">double evaluate(double a0, double[] a, double[] b, int terms, double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slfunction">SLFunction <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLFunction.sleela)</span></h2>
<div data-u="slfunction slfunction">
<h3 id="SLFunction">SLFunction <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLFunction used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>evaluate</code></td><td><span class="sig">double evaluate(double[] xs, double[] ys, int n, double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slgcd">SLGcd <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLGcd.sleela)</span></h2>
<div data-u="slgcd slgcd">
<h3 id="SLGcd">SLGcd <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLGcd used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>compute</code></td><td><span class="sig">int compute(int a, int b)</span></td><td class="desc">Greatest common divisor by the Euclidean algorithm.</td></tr>
<tr><td><code>coprime</code></td><td><span class="sig">boolean coprime(int a, int b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slgeometry">SLGeometry <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLGeometry.sleela)</span></h2>
<div data-u="slgeometry slgeometry">
<h3 id="SLGeometry">SLGeometry <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLGeometry used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>triangleArea</code></td><td><span class="sig">double triangleArea(double x1, double y1, double x2, double y2, double x3, double y3)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>circleArea</code></td><td><span class="sig">double circleArea(double r)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>circleCircumference</code></td><td><span class="sig">double circleCircumference(double r)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>polygonPerimeter</code></td><td><span class="sig">double polygonPerimeter(double[] xs, double[] ys, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>polygonArea</code></td><td><span class="sig">double polygonArea(double[] xs, double[] ys, int n)</span></td><td class="desc">Signed polygon area via the shoelace formula (absolute value returned).</td></tr>
</table>
</div>
<h2 class="section" data-u="slgradient">SLGradient <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLGradient.sleela)</span></h2>
<div data-u="slgradient slgradient">
<h3 id="SLGradient">SLGradient <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLGradient used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>compute</code></td><td><span class="sig">void compute(double[] fPlus, double[] fMinus, int dims, double h, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slgradientdescent">SLGradientDescent <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLGradientDescent.sleela)</span></h2>
<div data-u="slgradientdescent slgradientdescent">
<h3 id="SLGradientDescent">SLGradientDescent <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLGradientDescent used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>step</code></td><td><span class="sig">void step(double[] x, double[] grad, double rate, int n)</span></td><td class="desc">One gradient-descent parameter update x := x - rate * grad, elementwise.</td></tr>
<tr><td><code>scalarStep</code></td><td><span class="sig">double scalarStep(double x, double grad, double rate)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slgradientfield">SLGradientField <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLGradientField.sleela)</span></h2>
<div data-u="slgradientfield slgradientfield">
<h3 id="SLGradientField">SLGradientField <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLGradientField used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>w</code></td><td><span class="sig">int w</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>h</code></td><td><span class="sig">int h</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int width, int height)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>gradientAt</code></td><td><span class="sig">void gradientAt(double[] f, int x, int y, double spacing, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slgraph">SLGraph <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLGraph.sleela)</span></h2>
<div data-u="slgraph slgraph">
<h3 id="SLGraph">SLGraph <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLGraph used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>n</code></td><td><span class="sig">int n</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int size)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>reachableCount</code></td><td><span class="sig">int reachableCount(double[] adj, int source)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>connected</code></td><td><span class="sig">boolean connected(double[] adj)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slgraphedge">SLGraphEdge <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLGraphEdge.sleela)</span></h2>
<div data-u="slgraphedge slgraphedge">
<h3 id="SLGraphEdge">SLGraphEdge <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLGraphEdge used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>from</code></td><td><span class="sig">int from</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>to</code></td><td><span class="sig">int to</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>weight</code></td><td><span class="sig">double weight</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(int u, int v, double w)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getFrom</code></td><td><span class="sig">int getFrom()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getTo</code></td><td><span class="sig">int getTo()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getWeight</code></td><td><span class="sig">double getWeight()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>connects</code></td><td><span class="sig">boolean connects(int a, int b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slgraphnode">SLGraphNode <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLGraphNode.sleela)</span></h2>
<div data-u="slgraphnode slgraphnode">
<h3 id="SLGraphNode">SLGraphNode <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLGraphNode used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>id</code></td><td><span class="sig">int id</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>degree</code></td><td><span class="sig">int degree</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int nodeId)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>incrementDegree</code></td><td><span class="sig">void incrementDegree()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getId</code></td><td><span class="sig">int getId()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getDegree</code></td><td><span class="sig">int getDegree()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slhessian">SLHessian <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLHessian.sleela)</span></h2>
<div data-u="slhessian slhessian">
<h3 id="SLHessian">SLHessian <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLHessian used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>build</code></td><td><span class="sig">void build(double fxx, double fyy, double fxy, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>determinant</code></td><td><span class="sig">double determinant(double fxx, double fyy, double fxy)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>classify</code></td><td><span class="sig">int classify(double fxx, double fyy, double fxy)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slhistogram">SLHistogram <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLHistogram.sleela)</span></h2>
<div data-u="slhistogram slhistogram">
<h3 id="SLHistogram">SLHistogram <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLHistogram used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>build</code></td><td><span class="sig">void build(double[] xs, int n, double lo, double hi, int bins, int[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slhypothesistest">SLHypothesisTest <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLHypothesisTest.sleela)</span></h2>
<div data-u="slhypothesistest slhypothesistest">
<h3 id="SLHypothesisTest">SLHypothesisTest <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLHypothesisTest used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>zStatistic</code></td><td><span class="sig">double zStatistic(double sampleMean, double mu0, double sigma, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>rejectTwoSided</code></td><td><span class="sig">boolean rejectTwoSided(double z, double critical)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slinequality">SLInequality <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLInequality.sleela)</span></h2>
<div data-u="slinequality slinequality">
<h3 id="SLInequality">SLInequality <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLInequality used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>a</code></td><td><span class="sig">double a</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>b</code></td><td><span class="sig">double b</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>op</code></td><td><span class="sig">int op</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double pa, double pb, int o)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>satisfies</code></td><td><span class="sig">boolean satisfies(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slinfiniteset">SLInfiniteSet <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLInfiniteSet.sleela)</span></h2>
<div data-u="slinfiniteset slinfiniteset">
<h3 id="SLInfiniteSet">SLInfiniteSet <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLInfiniteSet used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>kind</code></td><td><span class="sig">int kind</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int k)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>contains</code></td><td><span class="sig">boolean contains(int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>countable</code></td><td><span class="sig">boolean countable()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slintegermath">SLIntegerMath <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLIntegerMath.sleela)</span></h2>
<div data-u="slintegermath slintegermath">
<h3 id="SLIntegerMath">SLIntegerMath <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLIntegerMath used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>add</code></td><td><span class="sig">long add(long a, long b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>multiply</code></td><td><span class="sig">long multiply(long a, long b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>gcd</code></td><td><span class="sig">long gcd(long a, long b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>pow</code></td><td><span class="sig">long pow(long base, int exp)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isEven</code></td><td><span class="sig">boolean isEven(long v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slintegral">SLIntegral <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLIntegral.sleela)</span></h2>
<div data-u="slintegral slintegral">
<h3 id="SLIntegral">SLIntegral <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLIntegral used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>trapezoid</code></td><td><span class="sig">double trapezoid(double[] xs, double[] ys, int n)</span></td><td class="desc">Definite integral of a sampled function by the trapezoidal rule.</td></tr>
</table>
</div>
<h2 class="section" data-u="slinterpolation">SLInterpolation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLInterpolation.sleela)</span></h2>
<div data-u="slinterpolation slinterpolation">
<h3 id="SLInterpolation">SLInterpolation <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLInterpolation used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>linear</code></td><td><span class="sig">double linear(double x0, double y0, double x1, double y1, double x)</span></td><td class="desc">Linear interpolation between (x0,y0) and (x1,y1) at x.</td></tr>
<tr><td><code>lerp</code></td><td><span class="sig">double lerp(double a, double b, double t)</span></td><td class="desc">Normalized linear blend: (1-t)*a + t*b.</td></tr>
</table>
</div>
<h2 class="section" data-u="slinterpolationtable">SLInterpolationTable <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLInterpolationTable.sleela)</span></h2>
<div data-u="slinterpolationtable slinterpolationtable">
<h3 id="SLInterpolationTable">SLInterpolationTable <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLInterpolationTable used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>rows</code></td><td><span class="sig">int rows</span></td><td class="desc">A sorted table lookup with linear interpolation between bracketing rows.</td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>setRows</code></td><td><span class="sig">void setRows(int r)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getRows</code></td><td><span class="sig">int getRows()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>lookup</code></td><td><span class="sig">double lookup(double[] xs, double[] ys, int n, double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slintersection">SLIntersection <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLIntersection.sleela)</span></h2>
<div data-u="slintersection slintersection">
<h3 id="SLIntersection">SLIntersection <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLIntersection used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>contains</code></td><td><span class="sig">boolean contains(int[] a, int na, int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>of</code></td><td><span class="sig">int of(int[] a, int na, int[] b, int nb, int[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slinterval">SLInterval <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLInterval.sleela)</span></h2>
<div data-u="slinterval slinterval">
<h3 id="SLInterval">SLInterval <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLInterval used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>lo</code></td><td><span class="sig">double lo</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>hi</code></td><td><span class="sig">double hi</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>contains</code></td><td><span class="sig">boolean contains(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>width</code></td><td><span class="sig">double width()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>midpoint</code></td><td><span class="sig">double midpoint()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>overlaps</code></td><td><span class="sig">boolean overlaps(SLInterval o)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slintervalarithmetic">SLIntervalArithmetic <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLIntervalArithmetic.sleela)</span></h2>
<div data-u="slintervalarithmetic slintervalarithmetic">
<h3 id="SLIntervalArithmetic">SLIntervalArithmetic <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLIntervalArithmetic used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>add</code></td><td><span class="sig">void add(double aLo, double aHi, double bLo, double bHi, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>multiply</code></td><td><span class="sig">void multiply(double aLo, double aHi, double bLo, double bHi, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slinverse">SLInverse <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLInverse.sleela)</span></h2>
<div data-u="slinverse slinverse">
<h3 id="SLInverse">SLInverse <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLInverse used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">boolean of(double[] src, double[] inv, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sliteration">SLIteration <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLIteration.sleela)</span></h2>
<div data-u="sliteration sliteration">
<h3 id="SLIteration">SLIteration <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLIteration used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>count</code></td><td><span class="sig">int count</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>limit</code></td><td><span class="sig">int limit</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int maxIterations)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>next</code></td><td><span class="sig">boolean next()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getCount</code></td><td><span class="sig">int getCount()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>resetCount</code></td><td><span class="sig">void resetCount()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sljacobian">SLJacobian <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLJacobian.sleela)</span></h2>
<div data-u="sljacobian sljacobian">
<h3 id="SLJacobian">SLJacobian <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLJacobian used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>build</code></td><td><span class="sig">void build(double[] fPlus, double[] fMinus, int m, int n, double h, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slkurtosis">SLKurtosis <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLKurtosis.sleela)</span></h2>
<div data-u="slkurtosis slkurtosis">
<h3 id="SLKurtosis">SLKurtosis <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLKurtosis used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double[] xs, int n)</span></td><td class="desc">Excess kurtosis: m4 / m2^2 - 3.</td></tr>
</table>
</div>
<h2 class="section" data-u="sllagrangeinterpolation">SLLagrangeInterpolation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLLagrangeInterpolation.sleela)</span></h2>
<div data-u="sllagrangeinterpolation sllagrangeinterpolation">
<h3 id="SLLagrangeInterpolation">SLLagrangeInterpolation <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLLagrangeInterpolation used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>evaluate</code></td><td><span class="sig">double evaluate(double[] xs, double[] ys, int n, double x)</span></td><td class="desc">Lagrange interpolating polynomial evaluated at x, through n sample points.</td></tr>
</table>
</div>
<h2 class="section" data-u="sllambda">SLLambda <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLLambda.sleela)</span></h2>
<div data-u="sllambda sllambda">
<h3 id="SLLambda">SLLambda <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLLambda used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>scale</code></td><td><span class="sig">double scale</span></td><td class="desc">An affine lambda x -> scale*x + offset; compose combines two lambdas.</td></tr>
<tr><td><code>offset</code></td><td><span class="sig">double offset</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double s, double o)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>apply</code></td><td><span class="sig">double apply(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>composeAfter</code></td><td><span class="sig">void composeAfter(SLLambda g, SLLambda out)</span></td><td class="desc">Compose this after g (this(g(x))), writing the result lambda into out.</td></tr>
</table>
</div>
<h2 class="section" data-u="sllaplace">SLLaplace <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLLaplace.sleela)</span></h2>
<div data-u="sllaplace sllaplace">
<h3 id="SLLaplace">SLLaplace <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLLaplace used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>reduceAngle</code></td><td><span class="sig">double reduceAngle(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sinv</code></td><td><span class="sig">double sinv(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cosv</code></td><td><span class="sig">double cosv(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>expNeg</code></td><td><span class="sig">double expNeg(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>transform</code></td><td><span class="sig">double transform(double[] f, int n, double dt, double s)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sllcm">SLLcm <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLLcm.sleela)</span></h2>
<div data-u="sllcm sllcm">
<h3 id="SLLcm">SLLcm <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLLcm used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>gcd</code></td><td><span class="sig">int gcd(int a, int b)</span></td><td class="desc">Least common multiple via gcd: lcm(a,b) = |a*b| / gcd(a,b).</td></tr>
<tr><td><code>compute</code></td><td><span class="sig">int compute(int a, int b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slleastsquares">SLLeastSquares <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLLeastSquares.sleela)</span></h2>
<div data-u="slleastsquares slleastsquares">
<h3 id="SLLeastSquares">SLLeastSquares <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLLeastSquares used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>fit</code></td><td><span class="sig">void fit(double[] xs, double[] ys, int n, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sllimit">SLLimit <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLLimit.sleela)</span></h2>
<div data-u="sllimit sllimit">
<h3 id="SLLimit">SLLimit <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLLimit used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>estimate</code></td><td><span class="sig">double estimate(double[] samples, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>converging</code></td><td><span class="sig">boolean converging(double[] samples, int n, double tol)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slline">SLLine <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLLine.sleela)</span></h2>
<div data-u="slline slline">
<h3 id="SLLine">SLLine <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLLine used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>slope</code></td><td><span class="sig">double slope</span></td><td class="desc">A line in slope-intercept form y = m x + b, with a vertical flag.</td></tr>
<tr><td><code>intercept</code></td><td><span class="sig">double intercept</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>vertical</code></td><td><span class="sig">boolean vertical</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>fromPoints</code></td><td><span class="sig">void fromPoints(double x1, double y1, double x2, double y2)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>at</code></td><td><span class="sig">double at(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>parallelTo</code></td><td><span class="sig">boolean parallelTo(SLLine o)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getSlope</code></td><td><span class="sig">double getSlope()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sllinearalgebra">SLLinearAlgebra <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLLinearAlgebra.sleela)</span></h2>
<div data-u="sllinearalgebra sllinearalgebra">
<h3 id="SLLinearAlgebra">SLLinearAlgebra <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLLinearAlgebra used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>matVec</code></td><td><span class="sig">void matVec(double[] a, double[] x, double[] y, int r, int c)</span></td><td class="desc">Matrix-vector product y = A(r x c) * x.</td></tr>
<tr><td><code>trace</code></td><td><span class="sig">double trace(double[] a, int n)</span></td><td class="desc">Trace of an n x n matrix (sum of the diagonal).</td></tr>
</table>
</div>
<h2 class="section" data-u="sllinearprogram">SLLinearProgram <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLLinearProgram.sleela)</span></h2>
<div data-u="sllinearprogram sllinearprogram">
<h3 id="SLLinearProgram">SLLinearProgram <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLLinearProgram used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>objective</code></td><td><span class="sig">double objective(double[] c, double[] x, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>feasible</code></td><td><span class="sig">boolean feasible(double[] a, double[] b, double[] x, int m, int n, double tol)</span></td><td class="desc">Feasible if A x <= b for all m rows (A row-major m x n).</td></tr>
</table>
</div>
<h2 class="section" data-u="sllinearregression">SLLinearRegression <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLLinearRegression.sleela)</span></h2>
<div data-u="sllinearregression sllinearregression">
<h3 id="SLLinearRegression">SLLinearRegression <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLLinearRegression used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>slope</code></td><td><span class="sig">double slope</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>intercept</code></td><td><span class="sig">double intercept</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>fit</code></td><td><span class="sig">void fit(double[] xs, double[] ys, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>predict</code></td><td><span class="sig">double predict(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getSlope</code></td><td><span class="sig">double getSlope()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getIntercept</code></td><td><span class="sig">double getIntercept()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sllogarithm">SLLogarithm <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLLogarithm.sleela)</span></h2>
<div data-u="sllogarithm sllogarithm">
<h3 id="SLLogarithm">SLLogarithm <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLLogarithm used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>ln</code></td><td><span class="sig">double ln(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>logBase</code></td><td><span class="sig">double logBase(double x, double b)</span></td><td class="desc">Logarithm of x in an arbitrary base b: ln(x)/ln(b).</td></tr>
</table>
</div>
<h2 class="section" data-u="sllongmath">SLLongMath <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLLongMath.sleela)</span></h2>
<div data-u="sllongmath sllongmath">
<h3 id="SLLongMath">SLLongMath <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLLongMath used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>maxVal</code></td><td><span class="sig">long maxVal()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>clampAdd</code></td><td><span class="sig">long clampAdd(long a, long b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>absL</code></td><td><span class="sig">long absL(long v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sign</code></td><td><span class="sig">long sign(long v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slltangent">SLLTangent <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLLTangent.sleela)</span></h2>
<div data-u="slltangent slltangent">
<h3 id="SLLTangent">SLLTangent <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLLTangent used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>slope</code></td><td><span class="sig">double slope</span></td><td class="desc">A line tangent to a curve at a point: slope m through (x0, y0).</td></tr>
<tr><td><code>x0</code></td><td><span class="sig">double x0</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>y0</code></td><td><span class="sig">double y0</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double m, double px, double py)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>at</code></td><td><span class="sig">double at(double x)</span></td><td class="desc">Evaluate the tangent line y = y0 + m (x - x0).</td></tr>
<tr><td><code>getSlope</code></td><td><span class="sig">double getSlope()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmachineepsilon">SLMachineEpsilon <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMachineEpsilon.sleela)</span></h2>
<div data-u="slmachineepsilon slmachineepsilon">
<h3 id="SLMachineEpsilon">SLMachineEpsilon <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMachineEpsilon used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>compute</code></td><td><span class="sig">double compute()</span></td><td class="desc">Compute machine epsilon for double precision by halving until 1 + e == 1.</td></tr>
<tr><td><code>doubleValue</code></td><td><span class="sig">double doubleValue()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmarkovchain">SLMarkovChain <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMarkovChain.sleela)</span></h2>
<div data-u="slmarkovchain slmarkovchain">
<h3 id="SLMarkovChain">SLMarkovChain <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMarkovChain used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>n</code></td><td><span class="sig">int n</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int states)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>step</code></td><td><span class="sig">void step(double[] dist, double[] p, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>rowStochastic</code></td><td><span class="sig">boolean rowStochastic(double[] p, double tol)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmath">SLMath <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMath.sleela)</span></h2>
<div data-u="slmath slmath">
<h3 id="SLMath">SLMath <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMath used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>pi</code></td><td><span class="sig">double pi()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>e</code></td><td><span class="sig">double e()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>absD</code></td><td><span class="sig">double absD(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>maxD</code></td><td><span class="sig">double maxD(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>minD</code></td><td><span class="sig">double minD(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>hypot</code></td><td><span class="sig">double hypot(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmathcontext">SLMathContext <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMathContext.sleela)</span></h2>
<div data-u="slmathcontext slmathcontext">
<h3 id="SLMathContext">SLMathContext <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMathContext used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>precision</code></td><td><span class="sig">int precision</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>roundingMode</code></td><td><span class="sig">int roundingMode</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int digits, int mode)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getPrecision</code></td><td><span class="sig">int getPrecision()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getRoundingMode</code></td><td><span class="sig">int getRoundingMode()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>round</code></td><td><span class="sig">double round(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmathengine">SLMathEngine <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMathEngine.sleela)</span></h2>
<div data-u="slmathengine slmathengine">
<h3 id="SLMathEngine">SLMathEngine <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMathEngine used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>apply</code></td><td><span class="sig">double apply(int op, double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmathevaluator">SLMathEvaluator <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMathEvaluator.sleela)</span></h2>
<div data-u="slmathevaluator slmathevaluator">
<h3 id="SLMathEvaluator">SLMathEvaluator <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMathEvaluator used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>evaluate</code></td><td><span class="sig">double evaluate(int[] ops, double[] vals, int n)</span></td><td class="desc">Evaluate a postfix token stream (op -1 pushes vals[i], 0..3 = + - * /).</td></tr>
</table>
</div>
<h2 class="section" data-u="slmathnorms">SLMathNorms <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMathNorms.sleela)</span></h2>
<div data-u="slmathnorms slmathnorms">
<h3 id="SLMathNorms">SLMathNorms <span class="pill">class</span></h3>
<p class="desc">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.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>DEFAULT_IRRATIONAL_CARRY</code></td><td><span class="sig">static final int DEFAULT_IRRATIONAL_CARRY = 2048</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>DEFAULT_REPEATING_CARRY</code></td><td><span class="sig">static final int DEFAULT_REPEATING_CARRY = 58</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>DEFAULT_FINANCE_CARRY</code></td><td><span class="sig">static final int DEFAULT_FINANCE_CARRY = 1023</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>FINANCE_CARRY_FLOOR</code></td><td><span class="sig">static final int FINANCE_CARRY_FLOOR = 1023</span></td><td class="desc">The hard floor below which a Finance Verb must not be configured.</td></tr>
<tr><td><code>irrationalCarry</code></td><td><span class="sig">int irrationalCarry</span></td><td class="desc">Live values, seeded from the defaults, overridable at runtime via setters.</td></tr>
<tr><td><code>repeatingCarry</code></td><td><span class="sig">int repeatingCarry</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>financeCarry</code></td><td><span class="sig">int financeCarry</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>initDefaults</code></td><td><span class="sig">void initDefaults()</span></td><td class="desc">Start from the compiled defaults.</td></tr>
<tr><td><code>getIrrationalCarry</code></td><td><span class="sig">int getIrrationalCarry()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getRepeatingCarry</code></td><td><span class="sig">int getRepeatingCarry()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getFinanceCarry</code></td><td><span class="sig">int getFinanceCarry()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setIrrationalCarry</code></td><td><span class="sig">void setIrrationalCarry(int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setRepeatingCarry</code></td><td><span class="sig">void setRepeatingCarry(int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setFinanceCarry</code></td><td><span class="sig">boolean setFinanceCarry(int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>financeCarryValid</code></td><td><span class="sig">boolean financeCarryValid()</span></td><td class="desc">Is the current finance carry valid (at or above the floor)?</td></tr>
<tr><td><code>financeFloor</code></td><td><span class="sig">int financeFloor()</span></td><td class="desc">The hard floor for finance carry, reachable without instance-static access.</td></tr>
<tr><td><code>available</code></td><td><span class="sig">boolean available()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmatrix">SLMatrix <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMatrix.sleela)</span></h2>
<div data-u="slmatrix slmatrix">
<h3 id="SLMatrix">SLMatrix <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMatrix used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>rows</code></td><td><span class="sig">int rows</span></td><td class="desc">Row-major dense matrix stored as a flat double[] of length rows*cols.</td></tr>
<tr><td><code>cols</code></td><td><span class="sig">int cols</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>shape</code></td><td><span class="sig">void shape(int r, int c)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>at</code></td><td><span class="sig">double at(double[] m, int r, int c)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>put</code></td><td><span class="sig">void put(double[] m, int r, int c, double v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getRows</code></td><td><span class="sig">int getRows()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getCols</code></td><td><span class="sig">int getCols()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>identity</code></td><td><span class="sig">void identity(double[] m, int n)</span></td><td class="desc">Identity matrix of order n written into `m`.</td></tr>
</table>
</div>
<h2 class="section" data-u="slmatrixoperations">SLMatrixOperations <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMatrixOperations.sleela)</span></h2>
<div data-u="slmatrixoperations slmatrixoperations">
<h3 id="SLMatrixOperations">SLMatrixOperations <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMatrixOperations used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>multiply</code></td><td><span class="sig">void multiply(double[] a, double[] b, double[] c, int ra, int ca, int cb)</span></td><td class="desc">Matrix product C = A(ra x ca) * B(ca x cb), all row-major flat arrays.</td></tr>
<tr><td><code>add</code></td><td><span class="sig">void add(double[] a, double[] b, double[] c, int r, int cc)</span></td><td class="desc">Elementwise sum C = A + B for r x c matrices.</td></tr>
<tr><td><code>scale</code></td><td><span class="sig">void scale(double[] a, double s, double[] c, int r, int cc)</span></td><td class="desc">Scalar multiply.</td></tr>
</table>
</div>
<h2 class="section" data-u="slmax">SLMax <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMax.sleela)</span></h2>
<div data-u="slmax slmax">
<h3 id="SLMax">SLMax <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMax used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>ofInt</code></td><td><span class="sig">int ofInt(int a, int b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>ofArray</code></td><td><span class="sig">double ofArray(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmean">SLMean <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMean.sleela)</span></h2>
<div data-u="slmean slmean">
<h3 id="SLMean">SLMean <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMean used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>arithmetic</code></td><td><span class="sig">double arithmetic(double[] xs, int n)</span></td><td class="desc">Arithmetic mean of the first n elements.</td></tr>
<tr><td><code>harmonic</code></td><td><span class="sig">double harmonic(double[] xs, int n)</span></td><td class="desc">Harmonic mean (all elements must be nonzero).</td></tr>
</table>
</div>
<h2 class="section" data-u="slmedian">SLMedian <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMedian.sleela)</span></h2>
<div data-u="slmedian slmedian">
<h3 id="SLMedian">SLMedian <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMedian used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double[] a, int n)</span></td><td class="desc">Median of a copy of the data (values are sorted in place in `a`).</td></tr>
<tr><td><code>sortInPlace</code></td><td><span class="sig">void sortInPlace(double[] a, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmetric">SLMetric <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMetric.sleela)</span></h2>
<div data-u="slmetric slmetric">
<h3 id="SLMetric">SLMetric <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMetric used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>euclidean</code></td><td><span class="sig">double euclidean(double[] a, double[] b, int n)</span></td><td class="desc">Distance metrics between two n-vectors: Euclidean, Manhattan, Chebyshev.</td></tr>
<tr><td><code>manhattan</code></td><td><span class="sig">double manhattan(double[] a, double[] b, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>chebyshev</code></td><td><span class="sig">double chebyshev(double[] a, double[] b, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmin">SLMin <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMin.sleela)</span></h2>
<div data-u="slmin slmin">
<h3 id="SLMin">SLMin <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMin used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>ofInt</code></td><td><span class="sig">int ofInt(int a, int b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>ofArray</code></td><td><span class="sig">double ofArray(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmode">SLMode <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMode.sleela)</span></h2>
<div data-u="slmode slmode">
<h3 id="SLMode">SLMode <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMode used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double[] xs, int n)</span></td><td class="desc">The most frequent value (first-seen wins on ties). O(n^2), copy-free.</td></tr>
</table>
</div>
<h2 class="section" data-u="slmodulo">SLModulo <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLModulo.sleela)</span></h2>
<div data-u="slmodulo slmodulo">
<h3 id="SLModulo">SLModulo <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLModulo used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>mod</code></td><td><span class="sig">int mod(int a, int m)</span></td><td class="desc">Euclidean remainder that is always in [0, m) for positive m.</td></tr>
<tr><td><code>powMod</code></td><td><span class="sig">long powMod(long base, long exp, long m)</span></td><td class="desc">Modular exponentiation of base to the power exp, modulo m, for nonnegative exp.</td></tr>
</table>
</div>
<h2 class="section" data-u="slmoment">SLMoment <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMoment.sleela)</span></h2>
<div data-u="slmoment slmoment">
<h3 id="SLMoment">SLMoment <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMoment used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>raw</code></td><td><span class="sig">double raw(double[] xs, int n, int k)</span></td><td class="desc">The k-th raw moment about the origin: E[X^k].</td></tr>
<tr><td><code>central</code></td><td><span class="sig">double central(double[] xs, int n, int k)</span></td><td class="desc">The k-th central moment about the mean.</td></tr>
</table>
</div>
<h2 class="section" data-u="slmontecarlo">SLMonteCarlo <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMonteCarlo.sleela)</span></h2>
<div data-u="slmontecarlo slmontecarlo">
<h3 id="SLMonteCarlo">SLMonteCarlo <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMonteCarlo used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>estimate</code></td><td><span class="sig">double estimate(double[] samples, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>estimatePi</code></td><td><span class="sig">double estimatePi(int inside, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slmontecarlosampler">SLMonteCarloSampler <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLMonteCarloSampler.sleela)</span></h2>
<div data-u="slmontecarlosampler slmontecarlosampler">
<h3 id="SLMonteCarloSampler">SLMonteCarloSampler <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLMonteCarloSampler used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>state</code></td><td><span class="sig">long state</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>seed</code></td><td><span class="sig">void seed(long s)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>nextUniform</code></td><td><span class="sig">double nextUniform(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sample</code></td><td><span class="sig">void sample(double a, double b, int n, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slnewtoninterpolation">SLNewtonInterpolation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNewtonInterpolation.sleela)</span></h2>
<div data-u="slnewtoninterpolation slnewtoninterpolation">
<h3 id="SLNewtonInterpolation">SLNewtonInterpolation <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNewtonInterpolation used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>evaluate</code></td><td><span class="sig">double evaluate(double[] xs, double[] ysIn, int n, double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slnewtonmethod">SLNewtonMethod <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNewtonMethod.sleela)</span></h2>
<div data-u="slnewtonmethod slnewtonmethod">
<h3 id="SLNewtonMethod">SLNewtonMethod <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNewtonMethod used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>step</code></td><td><span class="sig">double step(double x, double fx, double dfx)</span></td><td class="desc">One Newton-Raphson update step: x minus f(x) divided by its derivative.</td></tr>
</table>
</div>
<h2 class="section" data-u="slnewtonoptimization">SLNewtonOptimization <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNewtonOptimization.sleela)</span></h2>
<div data-u="slnewtonoptimization slnewtonoptimization">
<h3 id="SLNewtonOptimization">SLNewtonOptimization <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNewtonOptimization used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>step</code></td><td><span class="sig">double step(double x, double gradient, double hessian)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isMinimum</code></td><td><span class="sig">boolean isMinimum(double hessian)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slnewtonsolver">SLNewtonSolver <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNewtonSolver.sleela)</span></h2>
<div data-u="slnewtonsolver slnewtonsolver">
<h3 id="SLNewtonSolver">SLNewtonSolver <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNewtonSolver used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>step</code></td><td><span class="sig">double step(double x, double fx, double dfx)</span></td><td class="desc">One Newton-Raphson update step toward a root of f.</td></tr>
<tr><td><code>converged</code></td><td><span class="sig">boolean converged(double xNew, double xOld, double tol)</span></td><td class="desc">Has the iterate converged within tol?</td></tr>
</table>
</div>
<h2 class="section" data-u="slnormaldistribution">SLNormalDistribution <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNormalDistribution.sleela)</span></h2>
<div data-u="slnormaldistribution slnormaldistribution">
<h3 id="SLNormalDistribution">SLNormalDistribution <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNormalDistribution used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>stdDev</code></td><td><span class="sig">double stdDev</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>expf</code></td><td><span class="sig">double expf(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(double m, double s)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>pdf</code></td><td><span class="sig">double pdf(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cdf</code></td><td><span class="sig">double cdf(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slnumber">SLNumber <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNumber.sleela)</span></h2>
<div data-u="slnumber slnumber">
<h3 id="SLNumber">SLNumber <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNumber used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>kind</code></td><td><span class="sig">int kind</span></td><td class="desc">A tagged numeric value: kind 0 = integer (long), 1 = real (double).</td></tr>
<tr><td><code>ival</code></td><td><span class="sig">long ival</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>dval</code></td><td><span class="sig">double dval</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>setInt</code></td><td><span class="sig">void setInt(long v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setReal</code></td><td><span class="sig">void setReal(double v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>asDouble</code></td><td><span class="sig">double asDouble()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isInteger</code></td><td><span class="sig">boolean isInteger()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slnumeric">SLNumeric <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNumeric.sleela)</span></h2>
<div data-u="slnumeric slnumeric">
<h3 id="SLNumeric">SLNumeric <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNumeric used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>value</code></td><td><span class="sig">double value</span></td><td class="desc">A numeric wrapper exposing common predicates over a double value.</td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>get</code></td><td><span class="sig">double get()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isZero</code></td><td><span class="sig">boolean isZero()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isPositive</code></td><td><span class="sig">boolean isPositive()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isNegative</code></td><td><span class="sig">boolean isNegative()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isInteger</code></td><td><span class="sig">boolean isInteger()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slnumericalderivative">SLNumericalDerivative <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNumericalDerivative.sleela)</span></h2>
<div data-u="slnumericalderivative slnumericalderivative">
<h3 id="SLNumericalDerivative">SLNumericalDerivative <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNumericalDerivative used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>derivative</code></td><td><span class="sig">double derivative(double yPrev, double yNext, double h)</span></td><td class="desc">Three-point central difference using a step h about sampled triplet.</td></tr>
<tr><td><code>secondDerivative</code></td><td><span class="sig">double secondDerivative(double yPrev, double yMid, double yNext, double h)</span></td><td class="desc">Second derivative via the standard three-point stencil.</td></tr>
</table>
</div>
<h2 class="section" data-u="slnumericalintegration">SLNumericalIntegration <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNumericalIntegration.sleela)</span></h2>
<div data-u="slnumericalintegration slnumericalintegration">
<h3 id="SLNumericalIntegration">SLNumericalIntegration <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNumericalIntegration used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>trapezoid</code></td><td><span class="sig">double trapezoid(double[] ys, double a, double b, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>simpson</code></td><td><span class="sig">double simpson(double[] ys, double a, double b, int n)</span></td><td class="desc">Composite Simpson rule (n must be even), sampled ys length n+1.</td></tr>
</table>
</div>
<h2 class="section" data-u="slnumericalmath">SLNumericalMath <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNumericalMath.sleela)</span></h2>
<div data-u="slnumericalmath slnumericalmath">
<h3 id="SLNumericalMath">SLNumericalMath <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNumericalMath used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>chop</code></td><td><span class="sig">double chop(double x, double tol)</span></td><td class="desc">Clamp tiny magnitudes to zero below a threshold (denormal flush).</td></tr>
<tr><td><code>nearlyEqual</code></td><td><span class="sig">boolean nearlyEqual(double a, double b, double tol)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slnumericalprecision">SLNumericalPrecision <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNumericalPrecision.sleela)</span></h2>
<div data-u="slnumericalprecision slnumericalprecision">
<h3 id="SLNumericalPrecision">SLNumericalPrecision <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNumericalPrecision used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>doubleEpsilon</code></td><td><span class="sig">double doubleEpsilon()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>nearlyEqual</code></td><td><span class="sig">boolean nearlyEqual(double a, double b, double relTol)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slnumericalroot">SLNumericalRoot <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNumericalRoot.sleela)</span></h2>
<div data-u="slnumericalroot slnumericalroot">
<h3 id="SLNumericalRoot">SLNumericalRoot <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNumericalRoot used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>absd</code></td><td><span class="sig">double absd(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>bracketed</code></td><td><span class="sig">boolean bracketed(double fa, double fb)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>bisect</code></td><td><span class="sig">double bisect(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>within</code></td><td><span class="sig">boolean within(double fx, double tol)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slnumericalsequence">SLNumericalSequence <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNumericalSequence.sleela)</span></h2>
<div data-u="slnumericalsequence slnumericalsequence">
<h3 id="SLNumericalSequence">SLNumericalSequence <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNumericalSequence used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>linspace</code></td><td><span class="sig">void linspace(double a, double b, int n, double[] out)</span></td><td class="desc">Build a linearly spaced sequence of n points from a to b into out.</td></tr>
<tr><td><code>geomspace</code></td><td><span class="sig">void geomspace(double a, double r, int n, double[] out)</span></td><td class="desc">Build a geometric sequence a, a*r, a*r^2, ... into out.</td></tr>
</table>
</div>
<h2 class="section" data-u="slnumericalsolver">SLNumericalSolver <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNumericalSolver.sleela)</span></h2>
<div data-u="slnumericalsolver slnumericalsolver">
<h3 id="SLNumericalSolver">SLNumericalSolver <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNumericalSolver used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>solveLinear</code></td><td><span class="sig">boolean solveLinear(double[] aIn, double[] bIn, double[] x, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slnumericformatter">SLNumericFormatter <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNumericFormatter.sleela)</span></h2>
<div data-u="slnumericformatter slnumericformatter">
<h3 id="SLNumericFormatter">SLNumericFormatter <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNumericFormatter used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>MAX_PLACES</code></td><td><span class="sig">int MAX_PLACES = 15</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>integerPart</code></td><td><span class="sig">long integerPart(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>fractionalDigits</code></td><td><span class="sig">long fractionalDigits(double x, int places)</span></td><td class="desc">The first `places` fractional digits of |x|, as an integer (rounded).</td></tr>
<tr><td><code>pow10</code></td><td><span class="sig">double pow10(int n)</span></td><td class="desc">10^n as a double, for 0 <= n <= 18.</td></tr>
<tr><td><code>digitChar</code></td><td><span class="sig">String digitChar(long d)</span></td><td class="desc">The decimal digit 0..9 as a one-character String.</td></tr>
<tr><td><code>unsignedToString</code></td><td><span class="sig">String unsignedToString(long d)</span></td><td class="desc">A nonnegative long as its decimal String (no sign).</td></tr>
<tr><td><code>longToString</code></td><td><span class="sig">String longToString(long d)</span></td><td class="desc">A signed long as its decimal String.</td></tr>
<tr><td><code>toFixed</code></td><td><span class="sig">String toFixed(double x, int places)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>stringDigitCount</code></td><td><span class="sig">int stringDigitCount(long d)</span></td><td class="desc">The number of decimal digits in a nonnegative long (1 for zero).</td></tr>
<tr><td><code>toSignificant</code></td><td><span class="sig">String toSignificant(double x, int sig)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slnumericparser">SLNumericParser <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLNumericParser.sleela)</span></h2>
<div data-u="slnumericparser slnumericparser">
<h3 id="SLNumericParser">SLNumericParser <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLNumericParser used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>parseUnsigned</code></td><td><span class="sig">long parseUnsigned(int[] codes, int length)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slobjective">SLObjective <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLObjective.sleela)</span></h2>
<div data-u="slobjective slobjective">
<h3 id="SLObjective">SLObjective <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLObjective used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>a</code></td><td><span class="sig">double a</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>b</code></td><td><span class="sig">double b</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>c</code></td><td><span class="sig">double c</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double pa, double pb, double pc)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>value</code></td><td><span class="sig">double value(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>gradient</code></td><td><span class="sig">double gradient(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>minimizer</code></td><td><span class="sig">double minimizer()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slodesolver">SLODESolver <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLODESolver.sleela)</span></h2>
<div data-u="slodesolver slodesolver">
<h3 id="SLODESolver">SLODESolver <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLODESolver used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>eulerStep</code></td><td><span class="sig">double eulerStep(double y, double fval, double h)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>heunStep</code></td><td><span class="sig">double heunStep(double y, double k1, double k2, double h)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sloptimization">SLOptimization <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLOptimization.sleela)</span></h2>
<div data-u="sloptimization sloptimization">
<h3 id="SLOptimization">SLOptimization <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLOptimization used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>argMin</code></td><td><span class="sig">int argMin(double[] values, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>converged</code></td><td><span class="sig">boolean converged(double fNew, double fOld, double tol)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sloptimizationproblem">SLOptimizationProblem <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLOptimizationProblem.sleela)</span></h2>
<div data-u="sloptimizationproblem sloptimizationproblem">
<h3 id="SLOptimizationProblem">SLOptimizationProblem <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLOptimizationProblem used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>minimize</code></td><td><span class="sig">boolean minimize</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(boolean doMinimize)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>bestIndex</code></td><td><span class="sig">int bestIndex(double[] objective, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slorder">SLOrder <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLOrder.sleela)</span></h2>
<div data-u="slorder slorder">
<h3 id="SLOrder">SLOrder <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLOrder used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>compare</code></td><td><span class="sig">int compare(double a, double b)</span></td><td class="desc">Comparison yielding -1, 0, or 1.</td></tr>
<tr><td><code>ascending</code></td><td><span class="sig">boolean ascending(double[] a, int n)</span></td><td class="desc">Is the array sorted ascending?</td></tr>
</table>
</div>
<h2 class="section" data-u="slordinarydifferentialequation">SLOrdinaryDifferentialEquation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLOrdinaryDifferentialEquation.sleela)</span></h2>
<div data-u="slordinarydifferentialequation slordinarydifferentialequation">
<h3 id="SLOrdinaryDifferentialEquation">SLOrdinaryDifferentialEquation <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLOrdinaryDifferentialEquation used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>a</code></td><td><span class="sig">double a</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>b</code></td><td><span class="sig">double b</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double pa, double pb)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>slope</code></td><td><span class="sig">double slope(double y)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>eulerStep</code></td><td><span class="sig">double eulerStep(double y, double h)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sloverflow">SLOverflow <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLOverflow.sleela)</span></h2>
<div data-u="sloverflow sloverflow">
<h3 id="SLOverflow">SLOverflow <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLOverflow used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>maxLong</code></td><td><span class="sig">long maxLong()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>addOverflows</code></td><td><span class="sig">boolean addOverflows(long a, long b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>mulOverflows</code></td><td><span class="sig">boolean mulOverflows(long a, long b)</span></td><td class="desc">Would a * b overflow? Checked by dividing the product back out.</td></tr>
<tr><td><code>exceedsDouble</code></td><td><span class="sig">boolean exceedsDouble(double x, double limit)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slpackage">SLPackage <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPackage.sleela)</span></h2>
<div data-u="slpackage slpackage">
<h3 id="SLPackage">SLPackage <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library package for math.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>packageName</code></td><td><span class="sig">String packageName</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(String name)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>name</code></td><td><span class="sig">String name()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>available</code></td><td><span class="sig">boolean available()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slpartialderivative">SLPartialDerivative <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPartialDerivative.sleela)</span></h2>
<div data-u="slpartialderivative slpartialderivative">
<h3 id="SLPartialDerivative">SLPartialDerivative <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPartialDerivative used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>along</code></td><td><span class="sig">double along(double fMinus, double fPlus, double h)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slpathlength">SLPathLength <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPathLength.sleela)</span></h2>
<div data-u="slpathlength slpathlength">
<h3 id="SLPathLength">SLPathLength <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPathLength used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double[] xs, double[] ys, int n)</span></td><td class="desc">Total length of a polyline through n sampled points.</td></tr>
</table>
</div>
<h2 class="section" data-u="slpde">SLPDE <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPDE.sleela)</span></h2>
<div data-u="slpde slpde">
<h3 id="SLPDE">SLPDE <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPDE used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>heatStep</code></td><td><span class="sig">void heatStep(double[] u, int n, double alpha, double dx, double dt, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>stabilityRatio</code></td><td><span class="sig">double stabilityRatio(double alpha, double dx, double dt)</span></td><td class="desc">Stability ratio r = alpha dt / dx^2; explicit scheme is stable when r <= 0.5.</td></tr>
</table>
</div>
<h2 class="section" data-u="slpercentile">SLPercentile <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPercentile.sleela)</span></h2>
<div data-u="slpercentile slpercentile">
<h3 id="SLPercentile">SLPercentile <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPercentile used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double[] a, int n, double p)</span></td><td class="desc">Linear-interpolation percentile p in [0,100] over sorted data `a`.</td></tr>
<tr><td><code>sortInPlace</code></td><td><span class="sig">void sortInPlace(double[] a, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slpermutation">SLPermutation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPermutation.sleela)</span></h2>
<div data-u="slpermutation slpermutation">
<h3 id="SLPermutation">SLPermutation <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPermutation used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>count</code></td><td><span class="sig">long count(int n, int k)</span></td><td class="desc">P(n,k), the number of ordered k-arrangements of an n-set.</td></tr>
<tr><td><code>total</code></td><td><span class="sig">long total(int n)</span></td><td class="desc">n! total permutations.</td></tr>
</table>
</div>
<h2 class="section" data-u="slpermutationgenerator">SLPermutationGenerator <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPermutationGenerator.sleela)</span></h2>
<div data-u="slpermutationgenerator slpermutationgenerator">
<h3 id="SLPermutationGenerator">SLPermutationGenerator <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPermutationGenerator used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>count</code></td><td><span class="sig">long count(int n)</span></td><td class="desc">Count of distinct permutations of n items = n!.</td></tr>
<tr><td><code>next</code></td><td><span class="sig">boolean next(int[] a, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slphysicalconstant">SLPhysicalConstant <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPhysicalConstant.sleela)</span></h2>
<div data-u="slphysicalconstant slphysicalconstant">
<h3 id="SLPhysicalConstant">SLPhysicalConstant <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPhysicalConstant used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>speedOfLight</code></td><td><span class="sig">double speedOfLight()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>planck</code></td><td><span class="sig">double planck()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>elementaryCharge</code></td><td><span class="sig">double elementaryCharge()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>avogadro</code></td><td><span class="sig">double avogadro()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>boltzmann</code></td><td><span class="sig">double boltzmann()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>gravitation</code></td><td><span class="sig">double gravitation()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slpireference">SLPiReference <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPiReference.sleela)</span></h2>
<div data-u="slpireference slpireference">
<h3 id="SLPiReference">SLPiReference <span class="pill">class</span></h3>
<p class="desc">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.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>PI</code></td><td><span class="sig">static final String PI = "3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912983367336244065664308602139494639522473719070217986094370277053921717629317675238467481846766940513200056812714526356082778577134275778960917363717872146844090122495343014654958537105079227968925892354201995611212902196086403441815981362977477130996051870721134999999837297804995105973173281609631859502445945534690830264252230825334468503526193118817101000313783875288658753320838142061717766914730359825349042875546873115956286388235378759375195778185778053217122680661300192787661119590921642019893809525720106548586327886593615338182796823030195203530185296899577362259941389124972177528347913151557485724245415069595082953311686172785588907509838175463746493931925506040092770167113900984882401285836160356370766010471018194295559619894676783744944825537977472684710404753464620804668425906949129331367702898915210475216205696602405803815019351125338243003558764024749647326391419927260426992279678235478163600934172164121992458631503028618297455570674983850549458858692699569092721079750930295532116534498720275596023648066549911988183479775356636980742654252786255181841757467289097777279380008164706001614524919217321721477235014144197356854816136115735255213347574184946843852332390739414333454776241686251898356948556209921922218427255025425688767179049460165346680498862723279178608578438382796797668145410095388378636095068006422512520511739298489608412848862694560424196528502221066118630674427862203919494504712371378696095636437191728746776465757396241389086583264599581339047802759009946576407895126946839835259570982582262052248940"</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>PI_HEAD</code></td><td><span class="sig">static final String PI_HEAD = "3.141592653589793238462643383279502884197169399375105820974944"</span></td><td class="desc">The published head: "3." plus the first 60 fractional digits.</td></tr>
<tr><td><code>PI_TAIL</code></td><td><span class="sig">static final String PI_TAIL = "59230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912983367336244065664308602139494639522473719070217986094370277053921717629317675238467481846766940513200056812714526356082778577134275778960917363717872146844090122495343014654958537105079227968925892354201995611212902196086403441815981362977477130996051870721134999999837297804995105973173281609631859502445945534690830264252230825334468503526193118817101000313783875288658753320838142061717766914730359825349042875546873115956286388235378759375195778185778053217122680661300192787661119590921642019893809525720106548586327886593615338182796823030195203530185296899577362259941389124972177528347913151557485724245415069595082953311686172785588907509838175463746493931925506040092770167113900984882401285836160356370766010471018194295559619894676783744944825537977472684710404753464620804668425906949129331367702898915210475216205696602405803815019351125338243003558764024749647326391419927260426992279678235478163600934172164121992458631503028618297455570674983850549458858692699569092721079750930295532116534498720275596023648066549911988183479775356636980742654252786255181841757467289097777279380008164706001614524919217321721477235014144197356854816136115735255213347574184946843852332390739414333454776241686251898356948556209921922218427255025425688767179049460165346680498862723279178608578438382796797668145410095388378636095068006422512520511739298489608412848862694560424196528502221066118630674427862203919494504712371378696095636437191728746776465757396241389086583264599581339047802759009946576407895126946839835259570982582262052248940"</span></td><td class="desc">The published tail: the remaining fractional digits. PI_HEAD + PI_TAIL == PI.</td></tr>
<tr><td><code>PI_HEAD_ECHO</code></td><td><span class="sig">static final String PI_HEAD_ECHO = "3.141592653589793238462643383279502884197169399375105820974944"</span></td><td class="desc">An independent echo of the head, for a tamper check against PI_HEAD.</td></tr>
<tr><td><code>PI_REF_50</code></td><td><span class="sig">static final String PI_REF_50 = "14159265358979323846264338327950288419716939937510"</span></td><td class="desc">The first 50 fractional digits, a widely published reference for pi.</td></tr>
<tr><td><code>PI_HEAD_FRACTION_50</code></td><td><span class="sig">static final String PI_HEAD_FRACTION_50 = "14159265358979323846264338327950288419716939937510"</span></td><td class="desc">The head with the leading "3." stripped: the first 50 then 60 digits.</td></tr>
<tr><td><code>PI_DIGITS</code></td><td><span class="sig">static final int PI_DIGITS = 2048</span></td><td class="desc">The number of fractional digits carried inline (the irrational-carry norm).</td></tr>
<tr><td><code>PI_LARGE_PATH</code></td><td><span class="sig">static final String PI_LARGE_PATH = "pi-generator/pi.100000000.digits"</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>PI_LARGE_DIGITS</code></td><td><span class="sig">static final int PI_LARGE_DIGITS = 100000000</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>PI_DIGIT_CHECKSUM</code></td><td><span class="sig">static final int PI_DIGIT_CHECKSUM = 9338</span></td><td class="desc">The sum of the fractional decimal digits -- a stable integrity checksum.</td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>value</code></td><td><span class="sig">String value()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>digitCount</code></td><td><span class="sig">int digitCount()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>checksum</code></td><td><span class="sig">int checksum()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>head</code></td><td><span class="sig">String head()</span></td><td class="desc">The published head ("3." + first 60 fractional digits), via a method.</td></tr>
<tr><td><code>largePath</code></td><td><span class="sig">String largePath()</span></td><td class="desc">The handle (locator path) to the 100,000,000-digit deeper reference set.</td></tr>
<tr><td><code>largeDigits</code></td><td><span class="sig">int largeDigits()</span></td><td class="desc">The fractional-digit count of the deeper reference set resolved by handle.</td></tr>
<tr><td><code>verify</code></td><td><span class="sig">boolean verify()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>firstFiftyTwo</code></td><td><span class="sig">String firstFiftyTwo()</span></td><td class="desc">The first 52 characters ("3." + 50 digits), rebuilt from the reference.</td></tr>
<tr><td><code>report</code></td><td><span class="sig">String report()</span></td><td class="desc">A one-line human report of the verification outcome.</td></tr>
<tr><td><code>available</code></td><td><span class="sig">boolean available()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slplane">SLPlane <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPlane.sleela)</span></h2>
<div data-u="slplane slplane">
<h3 id="SLPlane">SLPlane <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPlane used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>a</code></td><td><span class="sig">double a</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>b</code></td><td><span class="sig">double b</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>c</code></td><td><span class="sig">double c</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>d</code></td><td><span class="sig">double d</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double pa, double pb, double pc, double pd)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>signedDistance</code></td><td><span class="sig">double signedDistance(double x, double y, double z)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slpoint">SLPoint <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPoint.sleela)</span></h2>
<div data-u="slpoint slpoint">
<h3 id="SLPoint">SLPoint <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPoint used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>x</code></td><td><span class="sig">double x</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>y</code></td><td><span class="sig">double y</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double px, double py)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>distanceTo</code></td><td><span class="sig">double distanceTo(SLPoint o)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getX</code></td><td><span class="sig">double getX()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getY</code></td><td><span class="sig">double getY()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slpoissondistribution">SLPoissonDistribution <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPoissonDistribution.sleela)</span></h2>
<div data-u="slpoissondistribution slpoissondistribution">
<h3 id="SLPoissonDistribution">SLPoissonDistribution <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPoissonDistribution used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>expf</code></td><td><span class="sig">double expf(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>pmf</code></td><td><span class="sig">double pmf(double lambda, int k)</span></td><td class="desc">Probability mass lambda^k e^(-lambda) / k!.</td></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean(double lambda)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>variance</code></td><td><span class="sig">double variance(double lambda)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slpolarcoordinate">SLPolarCoordinate <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPolarCoordinate.sleela)</span></h2>
<div data-u="slpolarcoordinate slpolarcoordinate">
<h3 id="SLPolarCoordinate">SLPolarCoordinate <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPolarCoordinate used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>r</code></td><td><span class="sig">double r</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>theta</code></td><td><span class="sig">double theta</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>pi</code></td><td><span class="sig">double pi()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>reduce</code></td><td><span class="sig">double reduce(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sin</code></td><td><span class="sig">double sin(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cos</code></td><td><span class="sig">double cos(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double radius, double angle)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>toX</code></td><td><span class="sig">double toX()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>toY</code></td><td><span class="sig">double toY()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getR</code></td><td><span class="sig">double getR()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getTheta</code></td><td><span class="sig">double getTheta()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slpolynomial">SLPolynomial <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPolynomial.sleela)</span></h2>
<div data-u="slpolynomial slpolynomial">
<h3 id="SLPolynomial">SLPolynomial <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPolynomial used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>evaluate</code></td><td><span class="sig">double evaluate(double[] coeffs, int degree, double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>derivative</code></td><td><span class="sig">void derivative(double[] coeffs, int degree, double[] out)</span></td><td class="desc">Derivative coefficients written into out (length degree).</td></tr>
<tr><td><code>add</code></td><td><span class="sig">void add(double[] a, double[] b, double[] out, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slpolynomialregression">SLPolynomialRegression <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPolynomialRegression.sleela)</span></h2>
<div data-u="slpolynomialregression slpolynomialregression">
<h3 id="SLPolynomialRegression">SLPolynomialRegression <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPolynomialRegression used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>c0</code></td><td><span class="sig">double c0</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>c1</code></td><td><span class="sig">double c1</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>c2</code></td><td><span class="sig">double c2</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>fit</code></td><td><span class="sig">void fit(double[] xs, double[] ys, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>predict</code></td><td><span class="sig">double predict(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slpower">SLPower <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPower.sleela)</span></h2>
<div data-u="slpower slpower">
<h3 id="SLPower">SLPower <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPower used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>intPow</code></td><td><span class="sig">double intPow(double x, int n)</span></td><td class="desc">Integer power x to the n by binary exponentiation (negative n inverts).</td></tr>
<tr><td><code>square</code></td><td><span class="sig">double square(double x)</span></td><td class="desc">Square and cube helpers.</td></tr>
<tr><td><code>cube</code></td><td><span class="sig">double cube(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slprecision">SLPrecision <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPrecision.sleela)</span></h2>
<div data-u="slprecision slprecision">
<h3 id="SLPrecision">SLPrecision <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPrecision used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>significantDigits</code></td><td><span class="sig">int significantDigits(double relativeError)</span></td><td class="desc">Number of correct significant digits implied by a relative error.</td></tr>
<tr><td><code>withinTolerance</code></td><td><span class="sig">boolean withinTolerance(double a, double b, double tol)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>epsilon</code></td><td><span class="sig">double epsilon()</span></td><td class="desc">The machine epsilon for IEEE-754 double precision (2^-52).</td></tr>
<tr><td><code>maxDigits</code></td><td><span class="sig">int maxDigits()</span></td><td class="desc">The largest number of reliable significant decimal digits in a double.</td></tr>
<tr><td><code>almostEqual</code></td><td><span class="sig">boolean almostEqual(double a, double b, double relTol)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>agreeingDigits</code></td><td><span class="sig">int agreeingDigits(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>relativeError</code></td><td><span class="sig">double relativeError(double approx, double reference)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slpredicate">SLPredicate <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPredicate.sleela)</span></h2>
<div data-u="slpredicate slpredicate">
<h3 id="SLPredicate">SLPredicate <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPredicate used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>kind</code></td><td><span class="sig">int kind</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>threshold</code></td><td><span class="sig">double threshold</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(int k, double t)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>test</code></td><td><span class="sig">boolean test(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slprime">SLPrime <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPrime.sleela)</span></h2>
<div data-u="slprime slprime">
<h3 id="SLPrime">SLPrime <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPrime used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>isPrime</code></td><td><span class="sig">boolean isPrime(int n)</span></td><td class="desc">Primality test by trial division up to sqrt(n).</td></tr>
<tr><td><code>nextPrime</code></td><td><span class="sig">int nextPrime(int n)</span></td><td class="desc">The next prime strictly greater than n.</td></tr>
</table>
</div>
<h2 class="section" data-u="slprimefactorization">SLPrimeFactorization <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLPrimeFactorization.sleela)</span></h2>
<div data-u="slprimefactorization slprimefactorization">
<h3 id="SLPrimeFactorization">SLPrimeFactorization <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLPrimeFactorization used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>factorCount</code></td><td><span class="sig">int factorCount(int n)</span></td><td class="desc">Count the prime factors of n with multiplicity, for n of at least 1.</td></tr>
<tr><td><code>largestFactor</code></td><td><span class="sig">int largestFactor(int n)</span></td><td class="desc">The largest prime factor of n.</td></tr>
</table>
</div>
<h2 class="section" data-u="slprobability">SLProbability <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLProbability.sleela)</span></h2>
<div data-u="slprobability slprobability">
<h3 id="SLProbability">SLProbability <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLProbability used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>clamp</code></td><td><span class="sig">double clamp(double p)</span></td><td class="desc">Clamp a raw value to a valid probability in [0, 1].</td></tr>
<tr><td><code>complement</code></td><td><span class="sig">double complement(double p)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>andIndependent</code></td><td><span class="sig">double andIndependent(double a, double b)</span></td><td class="desc">Probability of independent events both occurring.</td></tr>
<tr><td><code>orExclusive</code></td><td><span class="sig">double orExclusive(double a, double b)</span></td><td class="desc">Probability of either of two mutually-exclusive events.</td></tr>
<tr><td><code>orIndependent</code></td><td><span class="sig">double orIndependent(double a, double b)</span></td><td class="desc">Inclusive-or for independent events: a + b - a*b.</td></tr>
</table>
</div>
<h2 class="section" data-u="slprobabilitydensity">SLProbabilityDensity <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLProbabilityDensity.sleela)</span></h2>
<div data-u="slprobabilitydensity slprobabilitydensity">
<h3 id="SLProbabilityDensity">SLProbabilityDensity <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLProbabilityDensity used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>normalPdf</code></td><td><span class="sig">double normalPdf(double x, double mean, double stdDev)</span></td><td class="desc">Standard-normal probability density function at x.</td></tr>
<tr><td><code>expNeg</code></td><td><span class="sig">double expNeg(double t)</span></td><td class="desc">e to the minus t for nonnegative t, via a Taylor series on the argument.</td></tr>
</table>
</div>
<h2 class="section" data-u="slprobabilitymass">SLProbabilityMass <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLProbabilityMass.sleela)</span></h2>
<div data-u="slprobabilitymass slprobabilitymass">
<h3 id="SLProbabilityMass">SLProbabilityMass <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLProbabilityMass used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>valid</code></td><td><span class="sig">boolean valid(double[] probs, int n, double tol)</span></td><td class="desc">Validate that a discrete PMF over n outcomes sums to 1 (within tol).</td></tr>
<tr><td><code>cumulative</code></td><td><span class="sig">double cumulative(double[] probs, int k)</span></td><td class="desc">Cumulative mass through index k inclusive.</td></tr>
</table>
</div>
<h2 class="section" data-u="slproduct">SLProduct <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLProduct.sleela)</span></h2>
<div data-u="slproduct slproduct">
<h3 id="SLProduct">SLProduct <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLProduct used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>times</code></td><td><span class="sig">double times(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slprogression">SLProgression <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLProgression.sleela)</span></h2>
<div data-u="slprogression slprogression">
<h3 id="SLProgression">SLProgression <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLProgression used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>arithmeticTerm</code></td><td><span class="sig">double arithmeticTerm(double a, double d, int k)</span></td><td class="desc">Arithmetic progression: n-th term a + (n-1) d (1-indexed).</td></tr>
<tr><td><code>arithmeticSum</code></td><td><span class="sig">double arithmeticSum(double a, double d, int k)</span></td><td class="desc">Sum of the first k arithmetic terms.</td></tr>
<tr><td><code>geometricTerm</code></td><td><span class="sig">double geometricTerm(double a, double r, int k)</span></td><td class="desc">Geometric progression: n-th term a r^(n-1).</td></tr>
<tr><td><code>geometricSum</code></td><td><span class="sig">double geometricSum(double a, double r, int k)</span></td><td class="desc">Sum of the first k geometric terms.</td></tr>
</table>
</div>
<h2 class="section" data-u="slquadraticprogram">SLQuadraticProgram <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLQuadraticProgram.sleela)</span></h2>
<div data-u="slquadraticprogram slquadraticprogram">
<h3 id="SLQuadraticProgram">SLQuadraticProgram <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLQuadraticProgram used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>objective</code></td><td><span class="sig">double objective(double[] q, double[] c, double[] x, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>gradient</code></td><td><span class="sig">void gradient(double[] q, double[] c, double[] x, int n, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slquantity">SLQuantity <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLQuantity.sleela)</span></h2>
<div data-u="slquantity slquantity">
<h3 id="SLQuantity">SLQuantity <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLQuantity used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>magnitude</code></td><td><span class="sig">double magnitude</span></td><td class="desc">A physical quantity: a numeric magnitude paired with a unit scale to SI.</td></tr>
<tr><td><code>unitScale</code></td><td><span class="sig">double unitScale</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double m, double scaleToSI)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>inSI</code></td><td><span class="sig">double inSI()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getMagnitude</code></td><td><span class="sig">double getMagnitude()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>add</code></td><td><span class="sig">void add(SLQuantity o)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slquaternion">SLQuaternion <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLQuaternion.sleela)</span></h2>
<div data-u="slquaternion slquaternion">
<h3 id="SLQuaternion">SLQuaternion <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLQuaternion used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>w</code></td><td><span class="sig">double w</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>x</code></td><td><span class="sig">double x</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>y</code></td><td><span class="sig">double y</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>z</code></td><td><span class="sig">double z</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double pw, double px, double py, double pz)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>norm</code></td><td><span class="sig">double norm()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>multiply</code></td><td><span class="sig">void multiply(SLQuaternion o, SLQuaternion out)</span></td><td class="desc">Hamilton product this * o written into out (w,x,y,z).</td></tr>
<tr><td><code>conjugate</code></td><td><span class="sig">void conjugate(SLQuaternion out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slrandomdistribution">SLRandomDistribution <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRandomDistribution.sleela)</span></h2>
<div data-u="slrandomdistribution slrandomdistribution">
<h3 id="SLRandomDistribution">SLRandomDistribution <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRandomDistribution used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sampleIndex</code></td><td><span class="sig">int sampleIndex(double[] cumulative, int n, double u)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>toCumulative</code></td><td><span class="sig">void toCumulative(double[] probs, int n, double[] out)</span></td><td class="desc">Build a cumulative array from probabilities.</td></tr>
</table>
</div>
<h2 class="section" data-u="slrandomgenerator">SLRandomGenerator <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRandomGenerator.sleela)</span></h2>
<div data-u="slrandomgenerator slrandomgenerator">
<h3 id="SLRandomGenerator">SLRandomGenerator <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRandomGenerator used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>state</code></td><td><span class="sig">long state</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>seed</code></td><td><span class="sig">void seed(long s)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>nextLong</code></td><td><span class="sig">long nextLong()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>next</code></td><td><span class="sig">double next()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>nextInt</code></td><td><span class="sig">int nextInt(int bound)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slrandomvariable">SLRandomVariable <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRandomVariable.sleela)</span></h2>
<div data-u="slrandomvariable slrandomvariable">
<h3 id="SLRandomVariable">SLRandomVariable <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRandomVariable used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>expectation</code></td><td><span class="sig">double expectation(double[] values, double[] probs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>variance</code></td><td><span class="sig">double variance(double[] values, double[] probs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slrational">SLRational <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRational.sleela)</span></h2>
<div data-u="slrational slrational">
<h3 id="SLRational">SLRational <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRational used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>num</code></td><td><span class="sig">int num</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>den</code></td><td><span class="sig">int den</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>gcd</code></td><td><span class="sig">int gcd(int a, int b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(int n, int d)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>toDouble</code></td><td><span class="sig">double toDouble()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getNum</code></td><td><span class="sig">int getNum()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getDen</code></td><td><span class="sig">int getDen()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slray">SLRay <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRay.sleela)</span></h2>
<div data-u="slray slray">
<h3 id="SLRay">SLRay <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRay used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>ox</code></td><td><span class="sig">double ox</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>oy</code></td><td><span class="sig">double oy</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>dx</code></td><td><span class="sig">double dx</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>dy</code></td><td><span class="sig">double dy</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double originX, double originY, double dirX, double dirY)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>pointX</code></td><td><span class="sig">double pointX(double t)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>pointY</code></td><td><span class="sig">double pointY(double t)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slreciprocal">SLReciprocal <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLReciprocal.sleela)</span></h2>
<div data-u="slreciprocal slreciprocal">
<h3 id="SLReciprocal">SLReciprocal <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLReciprocal used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double x)</span></td><td class="desc">The multiplicative inverse 1/x; returns 0.0 for x == 0 (no infinity).</td></tr>
<tr><td><code>defined</code></td><td><span class="sig">boolean defined(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slrecurrence">SLRecurrence <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRecurrence.sleela)</span></h2>
<div data-u="slrecurrence slrecurrence">
<h3 id="SLRecurrence">SLRecurrence <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRecurrence used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>evaluate</code></td><td><span class="sig">double evaluate(double x0, double x1, double p, double q, int k)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slrecurrencesolver">SLRecurrenceSolver <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRecurrenceSolver.sleela)</span></h2>
<div data-u="slrecurrencesolver slrecurrencesolver">
<h3 id="SLRecurrenceSolver">SLRecurrenceSolver <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRecurrenceSolver used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>characteristicRoots</code></td><td><span class="sig">boolean characteristicRoots(double p, double q, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slregression">SLRegression <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRegression.sleela)</span></h2>
<div data-u="slregression slregression">
<h3 id="SLRegression">SLRegression <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRegression used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>slope</code></td><td><span class="sig">double slope</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>intercept</code></td><td><span class="sig">double intercept</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>fit</code></td><td><span class="sig">void fit(double[] xs, double[] ys, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>predict</code></td><td><span class="sig">double predict(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slregressionmodel">SLRegressionModel <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRegressionModel.sleela)</span></h2>
<div data-u="slregressionmodel slregressionmodel">
<h3 id="SLRegressionModel">SLRegressionModel <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRegressionModel used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>slope</code></td><td><span class="sig">double slope</span></td><td class="desc">A fitted linear model plus its coefficient of determination R^2.</td></tr>
<tr><td><code>intercept</code></td><td><span class="sig">double intercept</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>rSquared</code></td><td><span class="sig">double rSquared</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>fit</code></td><td><span class="sig">void fit(double[] xs, double[] ys, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getRSquared</code></td><td><span class="sig">double getRSquared()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>predict</code></td><td><span class="sig">double predict(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slregularization">SLRegularization <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRegularization.sleela)</span></h2>
<div data-u="slregularization slregularization">
<h3 id="SLRegularization">SLRegularization <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRegularization used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>l2Penalty</code></td><td><span class="sig">double l2Penalty(double[] w, int n, double lambda)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>l1Penalty</code></td><td><span class="sig">double l1Penalty(double[] w, int n, double lambda)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slrelation">SLRelation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRelation.sleela)</span></h2>
<div data-u="slrelation slrelation">
<h3 id="SLRelation">SLRelation <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRelation used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>n</code></td><td><span class="sig">int n</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int size)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>reflexive</code></td><td><span class="sig">boolean reflexive(int[] r)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>symmetric</code></td><td><span class="sig">boolean symmetric(int[] r)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>transitive</code></td><td><span class="sig">boolean transitive(int[] r)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slresidual">SLResidual <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLResidual.sleela)</span></h2>
<div data-u="slresidual slresidual">
<h3 id="SLResidual">SLResidual <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLResidual used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>absd</code></td><td><span class="sig">double absd(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double[] row, double[] x, double b, int n)</span></td><td class="desc">Residual r = b - A*x for one equation row (dot of row with x).</td></tr>
<tr><td><code>normInf</code></td><td><span class="sig">double normInf(double[] r, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slroot">SLRoot <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRoot.sleela)</span></h2>
<div data-u="slroot slroot">
<h3 id="SLRoot">SLRoot <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRoot used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>nthRoot</code></td><td><span class="sig">double nthRoot(double x, int n)</span></td><td class="desc">Real n-th root of x for odd n (or nonnegative x) via Newton iteration.</td></tr>
<tr><td><code>squareRoot</code></td><td><span class="sig">double squareRoot(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slrootfinder">SLRootFinder <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRootFinder.sleela)</span></h2>
<div data-u="slrootfinder slrootfinder">
<h3 id="SLRootFinder">SLRootFinder <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRootFinder used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>absd</code></td><td><span class="sig">double absd(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>signChange</code></td><td><span class="sig">boolean signChange(double fa, double fb)</span></td><td class="desc">Fixed-point / sign test helpers for a sampled root search.</td></tr>
<tr><td><code>bisectStep</code></td><td><span class="sig">double bisectStep(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>within</code></td><td><span class="sig">boolean within(double fx, double tol)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slrotation">SLRotation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRotation.sleela)</span></h2>
<div data-u="slrotation slrotation">
<h3 id="SLRotation">SLRotation <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRotation used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>pi</code></td><td><span class="sig">double pi()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>reduce</code></td><td><span class="sig">double reduce(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sin</code></td><td><span class="sig">double sin(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cos</code></td><td><span class="sig">double cos(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>rotate2D</code></td><td><span class="sig">void rotate2D(double x, double y, double theta, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slrounding">SLRounding <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRounding.sleela)</span></h2>
<div data-u="slrounding slrounding">
<h3 id="SLRounding">SLRounding <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRounding used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>nearest</code></td><td><span class="sig">long nearest(double x)</span></td><td class="desc">Round half-up to the nearest integer (as a long).</td></tr>
<tr><td><code>floorOf</code></td><td><span class="sig">long floorOf(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>ceilOf</code></td><td><span class="sig">long ceilOf(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>truncate</code></td><td><span class="sig">double truncate(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slrungekutta">SLRungeKutta <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLRungeKutta.sleela)</span></h2>
<div data-u="slrungekutta slrungekutta">
<h3 id="SLRungeKutta">SLRungeKutta <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLRungeKutta used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>step</code></td><td><span class="sig">double step(double y, double k1, double k2, double k3, double k4, double h)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>stageOffset</code></td><td><span class="sig">double stageOffset(int stage, double h)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slscalarfield">SLScalarField <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLScalarField.sleela)</span></h2>
<div data-u="slscalarfield slscalarfield">
<h3 id="SLScalarField">SLScalarField <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLScalarField used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>w</code></td><td><span class="sig">int w</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>h</code></td><td><span class="sig">int h</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int width, int height)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>at</code></td><td><span class="sig">double at(double[] grid, int x, int y)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>gradX</code></td><td><span class="sig">double gradX(double[] grid, int x, int y, double spacing)</span></td><td class="desc">Gradient component along x at an interior cell by central difference.</td></tr>
</table>
</div>
<h2 class="section" data-u="slscale">SLScale <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLScale.sleela)</span></h2>
<div data-u="slscale slscale">
<h3 id="SLScale">SLScale <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLScale used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>scale2D</code></td><td><span class="sig">void scale2D(double x, double y, double sx, double sy, double[] out)</span></td><td class="desc">Scale a point about the origin by (sx, sy), written into out.</td></tr>
<tr><td><code>uniform</code></td><td><span class="sig">double uniform(double v, double factor)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slsecantmethod">SLSecantMethod <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSecantMethod.sleela)</span></h2>
<div data-u="slsecantmethod slsecantmethod">
<h3 id="SLSecantMethod">SLSecantMethod <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSecantMethod used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>step</code></td><td><span class="sig">double step(double x0, double x1, double f0, double f1)</span></td><td class="desc">One secant update using the two previous iterates and their f-values.</td></tr>
</table>
</div>
<h2 class="section" data-u="slseededrandom">SLSeededRandom <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSeededRandom.sleela)</span></h2>
<div data-u="slseededrandom slseededrandom">
<h3 id="SLSeededRandom">SLSeededRandom <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSeededRandom used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>state</code></td><td><span class="sig">long state</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>initial</code></td><td><span class="sig">long initial</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>seed</code></td><td><span class="sig">void seed(long s)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>reset</code></td><td><span class="sig">void reset()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>next</code></td><td><span class="sig">double next()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slsequence">SLSequence <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSequence.sleela)</span></h2>
<div data-u="slsequence slsequence">
<h3 id="SLSequence">SLSequence <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSequence used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>terms</code></td><td><span class="sig">double[] terms</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>n</code></td><td><span class="sig">int n</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int count)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>setTerm</code></td><td><span class="sig">void setTerm(int i, double v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getTerm</code></td><td><span class="sig">double getTerm(int i)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>length</code></td><td><span class="sig">int length()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sum</code></td><td><span class="sig">double sum()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slseries">SLSeries <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSeries.sleela)</span></h2>
<div data-u="slseries slseries">
<h3 id="SLSeries">SLSeries <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSeries used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>partialSum</code></td><td><span class="sig">double partialSum(double[] terms, int k)</span></td><td class="desc">Partial sum of a sampled series (first k terms).</td></tr>
<tr><td><code>geometricLimit</code></td><td><span class="sig">double geometricLimit(double a, double r)</span></td><td class="desc">Geometric series limit a/(1-r) for |r| < 1.</td></tr>
</table>
</div>
<h2 class="section" data-u="slseriesexpansion">SLSeriesExpansion <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSeriesExpansion.sleela)</span></h2>
<div data-u="slseriesexpansion slseriesexpansion">
<h3 id="SLSeriesExpansion">SLSeriesExpansion <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSeriesExpansion used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>expSeries</code></td><td><span class="sig">double expSeries(double x, int n)</span></td><td class="desc">e^x partial sum through n terms (Maclaurin).</td></tr>
<tr><td><code>geometricSeries</code></td><td><span class="sig">double geometricSeries(double x, int n)</span></td><td class="desc">Geometric 1/(1-x) partial sum through n terms, |x| < 1.</td></tr>
</table>
</div>
<h2 class="section" data-u="slsetoperations">SLSetOperations <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSetOperations.sleela)</span></h2>
<div data-u="slsetoperations slsetoperations">
<h3 id="SLSetOperations">SLSetOperations <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSetOperations used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>contains</code></td><td><span class="sig">boolean contains(int[] a, int na, int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>union</code></td><td><span class="sig">int union(int[] a, int na, int[] b, int nb, int[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>intersection</code></td><td><span class="sig">int intersection(int[] a, int na, int[] b, int nb, int[] out)</span></td><td class="desc">Intersection of a and b into out; returns its size.</td></tr>
<tr><td><code>difference</code></td><td><span class="sig">int difference(int[] a, int na, int[] b, int nb, int[] out)</span></td><td class="desc">Difference a minus b into out; returns its size.</td></tr>
</table>
</div>
<h2 class="section" data-u="slsettheory">SLSetTheory <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSetTheory.sleela)</span></h2>
<div data-u="slsettheory slsettheory">
<h3 id="SLSetTheory">SLSetTheory <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSetTheory used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>contains</code></td><td><span class="sig">boolean contains(int[] a, int na, int v)</span></td><td class="desc">Does the sorted set `a` (length na) contain value v?</td></tr>
<tr><td><code>subset</code></td><td><span class="sig">boolean subset(int[] a, int na, int[] b, int nb)</span></td><td class="desc">Is `a` a subset of `b`?</td></tr>
<tr><td><code>cardinality</code></td><td><span class="sig">int cardinality(int[] a, int na)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slsignal">SLSignal <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSignal.sleela)</span></h2>
<div data-u="slsignal slsignal">
<h3 id="SLSignal">SLSignal <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSignal used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>energy</code></td><td><span class="sig">double energy(double[] x, int n)</span></td><td class="desc">A sampled discrete signal with energy, power, and convolution helpers.</td></tr>
<tr><td><code>rms</code></td><td><span class="sig">double rms(double[] x, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>convolve</code></td><td><span class="sig">void convolve(double[] x, int n, double[] h, int m, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slsignum">SLSignum <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSignum.sleela)</span></h2>
<div data-u="slsignum slsignum">
<h3 id="SLSignum">SLSignum <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSignum used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>ofDouble</code></td><td><span class="sig">int ofDouble(double x)</span></td><td class="desc">The sign of x: -1, 0, or +1.</td></tr>
<tr><td><code>ofInt</code></td><td><span class="sig">int ofInt(int x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slsimpsonrule">SLSimpsonRule <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSimpsonRule.sleela)</span></h2>
<div data-u="slsimpsonrule slsimpsonrule">
<h3 id="SLSimpsonRule">SLSimpsonRule <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSimpsonRule used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>composite</code></td><td><span class="sig">double composite(double[] ys, double a, double b, int n)</span></td><td class="desc">Composite Simpson rule over sampled ys (length n+1), n even, on [a,b].</td></tr>
</table>
</div>
<h2 class="section" data-u="slsine">SLSine <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSine.sleela)</span></h2>
<div data-u="slsine slsine">
<h3 id="SLSine">SLSine <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSine used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>pi</code></td><td><span class="sig">double pi()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>reduce</code></td><td><span class="sig">double reduce(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sin</code></td><td><span class="sig">double sin(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cos</code></td><td><span class="sig">double cos(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slskewness">SLSkewness <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSkewness.sleela)</span></h2>
<div data-u="slskewness slskewness">
<h3 id="SLSkewness">SLSkewness <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSkewness used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double[] xs, int n)</span></td><td class="desc">Population skewness: m3 / m2^(3/2).</td></tr>
</table>
</div>
<h2 class="section" data-u="slspline">SLSpline <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSpline.sleela)</span></h2>
<div data-u="slspline slspline">
<h3 id="SLSpline">SLSpline <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSpline used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>linearSegment</code></td><td><span class="sig">double linearSegment(double y0, double y1, double t)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>catmullTangent</code></td><td><span class="sig">double catmullTangent(double[] ys, int i, int n)</span></td><td class="desc">Catmull-Rom tangent at point i from its neighbours.</td></tr>
</table>
</div>
<h2 class="section" data-u="slstandarddeviation">SLStandardDeviation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLStandardDeviation.sleela)</span></h2>
<div data-u="slstandarddeviation slstandarddeviation">
<h3 id="SLStandardDeviation">SLStandardDeviation <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLStandardDeviation used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>population</code></td><td><span class="sig">double population(double[] xs, int n)</span></td><td class="desc">Population standard deviation.</td></tr>
<tr><td><code>sample</code></td><td><span class="sig">double sample(double[] xs, int n)</span></td><td class="desc">Sample standard deviation (n-1 denominator).</td></tr>
</table>
</div>
<h2 class="section" data-u="slstandarderror">SLStandardError <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLStandardError.sleela)</span></h2>
<div data-u="slstandarderror slstandarderror">
<h3 id="SLStandardError">SLStandardError <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLStandardError used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>ofMean</code></td><td><span class="sig">double ofMean(double sampleStdDev, int n)</span></td><td class="desc">Standard error of the mean: s / sqrt(n).</td></tr>
</table>
</div>
<h2 class="section" data-u="slstatistics">SLStatistics <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLStatistics.sleela)</span></h2>
<div data-u="slstatistics slstatistics">
<h3 id="SLStatistics">SLStatistics <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLStatistics used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>variancePopulation</code></td><td><span class="sig">double variancePopulation(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>stdDevPopulation</code></td><td><span class="sig">double stdDevPopulation(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>range</code></td><td><span class="sig">double range(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slsum">SLSum <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSum.sleela)</span></h2>
<div data-u="slsum slsum">
<h3 id="SLSum">SLSum <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSum used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>kahan</code></td><td><span class="sig">double kahan(double[] xs, int n)</span></td><td class="desc">Kahan-compensated summation for improved accuracy.</td></tr>
<tr><td><code>plus</code></td><td><span class="sig">double plus(double a, double b)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slsymbolicmath">SLSymbolicMath <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSymbolicMath.sleela)</span></h2>
<div data-u="slsymbolicmath slsymbolicmath">
<h3 id="SLSymbolicMath">SLSymbolicMath <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSymbolicMath used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>newExp</code></td><td><span class="sig">int newExp</span></td><td class="desc">Symbolic 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.</td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>differentiate</code></td><td><span class="sig">double differentiate(double c, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>integrate</code></td><td><span class="sig">double integrate(double c, int n)</span></td><td class="desc">Indefinite integral of c x^n is (c/(n+1)) x^(n+1); newExp holds n+1.</td></tr>
<tr><td><code>getNewExp</code></td><td><span class="sig">int getNewExp()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slsymmetricdifference">SLSymmetricDifference <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLSymmetricDifference.sleela)</span></h2>
<div data-u="slsymmetricdifference slsymmetricdifference">
<h3 id="SLSymmetricDifference">SLSymmetricDifference <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLSymmetricDifference used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>contains</code></td><td><span class="sig">boolean contains(int[] a, int na, int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>of</code></td><td><span class="sig">int of(int[] a, int na, int[] b, int nb, int[] out)</span></td><td class="desc">Elements in exactly one of a or b, written into out; returns the size.</td></tr>
</table>
</div>
<h2 class="section" data-u="sltangent">SLTangent <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLTangent.sleela)</span></h2>
<div data-u="sltangent sltangent">
<h3 id="SLTangent">SLTangent <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLTangent used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>pi</code></td><td><span class="sig">double pi()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>reduce</code></td><td><span class="sig">double reduce(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sin</code></td><td><span class="sig">double sin(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cos</code></td><td><span class="sig">double cos(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sltensor">SLTensor <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLTensor.sleela)</span></h2>
<div data-u="sltensor sltensor">
<h3 id="SLTensor">SLTensor <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLTensor used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>shape</code></td><td><span class="sig">int[] shape</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>rank</code></td><td><span class="sig">int rank</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>total</code></td><td><span class="sig">int total</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int[] dims, int k)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>offset</code></td><td><span class="sig">int offset(int[] coord)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>size</code></td><td><span class="sig">int size()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getRank</code></td><td><span class="sig">int getRank()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slterm">SLTerm <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLTerm.sleela)</span></h2>
<div data-u="slterm slterm">
<h3 id="SLTerm">SLTerm <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLTerm used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>coefficient</code></td><td><span class="sig">double coefficient</span></td><td class="desc">A monomial term coefficient * x^exponent.</td></tr>
<tr><td><code>exponent</code></td><td><span class="sig">int exponent</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double c, int e)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>evaluate</code></td><td><span class="sig">double evaluate(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>derivativeCoefficient</code></td><td><span class="sig">double derivativeCoefficient()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sltopology">SLTopology <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLTopology.sleela)</span></h2>
<div data-u="sltopology sltopology">
<h3 id="SLTopology">SLTopology <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLTopology used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>lo</code></td><td><span class="sig">double lo</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>hi</code></td><td><span class="sig">double hi</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>closedLow</code></td><td><span class="sig">boolean closedLow</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>closedHigh</code></td><td><span class="sig">boolean closedHigh</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(double a, double b, boolean cl, boolean ch)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>contains</code></td><td><span class="sig">boolean contains(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isBoundary</code></td><td><span class="sig">boolean isBoundary(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sltransform">SLTransform <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLTransform.sleela)</span></h2>
<div data-u="sltransform sltransform">
<h3 id="SLTransform">SLTransform <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLTransform used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>pi</code></td><td><span class="sig">double pi()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>reduce</code></td><td><span class="sig">double reduce(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sin</code></td><td><span class="sig">double sin(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cos</code></td><td><span class="sig">double cos(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>identity</code></td><td><span class="sig">void identity(double[] m)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>apply</code></td><td><span class="sig">void apply(double[] m, double x, double y, double[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sltranslation">SLTranslation <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLTranslation.sleela)</span></h2>
<div data-u="sltranslation sltranslation">
<h3 id="SLTranslation">SLTranslation <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLTranslation used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>translate2D</code></td><td><span class="sig">void translate2D(double x, double y, double tx, double ty, double[] out)</span></td><td class="desc">Translate a point by (tx, ty), written into out.</td></tr>
</table>
</div>
<h2 class="section" data-u="sltranspose">SLTranspose <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLTranspose.sleela)</span></h2>
<div data-u="sltranspose sltranspose">
<h3 id="SLTranspose">SLTranspose <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLTranspose used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">void of(double[] a, double[] out, int r, int c)</span></td><td class="desc">Transpose an r x c row-major matrix into out (c x r).</td></tr>
</table>
</div>
<h2 class="section" data-u="sltrapezoidrule">SLTrapezoidRule <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLTrapezoidRule.sleela)</span></h2>
<div data-u="sltrapezoidrule sltrapezoidrule">
<h3 id="SLTrapezoidRule">SLTrapezoidRule <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLTrapezoidRule used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>panel</code></td><td><span class="sig">double panel(double ya, double yb, double h)</span></td><td class="desc">One trapezoid panel area.</td></tr>
<tr><td><code>composite</code></td><td><span class="sig">double composite(double[] ys, double a, double b, int n)</span></td><td class="desc">Composite rule over sampled ys (length n+1) on [a,b].</td></tr>
</table>
</div>
<h2 class="section" data-u="sltrigonometry">SLTrigonometry <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLTrigonometry.sleela)</span></h2>
<div data-u="sltrigonometry sltrigonometry">
<h3 id="SLTrigonometry">SLTrigonometry <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLTrigonometry used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>pi</code></td><td><span class="sig">double pi()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>reduce</code></td><td><span class="sig">double reduce(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>sin</code></td><td><span class="sig">double sin(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cos</code></td><td><span class="sig">double cos(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>tan</code></td><td><span class="sig">double tan(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>degToRad</code></td><td><span class="sig">double degToRad(double d)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>radToDeg</code></td><td><span class="sig">double radToDeg(double r)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slttest">SLTTest <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLTTest.sleela)</span></h2>
<div data-u="slttest slttest">
<h3 id="SLTTest">SLTTest <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLTTest used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>oneSample</code></td><td><span class="sig">double oneSample(double[] xs, int n, double mu0)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slunderflow">SLUnderflow <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLUnderflow.sleela)</span></h2>
<div data-u="slunderflow slunderflow">
<h3 id="SLUnderflow">SLUnderflow <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLUnderflow used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>smallestNormal</code></td><td><span class="sig">double smallestNormal()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>underflows</code></td><td><span class="sig">boolean underflows(double x, double threshold)</span></td><td class="desc">Has a magnitude underflowed below a working threshold (flushed to zero)?</td></tr>
<tr><td><code>flush</code></td><td><span class="sig">double flush(double x, double threshold)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="sluniformdistribution">SLUniformDistribution <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLUniformDistribution.sleela)</span></h2>
<div data-u="sluniformdistribution sluniformdistribution">
<h3 id="SLUniformDistribution">SLUniformDistribution <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLUniformDistribution used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>a</code></td><td><span class="sig">double a</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>b</code></td><td><span class="sig">double b</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(double lo, double hi)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>pdf</code></td><td><span class="sig">double pdf(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cdf</code></td><td><span class="sig">double cdf(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>variance</code></td><td><span class="sig">double variance()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slunion">SLUnion <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLUnion.sleela)</span></h2>
<div data-u="slunion slunion">
<h3 id="SLUnion">SLUnion <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLUnion used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>contains</code></td><td><span class="sig">boolean contains(int[] a, int na, int v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>of</code></td><td><span class="sig">int of(int[] a, int na, int[] b, int nb, int[] out)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slunit">SLUnit <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLUnit.sleela)</span></h2>
<div data-u="slunit slunit">
<h3 id="SLUnit">SLUnit <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLUnit used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>scale</code></td><td><span class="sig">double scale</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>offset</code></td><td><span class="sig">double offset</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(double s, double o)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>toBase</code></td><td><span class="sig">double toBase(double raw)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>fromBase</code></td><td><span class="sig">double fromBase(double si)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slunitconverter">SLUnitConverter <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLUnitConverter.sleela)</span></h2>
<div data-u="slunitconverter slunitconverter">
<h3 id="SLUnitConverter">SLUnitConverter <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLUnitConverter used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>convert</code></td><td><span class="sig">double convert(double value, double srcScale, double srcOffset,</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>celsiusToFahrenheit</code></td><td><span class="sig">double celsiusToFahrenheit(double c)</span></td><td class="desc">Celsius to Fahrenheit convenience.</td></tr>
</table>
</div>
<h2 class="section" data-u="slvariable">SLVariable <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLVariable.sleela)</span></h2>
<div data-u="slvariable slvariable">
<h3 id="SLVariable">SLVariable <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLVariable used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>nameValue</code></td><td><span class="sig">String nameValue</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>value</code></td><td><span class="sig">double value</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>bound</code></td><td><span class="sig">boolean bound</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>bind</code></td><td><span class="sig">void bind(String n, double v)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>unbind</code></td><td><span class="sig">void unbind()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>get</code></td><td><span class="sig">double get()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>isBound</code></td><td><span class="sig">boolean isBound()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>variableName</code></td><td><span class="sig">String variableName()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slvariance">SLVariance <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLVariance.sleela)</span></h2>
<div data-u="slvariance slvariance">
<h3 id="SLVariance">SLVariance <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLVariance used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>mean</code></td><td><span class="sig">double mean(double[] xs, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>population</code></td><td><span class="sig">double population(double[] xs, int n)</span></td><td class="desc">Population variance (divides by n).</td></tr>
<tr><td><code>sample</code></td><td><span class="sig">double sample(double[] xs, int n)</span></td><td class="desc">Sample variance (divides by n-1, Bessel correction).</td></tr>
</table>
</div>
<h2 class="section" data-u="slvector">SLVector <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLVector.sleela)</span></h2>
<div data-u="slvector slvector">
<h3 id="SLVector">SLVector <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLVector used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>dot</code></td><td><span class="sig">double dot(double[] a, double[] b, int n)</span></td><td class="desc">Dense n-vector operations over caller-held double[] arrays.</td></tr>
<tr><td><code>norm</code></td><td><span class="sig">double norm(double[] a, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>add</code></td><td><span class="sig">void add(double[] a, double[] b, double[] out, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>scale</code></td><td><span class="sig">void scale(double[] a, double s, double[] out, int n)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slvector2">SLVector2 <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLVector2.sleela)</span></h2>
<div data-u="slvector2 slvector2">
<h3 id="SLVector2">SLVector2 <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLVector2 used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>x</code></td><td><span class="sig">double x</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>y</code></td><td><span class="sig">double y</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double px, double py)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>dot</code></td><td><span class="sig">double dot(SLVector2 o)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>length</code></td><td><span class="sig">double length()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cross</code></td><td><span class="sig">double cross(SLVector2 o)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>add</code></td><td><span class="sig">void add(SLVector2 o)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>scale</code></td><td><span class="sig">void scale(double s)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getX</code></td><td><span class="sig">double getX()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getY</code></td><td><span class="sig">double getY()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slvector3">SLVector3 <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLVector3.sleela)</span></h2>
<div data-u="slvector3 slvector3">
<h3 id="SLVector3">SLVector3 <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLVector3 used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>x</code></td><td><span class="sig">double x</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>y</code></td><td><span class="sig">double y</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>z</code></td><td><span class="sig">double z</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double px, double py, double pz)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>dot</code></td><td><span class="sig">double dot(SLVector3 o)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>length</code></td><td><span class="sig">double length()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>add</code></td><td><span class="sig">void add(SLVector3 o)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>scale</code></td><td><span class="sig">void scale(double s)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>cross</code></td><td><span class="sig">void cross(SLVector3 o, SLVector3 out)</span></td><td class="desc">Cross product written into `out`.</td></tr>
<tr><td><code>getX</code></td><td><span class="sig">double getX()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getY</code></td><td><span class="sig">double getY()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>getZ</code></td><td><span class="sig">double getZ()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slvector4">SLVector4 <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLVector4.sleela)</span></h2>
<div data-u="slvector4 slvector4">
<h3 id="SLVector4">SLVector4 <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLVector4 used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>x</code></td><td><span class="sig">double x</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>y</code></td><td><span class="sig">double y</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>z</code></td><td><span class="sig">double z</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>w</code></td><td><span class="sig">double w</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>set</code></td><td><span class="sig">void set(double px, double py, double pz, double pw)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>dot</code></td><td><span class="sig">double dot(SLVector4 o)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>length</code></td><td><span class="sig">double length()</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>scale</code></td><td><span class="sig">void scale(double s)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slvectorfield">SLVectorField <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLVectorField.sleela)</span></h2>
<div data-u="slvectorfield slvectorfield">
<h3 id="SLVectorField">SLVectorField <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLVectorField used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Fields</strong> — the named values this unit stores.</p>
<table class="members"><tr><th>Field</th><th>Declaration</th><th>What it holds</th></tr>
<tr><td><code>w</code></td><td><span class="sig">int w</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>h</code></td><td><span class="sig">int h</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>configure</code></td><td><span class="sig">void configure(int width, int height)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>divergence</code></td><td><span class="sig">double divergence(double[] u, double[] v, int x, int y, double spacing)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>magnitude</code></td><td><span class="sig">double magnitude(double ux, double vy)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<h2 class="section" data-u="slvectornorm">SLVectorNorm <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLVectorNorm.sleela)</span></h2>
<div data-u="slvectornorm slvectornorm">
<h3 id="SLVectorNorm">SLVectorNorm <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLVectorNorm used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>sqrt</code></td><td><span class="sig">double sqrt(double x)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
<tr><td><code>l1</code></td><td><span class="sig">double l1(double[] a, int n)</span></td><td class="desc">L1 (taxicab) norm.</td></tr>
<tr><td><code>l2</code></td><td><span class="sig">double l2(double[] a, int n)</span></td><td class="desc">L2 (Euclidean) norm.</td></tr>
<tr><td><code>lInf</code></td><td><span class="sig">double lInf(double[] a, int n)</span></td><td class="desc">L-infinity (maximum absolute component) norm.</td></tr>
</table>
</div>
<h2 class="section" data-u="slvectorprojection">SLVectorProjection <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLVectorProjection.sleela)</span></h2>
<div data-u="slvectorprojection slvectorprojection">
<h3 id="SLVectorProjection">SLVectorProjection <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLVectorProjection used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>coefficient</code></td><td><span class="sig">double coefficient(double[] a, double[] b, int n)</span></td><td class="desc">Scalar projection of a onto b: (a.b)/|b|^2 as the coefficient.</td></tr>
<tr><td><code>project</code></td><td><span class="sig">void project(double[] a, double[] b, double[] out, int n)</span></td><td class="desc">Vector projection of a onto b, written into `out`.</td></tr>
</table>
</div>
<h2 class="section" data-u="slzscore">SLZScore <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLZScore.sleela)</span></h2>
<div data-u="slzscore slzscore">
<h3 id="SLZScore">SLZScore <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLZScore used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>of</code></td><td><span class="sig">double of(double x, double mean, double stdDev)</span></td><td class="desc">The standard score (x - mean) / stddev.</td></tr>
<tr><td><code>unstandardize</code></td><td><span class="sig">double unstandardize(double z, double mean, double stdDev)</span></td><td class="desc">Recover the raw value from a z-score.</td></tr>
</table>
</div>
<h2 class="section" data-u="slztransform">SLZTransform <span class="pill syntax">#sleela 2.5</span> <span class="muted" style="font-size:13px">(lib/math/SLZTransform.sleela)</span></h2>
<div data-u="slztransform slztransform">
<h3 id="SLZTransform">SLZTransform <span class="pill">class</span></h3>
<p class="desc">Defines the SLeeLa standard-library type SLZTransform used within the math library family.</p>
<div class="meta-note">Carries the standard <strong>Metadata Class record</strong> — 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.</div>
<p class="muted"><strong>Methods</strong> — the actions this unit can perform.</p>
<table class="members"><tr><th>Method</th><th>Signature</th><th>What it does</th></tr>
<tr><td><code>evaluateReal</code></td><td><span class="sig">double evaluateReal(double[] x, int n, double z)</span></td><td class="desc"><span class="muted">No description in source.</span></td></tr>
</table>
</div>
<script>function flt(q){q=q.toLowerCase();document.querySelectorAll('[data-u]').forEach(function(el){el.style.display = el.getAttribute('data-u').indexOf(q)>=0||q==''?'':'none';});}</script>
<footer>
Generated by <code>tools/generate-sleeladoc-api.py</code> from the live
<code>/lib</code> tree on 2026-11-15 03:23 UTC.
SleelaDoc — the SLeeLa documentation brand. SLeeLa — MEARVK LLC · Max Rupplin · UNCW, NCSU, Harvard · 2026 · George Soros 2507-2608.
</footer>
</main>
</div>
</body>
</html>