Post Reply 
%NFACT bug
01-08-2014, 06:12 PM
Post: #4
RE: %NFACT bug
If I am not mistaken, is flag 22 is for cases when you truly have infinity (such as division by 0), whereas flag 21 is for overflow. %NFACT does respect flag 21.

As for the second issue, it has to do with the fact at %NFACT (and pretty much any other SysRPL command) does not do any argument checking. That it works for almost any decimal value is a mere bonus due to the algorithm implemented. Basically the algorithm checks a few special cases and then proceeds with the general algorithm, which fails for the case when the input \( x \) satisfies \( x\in (-1,1) \). Perhaps you are expecting it to return the factorial of any real number, whereas the program is designed to return the factorial of an DOREAL integer.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
%NFACT bug - David Hayden - 01-08-2014, 03:01 AM
RE: %NFACT bug - Han - 01-08-2014, 03:14 AM
RE: %NFACT bug - David Hayden - 01-08-2014, 01:32 PM
RE: %NFACT bug - Han - 01-08-2014 06:12 PM
RE: %NFACT bug - David Hayden - 01-09-2014, 03:02 AM



User(s) browsing this thread: 1 Guest(s)