Re: [R] solve the equation in R

2012-05-17 Thread Ted Harding
On 17-May-2012 21:50:17 Petr Savicky wrote: > On Thu, May 17, 2012 at 01:53:39PM -0500, Pei-Ling Lin wrote: >> Hi all, >> >> I need to solve this following equation which the unknown value (here is >> "a") is on the exponent place, could anybody please help me to figure it >> out? I tried to use l

Re: [R] solve the equation in R

2012-05-17 Thread Petr Savicky
On Thu, May 17, 2012 at 01:53:39PM -0500, Pei-Ling Lin wrote: > Hi all, > > I need to solve this following equation which the unknown value (here is "a") > is on the exponent place, could anybody please help me to figure it out? I > tried to use lm.sol() or solve() function but it doesn't work..

Re: [R] solve the equation in R

2012-05-17 Thread R. Michael Weylandt
You could probably find a way to do this using nls(), optim() or uniroot() but this seems to be very much a homework problem so I won't say more. solve() solves matrix linear equations... not what you want here. Read the docs. Michael On Thu, May 17, 2012 at 2:53 PM, Pei-Ling Lin wrote: > Hi al

[R] solve the equation in R

2012-05-17 Thread Pei-Ling Lin
Hi all, I need to solve this following equation which the unknown value (here is "a") is on the exponent place, could anybody please help me to figure it out? I tried to use lm.sol() or solve() function but it doesn't work.. Thanks for help, Peiling (x, y) = (2.21, 1.01) y = 1 +