Re: [R] Solve system of equations (nleqslv) only returns origin

2012-12-04 Thread Berend Hasselman
On 04-12-2012, at 18:50, Berend Hasselman wrote: > > > You should return the vector y i.e. function values. > But y has length 4 and x has length 4. > x has length 5 of course. Berend > So where is the fifth value for y? > >> } >> >> Xstart=c(1, 200, 0.5, 0.5, 12) >> fstart= firstor

Re: [R] Solve system of equations (nleqslv) only returns origin

2012-12-04 Thread Berend Hasselman
On 04-12-2012, at 17:06, Alicia Ellis wrote: > I'm solving 4 complex equations simultaneously. Code is below. The code > returns only zero's for the solution though there should also be a non-zero > result. I'm pretty confident that the equations are correct because they > are straight from a

[R] Solve system of equations (nleqslv) only returns origin

2012-12-04 Thread Alicia Ellis
I'm solving 4 complex equations simultaneously. Code is below. The code returns only zero's for the solution though there should also be a non-zero result. I'm pretty confident that the equations are correct because they are straight from a published paper and I checked them pretty thoroughly. T