diff(f, x) differentiates with respect to x; diff(f, x, 3) gives the
third derivative and diff(f, x, y) a mixed partial derivative. Without
variables, f must have exactly one free symbol. Derivatives of unknown
functions stay as Derivative() objects. This is a method for the base R
generic base::diff().
Usage
# S3 method for class 'sym'
diff(x, ..., evaluate = TRUE)Arguments
- x
A
symexpression.- ...
Variables, optionally each followed by a count.
- evaluate
If
FALSE, return an unevaluatedDerivative().