Forgotten case step==0 is reintroduced:
.../...
a) if stop is %nan => error
b) if start or step is %nan => returns %nan
 could be split into
    b1) if start is %nan => return %nan
b2) if step is %nan => return start: the first element is well defined and could be returned. c) = iii): if start < end && step < 0 => return [], even if start, step or stop is/are inf/-inf d) = iv): if start > end && step > 0 => return [], even if start, step or stop is/are inf/-inf
e) if |stop| ~= inf  && |step|==inf => return start (even if it is +-inf)
f) if start or stop or both are inf or -inf => error, even when |step| is inf
g) if step==0:
    g1) if start~=stop  => error
    g2) else => return start
h) otherwise: normal computation.

Sorry for the noise.
SG
_______________________________________________
dev mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/dev

Reply via email to