changed behaviour of fsolve calling
Reported by Jakub Kopac
Originally assigned to Simon MARCHETTO
BUG DESCRIPTION:
----------------
changed behaviour of fsolve compared to 5.5.2 with no change in documentation.
if specified tolerance but not jacobian, fsolve no more accept [] as jacobian input.
ERROR LOG:
----------
fsolve: Wrong type for input argument #3: A scalar or a function expected.
HOW TO REPRODUCE THE BUG:
-------------------------
function fx = sub_nae(x)
fx = exp(-2*x)-x*x*x+6*x*x
endfunction
clc
x0 = 20
[x,fx,info] = fsolve(x0,sub_nae)
try
[x,fx,info] = fsolve(x0,sub_nae,[],1.0d-12)
catch
disp("this code works in scilab 5.5.2 but not in 6.0.0 alpha-1")
end
disp(x)
disp(fx)
disp(info)
OTHER INFORMATION:
------------------
possible solution will be update help page for fsolve (?)