Skip to content

Comments

Patched integral.js for mathjs 7.0.1#4

Open
JoeTeglasi wants to merge 1 commit intojoelahoover:masterfrom
JoeTeglasi:master
Open

Patched integral.js for mathjs 7.0.1#4
JoeTeglasi wants to merge 1 commit intojoelahoover:masterfrom
JoeTeglasi:master

Conversation

@JoeTeglasi
Copy link

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

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
@cshaa cshaa mentioned this pull request Jul 19, 2020
@aleksasiriski
Copy link

aleksasiriski commented Jan 23, 2023

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.

@JoeTeglasi
Copy link
Author

JoeTeglasi commented Jan 23, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants