squiggle/packages/squiggle-lang/src/rescript/Utility/MathjsWrapper.js

10 lines
147 B
JavaScript
Raw Normal View History

const math = require("mathjs");
function parseMath(f) {
2022-04-11 00:51:43 +00:00
return JSON.parse(JSON.stringify(math.parse(f)));
}
module.exports = {
2022-04-11 00:51:43 +00:00
parseMath,
};