newDeriv function

newDeriv

newDeriv

Define a new derivative expression.

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")
  • Maintainer: John C Nash
  • License: GPL-2
  • Last published: 2023-09-05

Useful links