Skip to content
Prev 206936 / 398503 Next

Error meaning

When I look at this line:

f4 <- pars[1]*pars[2]*pars[3](pars[1]+pars[4])

It appears to my wet-brain interpreter that you are trying to apply a  
function par[3] to the argument (pars[1]+pars[4])

When I insert a "*", I then get output but I don't know if it is  
correct.

 > newton.input2(pars)
$fval
[1]   46.00 3956.00 6181.25 4439.00

$jacobian
      [,1]      [,2]   [,3]  [,4]
[1,]   40      1.15      0 0e+00
[2,] 5280    197.80      0 0e+00
[3,] 8250    247.25      0 0e+00
[4,] 6160 126950.00 101560 1e+05