Post Reply 
CAS: (2^10)! is undefined?
10-27-2018, 06:31 PM
Post: #8
RE: CAS: (2^10)! is undefined?
@sasa:
I insist: it's not a bug, a bug is a logic error that you can fix, but here you can not avoid an upper limit for integer factorial computations because memory and time is limited. The only questions are: what is the limit and what do we do if we are above the limit (I agree that 1000 could probably be raised a little, but if it's one million or 1000, the question remains : what do we do above). I explained why I decided to return undef instead of introducing things like overflow. Perhaps +infinity would be better in some situations (that is what you would probably get with floats), but in other situations it is not: for example if you divide 1007! by 1007. You compare with floating points, but approx computations are different from exact computations, for example there is no limit command, and detecting undef is very important in limit in order to call the mrv algorithm if it is required.

Now, you say:"We both share the same fields of interest/profession (probably age as well) and we both was done the same - only difference is that I done my own for fun only". But I don't believe it's the only difference, at least not without testing your software. Perhaps your software is a toy-CAS and you do not really realize all the constraints to run a full-featured CAS.
Let us see your system and it's capabilities before continuing the discussion ... speaking is easy.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
CAS: (2^10)! is undefined? - sasa - 10-27-2018, 03:41 AM
RE: CAS: (2^10)! is undefined? - parisse - 10-27-2018, 04:58 AM
RE: CAS: (2^10)! is undefined? - sasa - 10-27-2018, 05:13 AM
RE: CAS: (2^10)! is undefined? - Voldemar - 10-27-2018, 09:59 AM
RE: CAS: (2^10)! is undefined? - parisse - 10-27-2018, 03:27 PM
RE: CAS: (2^10)! is undefined? - sasa - 10-27-2018, 04:56 PM
RE: CAS: (2^10)! is undefined? - parisse - 10-27-2018 06:31 PM
RE: CAS: (2^10)! is undefined? - sasa - 10-27-2018, 07:59 PM
RE: CAS: (2^10)! is undefined? - sasa - 10-27-2018, 08:55 PM
RE: CAS: (2^10)! is undefined? - sasa - 10-27-2018, 10:17 PM
RE: CAS: (2^10)! is undefined? - NetMage - 10-28-2018, 03:14 AM
RE: CAS: (2^10)! is undefined? - parisse - 10-28-2018, 06:17 AM
RE: CAS: (2^10)! is undefined? - Aries - 10-28-2018, 10:30 AM
RE: CAS: (2^10)! is undefined? - parisse - 10-28-2018, 10:33 AM
RE: CAS: (2^10)! is undefined? - Komanguy - 11-09-2018, 10:09 AM



User(s) browsing this thread: