Post Reply 
overflow
03-08-2020, 08:13 PM (This post was last modified: 03-08-2020 08:13 PM by DA74254.)
Post: #9
RE: overflow
(03-08-2020 01:07 PM)Joe Horn Wrote:  Here's one way of doing 2018^2442 on the Prime. Please note that in CAS, pressing the LOG key types the log10() function, and Shift LOG types the alog10() function.

(1) Be sure you're in CAS view. This doesn't work in Home. Why? Dunno.
(2) log10(2018.)*2442 [Be sure to include the decimal point!] --> 8070.61747736
(3) alog10(fp(Ans)) --> 4.1445497719

The first result (in step 2) tells us the exponent of the final answer: 8070. Ignore everything after the decimal point.
The second result (in step 3) gives us the mantissa of the final answer: 4.14455 (rounded off)
Therefore, the answer for 2018^2442 is 4.14455 × 10^8070.

Please note that step 3 will almost always return some inaccurate digits, since it chops off the integer part of step 2's result, thereby losing that many digits of accuracy. In the above example, step 3 returns 4.1445497719, but the last 3 digits of that are wrong. So always discard the last few digits from step 3's result.

Programming the above method is trivial, and is left to the student for homework. Smile

My emphasis. What do you mean with this? I just get a "syntax error" on that. What does "fp" mean?

Esben
28s, 35s, 49G+, 50G, Prime G2 HW D, SwissMicros DM42, DM32, WP43 Pilot
Elektronika MK-52 & MK-61
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
overflow - MathewFrancy - 03-08-2020, 04:57 AM
RE: overflow - Joe Horn - 03-08-2020, 01:07 PM
RE: overflow - DA74254 - 03-08-2020 08:13 PM
RE: overflow - toml_12953 - 03-08-2020, 09:23 PM
RE: overflow - CyberAngel - 03-08-2020, 10:12 PM
RE: overflow - CyberAngel - 03-08-2020, 02:37 PM
RE: overflow - John Keith - 03-08-2020, 11:55 PM
RE: overflow - Albert Chan - 03-08-2020, 02:52 PM
RE: overflow - J-F Garnier - 03-08-2020, 08:29 PM
RE: overflow - Wes Loewer - 03-08-2020, 04:25 PM
RE: overflow - CyberAngel - 03-08-2020, 05:43 PM
RE: overflow - Wes Loewer - 03-08-2020, 07:22 PM
RE: overflow - Wes Loewer - 03-08-2020, 07:52 PM
RE: overflow - DA74254 - 03-08-2020, 09:38 PM
RE: overflow - StephenG1CMZ - 03-11-2020, 05:16 PM
RE: overflow - CyberAngel - 03-11-2020, 06:18 PM



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