UNPKG

theorem.js

Version:

A Math library for computation in JavaScript

11 lines (10 loc) 142 B
run(f, x) { x = new BigNumber(x).toNumber() let out = 0 try { out = f.core(x) } catch(e) { throw `[TheoremJS]: ${e}` } return out }