Description Usage Arguments Value Examples
extract_attr_deriv
converts attributes(hessian/gradient) of deriv()
into a
matrix of character strings.
1 | extract_attr_deriv(ex, attribute)
|
ex |
Expression of derivative. Results of |
attribute |
"grad" for gradient or "hessian" for the Hessian matrix. |
Returns a matrix of character strings.
1 2 3 4 | eq <- parse(text="2*(log(sin(x)/log(x)))+x^4*log(x)+cos(y+x)")
tt <- deriv(eq, c("x", "y"), hessian=TRUE)
g <- tt%>%extract_attr_deriv(., attribute = "grad")
h <- tt%>%extract_attr_deriv(., attribute = "hessian")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.