R/calculus.R
der2.Rd
Symbolic differentiation of second order of an expression
der2(expr, vars, simplify = TRUE)
A caracas_symbol
caracas_symbol
variables to take derivate with respect to
Simplify result
if (has_sympy()) { x <- symbol("x") y <- symbol("y") f <- 3*x^2 + x*y^2 der2(f, x) h <- der2(f, list(x, y)) h dim(h) H <- matrify(h) H dim(H) } #> [1] 2 2