D-SymEngineDataType-method: Derivatives of a Symbolic Expression

Description Usage Arguments Value Examples

Description

S4 method of D defined for Basic. It returns the derivative of expr with regards to name. name may be missing if there is only one symbol in expr.

Usage

1
2
## S4 method for signature 'SymEngineDataType'
D(expr, name)

Arguments

expr

A Basic object.

name

A character vector or a Basic object of type Symbol.

Value

Same type as expr argument.

Examples

1
2
3
4
expr <- S(~ exp(x))
D(expr) == expr
expr <- S(~ x^2 + 2*x + 1)
D(expr)

symengine documentation built on July 8, 2020, 6:20 p.m.