The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
sysRPL - Last Element of a Composite
10-15-2024, 10:42 PM
Post: #1
sysRPL - Last Element of a Composite
Hello,

In sysRPL, ^LASTCOMP (2BC006) is said to return the last element of a composite.
For that purpose, this command executes DUPLENCOMP (3627A) then NTHCOMPDROP (35BC3).

Indeed, if I do (i.e.):
Code:
{ 1 2 3 5 7 } 
#3627Ah SYSEVAL          @  DUPLENCOMP
#35BC3h SYSEVAL          @  NTHCOMPDROP
I get 7 which is the expected result.

However, when I do:
Code:
{ 1 2 3 5 7 }
#2BC006h SYSEVAL         @  ^LASTCOMP
the calculator (HP 50G) freezes. (Fortunately, ON + C works without data loss! )

Is an argument missing? What am I doing wrong?

Thank you for any hint.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
sysRPL - Last Element of a Composite - FLISZT - 10-15-2024 10:42 PM



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