joelahoover / mathjs-simple-integral

Extends Math.js to be able to compute simple integrals.
Apache License 2.0
36 stars 9 forks source link

Patched integral.js for mathjs 7.0.1 #4

Open JThobbyist opened 4 years ago

JThobbyist commented 4 years ago

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
aleksasiriski commented 1 year ago

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.

JThobbyist commented 1 year ago

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: @.***>