Skip to content

rajsite/exorbitant

Repository files navigation

exorbitant

Web calculator library

Example cli usage

  1. Open the demo link to run the exorbitant REPL on the WebAssembly.sh.
  2. Run the following example math expression:
    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 {createExorbitantRuntime} = require('exorbitant');
(async () => {
    const exorbitant = await createExorbitantRuntime().createExorbitant({
        expression: 'var a[15]:={1}; var b[8]; fir1(7,0.35,b); var c[22]; conv(a,b,c); print(c);'
    });
    exorbitant.value();
})().catch(ex => {
    console.error(ex);
    process.exit(1);
});