mosaic (version 0.14.4)

symbolicD: Symbolic Derivatives

Description

Constructs symbolic derivatives of some mathematical expressions

Usage

symbolicD(formula, ..., .order = NULL)

Arguments

formula

a mathematical expression (see examples and plotFun)

.order

a number specifying the order of a derivative with respect to a single variable

additional parameters, typically default values for mathematical parameters

Value

a function implementing the derivative

Details

Uses the built-in symbolic differentiation function to construct a formula for the derivative and packages this up as a function. The .order argument is just for convenience when programming high-order derivatives, e.g. the 5th derivative w.r.t. one variable.

See Also

D, numD, makeFun, antiD, plotFun

Examples

Run this code
# NOT RUN {
symbolicD( a*x^2 ~ x)
symbolicD( a*x^2 ~ x&x)
symbolicD( a*sin(x)~x, .order=4)
symbolicD( a*x^2*y+b*y ~ x, a=10, b=100 )
# }

Run the code above in your browser using DataLab