Post Reply 
(12C) Check if given number is Prime Number or not
09-14-2018, 12:18 PM
Post: #14
RE: (12C) Check if given number is Prime Number or not
(09-13-2018 08:52 PM)rprosperi Wrote:  12C+: 9.999999999
12C Emulator: 9.999999999
12CP: 10.00000000
12CP Emulator: 10.00000000
...
12C Emulator: 0.000000000
12CP: 0.330000000
12CP Emulator: 0.333330000 <=== wink, wink, nudge, nudge, say no more!

Thank you, Bob. Very enlightening, indeed. So the emulator does not seem to round the internal 15-digit result back to 12 digits. I wonder if this also applies to other functions. What does frac(sqrt(2E8)) return? 0,1356237 or are there more decimals? In the latter case the final digit(s) may be slightly off. 15 digits internal precision does not mean that in the end all 15 are correct.

Anyway, the emulator obviously does not emulate a 12C Platinum. This means that it can and will produce results that do not match those from a hardware calculator.

As the 12C and 12C Platinum have different precision this also means that 12C programs can give other results if run on the 12C Platinum. I wonder if this also applies to the working range: usually the 12-digit calculators operate in a domain of 1E–499 to 9,999...E+499. Is this also true for the 12C Platinum? Does e^500 produce an overflow error or does it return 1,40359...E+217 ?

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (12C) Check if given number is Prime Number or not - Dieter - 09-14-2018 12:18 PM



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