newDeriv | R Documentation |
Define a new derivative expression.
newDeriv (expr, deriv, derivEnv = sysDerivs)
expr |
An expression represented as a quoted expression. |
deriv |
The derivative. See Details below. |
derivEnv |
The environment in which to store the setting. |
Both expr
and deriv
are treated
as unevaluated expressions.
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.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.