The cdfgam function can fail silently.
Reported by Michael BAUDIN
-- Bug description --
The cdfgam function can fail silently.
-->shape = 0.5
shape =
0.5
-->shape1 = cdfgam("Shape",1,0,1,0)
shape1 =
5.
-->abs(shape1-shape)/abs(shape)
ans =
9.
There is no accurate digit in the result. I guess that the returned value is just the starting value of the iterative Bus-Dekker algorithm.
-- Scilab error message --
-- How to reproduce the bug --
rate = 1
p = 0
q = 1
x = 0
shape1 = cdfgam("Shape",1,0,1,0)
abs(shape1-shape)/abs(shape)