fun2 <- function(Y){
X <- (7-4*(Y^2))/3
2*exp(X)+X^2+3*Y
}
plot(fun2)
fun2.0 <- 2*exp(1)+4
abline(h=fun2.0)From here, one can read the solution from the plot: Y is approximately 1.
If you want more than this, see "?optim", work the examples, etc. If you want more than this, check the references given with "?optim".
hope this helps. spencer graves
??? wrote:
Hello:
I have a question in Math. If we want to get X's and Y's solution, X>0 and Y>0 We have two equation :
2*exp(X)+X^2+3*Y=2*exp(1)+4 3*X+4*(Y^2)=7
How I use R-project to solve above question??
THANKS YOU !!!! HLC [[alternative HTML version deleted]]
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
