powered by
Define a new derivative expression.
newDeriv (expr, deriv, derivEnv = sysDerivs)
An expression represented as a quoted expression.
The derivative. See Details below.
The environment in which to store the setting.
Both expr and deriv are treated as unevaluated expressions.
expr
deriv
deriv should include the sum of derivatives with respect to all variables similar to a “total derivative” using D for the differential. See the examples below.
D
This is mainly intended for internal use.
newDeriv(sin(x), cos(x)*D(x)) newDeriv(x*y, x*D(y) + D(x)*y) nlsDeriv(quote(sin(x)*sin(y)), "x")
Run the code above in your browser using DataLab