Re: [R] solving a linear equation

2009-11-04 Thread Berend Hasselman
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

Re: [R] solving a linear equation

2009-11-04 Thread Karl Ove Hufthammer
On Wed, 4 Nov 2009 04:34:36 -0800 (PST) maram salem 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

[R] solving a linear equation

2009-11-04 Thread maram salem
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]] __ R-h