Hi all, I've a linear equation of the form: 0.95=2 ( [3+ln(x/3)]^-13 + 4 [3+2ln(x/3)]^-13 + [3+4ln(x/3)]^-13 ) and I want to solve it for x, can I do this using R? Thanks in advance. Maram. [[alternative HTML version deleted]]
On Wed, 4 Nov 2009 04:34:36 -0800 (PST) maram salem <marammagdysalem at yahoo.com> wrote:> I've a linear equation of the form: > 0.95=2 ( [3+ln(x/3)]^-13? + 4 [3+2ln(x/3)]^-13? + [3+4ln(x/3)]^-13 ) > > and I want to solve it for x, can I do this using R?Yup. Use the 'uniroot' function (assuming that your equation only has one solution). BTW, your equation doesn't look very linear to me ... -- Karl Ove Hufthammer
maram salem wrote:> > Hi all, > I've a linear equation of the form: > 0.95=2 ( [3+ln(x/3)]^-13? + 4 [3+2ln(x/3)]^-13? + [3+4ln(x/3)]^-13 ) > > and I want to solve it for x, can I do this using R? >The equation is (highly) nonlinear. Use uniroot. Do plot your function for several different intervals. It has multiple zeros. Berend -- View this message in context: http://old.nabble.com/solving-a-linear-equation-tp26195545p26195940.html Sent from the R help mailing list archive at Nabble.com.
Reasonably Related Threads
- Fw: solving a linear equation
- Strange behavior when using progress bar (Fwd: Re: [R] The code itself disappears after starting to execute the for loop)
- The code itself disappears after starting to execute the for loop
- The code itself disappears after starting to execute the for loop
- axis label