[R] solving a linear equation

Karl Ove Hufthammer karl at huftis.org
Wed Nov 4 13:56:39 CET 2009


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




More information about the R-help mailing list