exorbitant

Web calculator library

Usage no npm install needed!

<script type="module">
  import exorbitant from 'https://cdn.skypack.dev/exorbitant';
</script>

README

exorbitant

Web calculator library

Example command

var a[15]:={1}; var b[8]; fir1(7,0.35,b); var c[22]; conv(a,b,c); print(c);

Example node usage

const {createExorbitant} = require('exorbitant');
(async function () {
    const exorbitant = await createExorbitant();
    const symbolTable = exorbitant.createSymbolTable();
    const expression = exorbitant.createExpression();
    const parser = exorbitant.createParser();

    expression.registerSymbolTable(symbolTable);
    parser.compile(`var a[15]:={1}; var b[8]; fir1(7,0.35,b); var c[22]; conv(a,b,c); print(c);`, expression);
    expression.value();
}()).catch(ex => console.log(ex));