Post Reply 
(50G) Large Integer to Base 10 Log Programme
05-24-2015, 06:45 PM
Post: #7
RE: HP 50G: Large Integer to Base 10 Log Programme
Just for those interested, here a programme taking integer input & returning base ten log as a long real. For the 2,000 digit integer above the programme returned

%% 1.99978513184057E3

PARI answered the same problem with

1999.785131840567325356093351

Name of programme: LONGLOG

::
CK1&Dispatch
# FF
::
DUP
Z0_
Z<=
caseSIZEERR
FPTR2 ^Z>S
DUPLEN$
#1-
OVER
BINT13
1_#1-SUB$
FPTR2 ^S>Z
FPTR2 ^Z>R
%MANTISSA
%>%%
ROT
BINT13
LAST$
CHR_.
>H$
CHR_0
>H$
palparse
DROP
%>%%
%% 1E11
%%/
%%+
%%LN
%%10
%%LN
%%/
SWAP
UNCOERCE%%
%%+
;
;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 50G: Large Integer to Base 10 Log Programme - Gerald H - 05-24-2015 06:45 PM



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