UNPKG

857 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.derivativeDocs = void 0;
7var derivativeDocs = {
8 name: 'derivative',
9 category: 'Algebra',
10 syntax: ['derivative(expr, variable)', 'derivative(expr, variable, {simplify: boolean})'],
11 description: 'Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.',
12 examples: ['derivative("2x^3", "x")', 'derivative("2x^3", "x", {simplify: false})', 'derivative("2x^2 + 3x + 4", "x")', 'derivative("sin(2x)", "x")', 'f = parse("x^2 + x")', 'x = parse("x")', 'df = derivative(f, x)', 'df.evaluate({x: 3})'],
13 seealso: ['simplify', 'parse', 'evaluate']
14};
15exports.derivativeDocs = derivativeDocs;
\No newline at end of file