Learn R Programming

symengine (version 0.2.10)

D,SymEngineDataType-method: Derivatives of a Symbolic Expression

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

# S4 method for SymEngineDataType
D(expr, name)

Value

Same type as expr argument.

Arguments

expr

A Basic object.

name

A character vector or a Basic object of type Symbol.

Examples

Run this code
expr <- S(~ exp(x))
D(expr) == expr
expr <- S(~ x^2 + 2*x + 1)
D(expr)

Run the code above in your browser using DataLab