Description Usage Arguments Value Examples
convert_attr2exp
converts symbolic attribute of derivative into expression object.
1 | convert_attr2exp(obj)
|
obj |
Symbolic expression of gradient or hessian |
combine expression of derivatives
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"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.