Post Reply 
Dividing factorials on 15C CE
01-11-2024, 10:04 PM
Post: #25
RE: Dividing factorials on 15C CE
(01-11-2024 07:13 PM)David Hayden Wrote:  
(01-10-2024 07:54 PM)Thomas Klemm Wrote:  I just hope we clarified that David was not talking about the division 49/2 but about (1 * 50/1 * 49)/2.
Which is indeed an integer.
Exactly right. When we evaluate 1 * 50 / 1 * 49 / 2 * 48 / 3 * 47 / 4 * 46 / 5 * 45 / 6 * 44 / 7 * 43 / 8 * ... * 7 / 44 * 6 / 45 from left to right, each division results in an integer.

Yes, it's an integer, but not necessary free of rounding errors if the intermediate results exceed the digit capacity of the machine.
This could happen here on a 15c for instance (if it was using this implementation for comb, that it does not) since the intermediate values exceed 1e14 for a final result of about 2118760.

J-F
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Dividing factorials on 15C CE - philiph - 01-06-2024, 10:38 AM
RE: Dividing factorials on 15C CE - Werner - 01-06-2024, 02:13 PM
RE: Dividing factorials on 15C CE - Werner - 01-07-2024, 09:03 AM
RE: Dividing factorials on 15C CE - Johnh - 01-06-2024, 07:23 PM
RE: Dividing factorials on 15C CE - Johnh - 01-10-2024, 09:22 AM
RE: Dividing factorials on 15C CE - jthole - 01-07-2024, 09:29 AM
RE: Dividing factorials on 15C CE - J-F Garnier - 01-11-2024 10:04 PM



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