Learn R Programming

caracas (version 1.0.1)

der: Symbolic differentiation of an expression

Description

Symbolic differentiation of an expression

Usage

der(expr, vars)

Arguments

expr

A caracas_symbol

vars

variables to take derivate with respect to

Examples

Run this code
# NOT RUN {
if (have_sympy()) {
  x <- symbol("x")
  y <- symbol("y")
  f <- 3*x^2 + x*y^2
  der(f, x)
}

# }

Run the code above in your browser using DataLab