CAS: log of large integers?
05-21-2015, 06:37 AM
Post: #1
 Joe Horn Senior Member Posts: 2,003 Joined: Dec 2013
CAS: log of large integers?
The HP 50g nicely returns 777 if you do 777 ALOG LOG in exact mode, even though 10^777 is larger than the 50g's MAXREAL. But Prime returns +Inf for log10(10^777), even though 10^777 is an exact integer. Apparently Prime first tries to convert the argument to a real, which in this case immediately overflows.

Question: How can Prime be programmed to return the approximate common log of exact integers which are greater than CAS's MAXREAL? The program should work on any large integer, even square-free integers (even the 50g has trouble with those).

<0|ΙΈ|0>
-Joe-
 « Next Oldest | Next Newest »

 Messages In This Thread CAS: log of large integers? - Joe Horn - 05-21-2015 06:37 AM RE: CAS: log of large integers? - parisse - 05-21-2015, 11:28 AM RE: CAS: log of large integers? - Wes Loewer - 05-21-2015, 04:20 PM RE: CAS: log of large integers? - Tim Wessman - 05-21-2015, 04:40 PM RE: CAS: log of large integers? - Thomas_Sch - 05-22-2015, 06:28 AM RE: CAS: log of large integers? - Gerald H - 05-22-2015, 04:57 PM RE: CAS: log of large integers? - Thomas_Sch - 05-22-2015, 05:28 PM RE: CAS: log of large integers? - Gerald H - 05-22-2015, 05:57 PM RE: CAS: log of large integers? - Thomas_Sch - 05-22-2015, 06:13 PM RE: CAS: log of large integers? - parisse - 05-22-2015, 07:01 PM RE: CAS: log of large integers? - Thomas_Sch - 05-23-2015, 09:21 AM RE: CAS: log of large integers? - Gerald H - 05-23-2015, 01:47 PM RE: CAS: log of large integers? - DrD - 05-23-2015, 06:23 PM RE: CAS: log of large integers? - Joe Horn - 05-24-2015, 02:01 AM RE: CAS: log of large integers? - DrD - 05-24-2015, 10:05 AM RE: CAS: log of large integers? - Thomas_Sch - 05-23-2015, 05:20 PM RE: CAS: log of large integers? - kharpster - 05-23-2015, 06:51 PM RE: CAS: log of large integers? - Joe Horn - 05-24-2015, 03:07 PM RE: CAS: log of large integers? - kharpster - 05-24-2015, 05:27 PM RE: CAS: log of large integers? - Joe Horn - 05-24-2015, 07:00 PM RE: CAS: log of large integers? - kharpster - 05-24-2015, 07:10 PM RE: CAS: log of large integers? - parisse - 05-25-2015, 05:38 AM RE: CAS: log of large integers? - Joe Horn - 05-25-2015, 07:20 AM

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