newDeriv {nlsr} | R Documentation |
newDeriv
Description
Define a new derivative expression.
Usage
newDeriv (expr, deriv, derivEnv = sysDerivs)
Arguments
expr |
An expression represented as a quoted expression. |
deriv |
The derivative. See Details below. |
derivEnv |
The environment in which to store the setting. |
Details
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.
Examples
newDeriv(sin(x), cos(x)*D(x))
newDeriv(x*y, x*D(y) + D(x)*y)
nlsDeriv(quote(sin(x)*sin(y)), "x")
[Package nlsr version 2023.8.31 Index]