Displaying 1 result from an estimated 1 matches for "expr15".
Did you mean:
expr1
2007 Mar 20
2
Problems about Derivaties
...hat I have a function of this form:
f(x,y)=x^3+y^3+(x^2)*(y^2). With "deriv3" I can evaluate the first derivative
and the hessian matrix, as follows:
> d<-deriv3(~x^3+y^3+(x^2)*(y^2),c("x","y"))
> d[[1]]
{
.expr4 <- x^2
.expr5 <- y^2
.expr9 <- 2 * x
.expr15 <- 2 * y
.value <- x^3 + y^3 + .expr4 * .expr5
.grad <- array(0, c(length(.value), 2), list(NULL, c("x",
"y")))
.hessian <- array(0, c(length(.value), 2, 2), list(NULL,
c("x", "y"), c("x", "y")))
.grad[, "x"] <- 3...