I have the following r code, which needs to be translated into c++ code.
f <- function(x)
{
exp(x) - x^4
}
uniroot(f, c(0, 3))
rosenbrock <- function(x)
{
(1-x[1])^2 +100*(x[2]-x[1]^2)^2
}
optim(c(0,0), rosenbrock, method = "BFGS")
I have the following r code, which needs to be translated into c++ code.
f <- function(x)
{
exp(x) - x^4
}
uniroot(f, c(0, 3))
rosenbrock <- function(x)
{
(1-x[1])^2 +100*(x[2]-x[1]^2)^2
}
optim(c(0,0), rosenbrock, method = "BFGS")
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.