D-SymEngineDataType-method: Derivatives of a Symbolic Expression

D,SymEngineDataType-methodR Documentation

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 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

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

symengine documentation built on Oct. 23, 2022, 5:06 p.m.