**From:** Spencer Graves (*spencer.graves@pdf.com*)

**Date:** Sun 02 May 2004 - 05:40:48 EST

**Next message:**Duncan Murdoch: "Re: [R] results from t-test"**Previous message:**¶À·G¥à: "[R] ONE QUESTION IN R-PROJECT"**In reply to:**¶À·G¥à: "[R] ONE QUESTION IN R-PROJECT"

Message-id: <4093FD40.1070205@pdf.com>

It depends. If I had only this specific set of equations to solve, and

I wanted an answer in the next few minutes, I might solve the second

equation to give X in terms of Y , substitute the result in the first,

then plot the result over a range that seemed plausible.

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]]
*

*>
*

*>______________________________________________
*

*>R-help@stat.math.ethz.ch 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
*

*>
*

*>
*

______________________________________________

R-help@stat.math.ethz.ch 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

**Next message:**Duncan Murdoch: "Re: [R] results from t-test"**Previous message:**¶À·G¥à: "[R] ONE QUESTION IN R-PROJECT"**In reply to:**¶À·G¥à: "[R] ONE QUESTION IN R-PROJECT"

*
This archive was generated by hypermail 2.1.3
: Mon 31 May 2004 - 23:05:07 EST
*