Post Reply 
(12C) log1p function
01-31-2019, 10:55 PM (This post was last modified: 02-01-2019 01:02 PM by Albert Chan.)
Post: #7
RE: (12C) log1p function
Hi, Dieter

2 Enters are there, but on 2 lines. First one after value entered.

Regarding the cryptic commands, it was for my own toy rpn program.
s for save memory, default to 0
r for recall memory, default to 0
= is round to digits, minus sign meant only for this number, otherwise globally
# is starting comment, and ignored until end-of-line
? is display top of stack, default round to globally set digits (default 40)

Code:
RPN.EXE command             HP-12C keys (approx.)

1.23456789e-3 s             1.23456789 EEX 3 CHS STO 0
1+ log s1 ?                 1 + LN STO 1 <display>
r 1+ =-10 s2 ?              RCL 0 1 + <round-to-10-digits> STO 2 <display>
log s3 ?                    LN STO 3 <display>
- ?10                       - <display 10 digits>

r2 1- r $ - r2 / ?10        RCL 2 1 - RCL 0 [X<>Y] -  RCL 2 / <display 10 digits>
r3 r x r2 1- / r3 - ?10     RCL 3 RCL 0 * RCL 2 1 - / RCL 3 - <display 10 digits>
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(12C) log1p function - Albert Chan - 01-31-2019, 01:10 AM
RE: (12C) log1p function - Thomas Klemm - 01-31-2019, 04:08 AM
RE: (12C) log1p function - Paul Dale - 01-31-2019, 05:48 AM
RE: (12C) log1p function - Dieter - 01-31-2019, 08:45 AM
RE: (12C) log1p function - Albert Chan - 01-31-2019, 09:42 AM
RE: (12C) log1p function - Dieter - 01-31-2019, 09:43 PM
RE: (12C) log1p function - Albert Chan - 01-31-2019 10:55 PM
RE: (12C) log1p function - Werner - 02-01-2019, 07:07 AM
RE: (12C) log1p function - Albert Chan - 02-01-2019, 12:30 PM
RE: (12C) log1p function - Thomas Klemm - 02-02-2019, 12:28 PM
RE: (12C) log1p function - Albert Chan - 02-10-2019, 09:08 AM
RE: (12C) log1p function - Albert Chan - 02-10-2019, 02:19 PM



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