expression expression_or_vector | Returns the appropriate value if possible otherwise it returns the function with the simplified expression |
expression x | The variable with respect to differentiate |
expression n | (Optional) The nth derivative. |
var x = nerdamer('diff(cos(x)*sin(x), x)');
console.log(x.toString());
var y = nerdamer('diff([x^2, cos(x), 1], x, 2)'); //second derivative
console.log(y.toString());
var y = nerdamer('diff(x^3+a*x^3+x^2, x, 2)'); //second derivative
console.log(y.toString());
x = nerdamer.diff(nerdamer('x^2').add(1).multiply('tan(x)'), 'x')
console.log(x.toString())