math-diff
v1.0.3
Published
Symbolic differentiation plugin for Math.js
Downloads
5
Readme
math-diff
NPM package for symbolic differentiation plugin math.diff.js.
Install
npm install math-diff --save
Usage
let math_diff = require('math-diff');
let equation = '2x^5-cos(x)-x*exp(x)';
let derivative = math_diff(equation, 'x').toString(); // Output: 10 * x ^ 4 - -sin(x) - (exp(x) + x * exp'(x))