Post Reply 
Help me with HP50g -DOSUBS !
03-21-2014, 09:21 AM
Post: #1
Help me with HP50g -DOSUBS !
I started programming in RPN with the HP33E (1974) and continued up to the HP41C.
When I bought the new HP50G I encountered a lot of problems to understand the UserRPN: manuals are not exhaustive !
But the worst came with the command DOSUBS: I really cannot understand how it works: Is there any gentle soul who can write a @comment after every line of the “explanatory example” programs of the RPN Programming manual (!) ?


Example 1:
{ A B C D E }
« - »
DOSUBS
returns { 'A-B' 'B-C' 'C-D' 'D-E' }.

Example 2:
{ A B C }
2
« DUP * * »
DOSUBS
returns { 'A*(B*B)' 'B*(C*C)' }.

Example 3: Entering:
{ 1 2 3 4 5 }
« → a b
« CASE 'NSUB==1' THEN a END
'NSUB==ENDSUB' THEN b END
'a+b' EVAL END » »
DOSUBS
returns { 1 5 7 5 }
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Help me with HP50g -DOSUBS ! - carlovan - 03-21-2014 09:21 AM
RE: Help me with HP50g -DOSUBS ! - Dalil - 03-21-2014, 12:05 PM



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