While fixing the bug 7562 about a bad memory usage by factorial(),
i was wondering about the poor factorial() result, since currently
it can process only integers in [0, 170] before saturating and returning
This Scilab Enhancement Proposed (SEP) aims to extend factorial()
to all integers in [0, 10^4].
To do this, two new output arguments are proposed :
* p : the power of 10 of the result
* m : the mantissa of the result, in [1, 10[
The new syntaxes with p and m, and relative errors are presented in the
prospective factorial help page
This SEP comes after a wish reported as bug 15517
Comments are welcome.
users mailing list