mathjs-simple-integral
mathjs-simple-integral copied to clipboard
Patched integral.js for mathjs 7.0.1
example usage:
const { create, all } = require('mathjs');
const math = create(all);
const integral = require('./integral.js');
math.import( [[integral]] ); //simulates importing the npm package, which nests it [[]]
console.log(math.integrate('10y+4x^2','x').toString())
//10 * y * x + x ^ 3 * 4 / 3
How do I use this in a browser? Official Mathjs has a simple link that I can add as a script and use (I'm making a static webpage, so no server) and I wanted to implement this simple integral function.
If all else fails, you can always use webpackOn Jan 23, 2023, at 5:20 PM, Aleksa Siriški @.***> wrote: How do I use this in a browser? Official Mathjs has a simple link that I can add as a script and use (I'm making a static webpage, so no server) and I wanted to implement this simple integral function.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>