matrify | R Documentation |
Creates matrix from array symbol
matrify(x)
x |
Array symbol to convert to matrix |
if (has_sympy()) {
x <- symbol("x")
y <- symbol("y")
f <- 3*x^2 + x*y^2
matrify(f)
h <- der2(f, list(x, y))
h
dim(h)
H <- matrify(h)
H
dim(H)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.