Dear R-Help, I am trying to use R to solve a nonlinear equation many times for different values. I am looking for a mathematical nonlinear equation solution which may not have a closed solution form. For example, I have equation: 2 = (t^2)/log(t) What is t? I am wondering how to solve it in R. Many thanks, Zhu Wang Statistical Science Department SMU.
nonlinear equation solver?
4 messages · Wang, Zhu, Murray Jorgensen, Spencer Graves +1 more
For this equation you are out of luck as log(z) < z for all positive z's (such as t^2). More generally you should consult a numerical analysis textbook for advice on the solution of nonlinear equations. There you will read about many algorithms in common use by statisticians. Murray Jorgensen
Wang, Zhu wrote:
Dear R-Help, I am trying to use R to solve a nonlinear equation many times for different values. I am looking for a mathematical nonlinear equation solution which may not have a closed solution form. For example, I have equation: 2 = (t^2)/log(t) What is t? I am wondering how to solve it in R. Many thanks, Zhu Wang Statistical Science Department SMU.
______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Dr Murray Jorgensen http://www.stats.waikato.ac.nz/Staff/maj.html Department of Statistics, University of Waikato, Hamilton, New Zealand Email: maj at waikato.ac.nz Fax 7 838 4155 Phone +64 7 838 4773 wk +64 7 849 6486 home Mobile 021 1395 862
You may also wise to consider a book on nonlinear regression such as Bates and Watts (1988) Nonlinear Regression Analysis and Its Applications (Wiley). hope this helps. spencer graves
Murray Jorgensen wrote:
For this equation you are out of luck as log(z) < z for all positive z's (such as t^2). More generally you should consult a numerical analysis textbook for advice on the solution of nonlinear equations. There you will read about many algorithms in common use by statisticians. Murray Jorgensen Wang, Zhu wrote:
Dear R-Help, I am trying to use R to solve a nonlinear equation many times for different values. I am looking for a mathematical nonlinear equation solution which may not have a closed solution form. For example, I have equation: 2 = (t^2)/log(t) What is t? I am wondering how to solve it in R. Many thanks, Zhu Wang Statistical Science Department SMU.
______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
I think what you are looking for is uniroot(). -roger _______________________________ UCLA Department of Statistics http://www.stat.ucla.edu/~rpeng
On Sun, 20 Apr 2003, Wang, Zhu wrote:
Dear R-Help, I am trying to use R to solve a nonlinear equation many times for different values. I am looking for a mathematical nonlinear equation solution which may not have a closed solution form. For example, I have equation: 2 = (t^2)/log(t) What is t? I am wondering how to solve it in R. Many thanks, Zhu Wang Statistical Science Department SMU.
______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help