[R] Solving a system of two equations

2012-09-10 Thread berg1546
Hi, I am trying to find a simple way to numerically solve a system of two equations equal to zero with two unknowns (x_loc and y_loc). Here is a mock data set and below it, the equations I need to solve. theta-c(180,135,90)/(2*pi) x-c(0,0,15) y-c(20,0,0) 0 =

Re: [R] Solving a system of two equations

2012-09-10 Thread Berend Hasselman
On 10-09-2012, at 01:22, berg1546 wrote: Hi, I am trying to find a simple way to numerically solve a system of two equations equal to zero with two unknowns (x_loc and y_loc). Here is a mock data set and below it, the equations I need to solve. theta-c(180,135,90)/(2*pi) x-c(0,0,15)

Re: [R] Solving a system of two equations

2012-09-10 Thread berg1546
Thank you for your suggestion - my only question is what is the 'par' variable? -- View this message in context: http://r.789695.n4.nabble.com/Solving-a-system-of-two-equations-tp4642626p4642657.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Solving a system of two equations

2012-09-10 Thread Berend Hasselman
On 10-09-2012, at 17:10, berg1546 wrote: Thank you for your suggestion - my only question is what is the 'par' variable? par is the argument of the function f. So when you do a - c(2,3) f(a) then in the body of the function par will be equal to c(2,3). I strongly advise you to read