Thanks to all.
I know how to solve it numerically but I am just wondering if there is a function already in R or S. I guess I have to implement some C codes then.
Thanks to Murray for good observation.
I am not sure why optim function is working in general to solve a nonlinear equation from Patrick's advice.
-----Original Message-----
From: Murray Jorgensen [mailto:maj at stats.waikato.ac.nz]
Sent: Mon 4/21/2003 12:13 AM
To: Wang, Zhu
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] nonlinear equation solver?