convert_attr2exp: 'convert_attr2exp' converts symbolic attribute of derivative...

Description Usage Arguments Value Examples

Description

convert_attr2exp converts symbolic attribute of derivative into expression object.

Usage

1

Arguments

obj

Symbolic expression of gradient or hessian

Value

combine expression of derivatives

Examples

1
2
3
4
eq1 <- parse(text="2*(log(sin(x)/log(x)))+x^4*log(x)+cos(y+x)")
tt1 <- deriv(eq1, c("x", "y"), hessian=TRUE)
r1 <- convert_attr2exp(extract_attr_deriv(tt1, "grad"))
r2 <- convert_attr2exp(extract_attr_deriv(tt1, "hessian"))

nmm documentation built on Jan. 7, 2021, 5:10 p.m.

Related to convert_attr2exp in nmm...