Post Reply 
%NFACT bug
01-09-2014, 03:02 AM
Post: #5
RE: %NFACT bug
(01-08-2014 06:12 PM)Han Wrote:  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.

Ah! That's it. Thanks so much.

(01-08-2014 06:12 PM)Han Wrote:  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.
Yes I think that's fair. A good way to look at it is that %NFACT expects a DOREAL integer argument greater than zero. The fact that it returns something sort-of meaningful for DOREAL integers less than -1 is just coincidence.

Thanks for your help!
Dave
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)