Post Reply 
Processing lists on the 50G
01-01-2021, 04:42 AM (This post was last modified: 01-01-2021 05:00 AM by EngineerX.)
Post: #1
Processing lists on the 50G
Hello everyone, Happy new year.
Let me ask you a question about lists on the 50g:

How would one go about processing a number of lists such as these ones:

{1 2 3} - might label it x
{0 1 2} - might label it y

Now, what you be the procedure to make another list whose elements are a function f(x,y) such as (1+1/x)*y?

Thank you in advance.

Edit: I am reading the manual (48, not 49). It shows how to do it with one list and using a program, which would be ideal. The problem is how to make the program process two or more lists at once.
Find all posts by this user
Quote this message in a reply
01-01-2021, 04:58 AM
Post: #2
RE: Processing lists on the 50G
(01-01-2021 04:42 AM)EngineerX Wrote:  Hello everyone, Happy new year.
Let me ask you a question about lists on the 50g:

How would one go about processing a number of lists such as these ones:

{1 2 3} - might label it x
{0 1 2} - might label it y

Now, what you be the procedure to make another list whose elements are a function f(x,y) such as (1+1/x)*y?

Thank you in advance.

List processing has been built into RPL starting with the 48G series. If Y is on level 2 of the stack, and X is on level 1 (as their names imply), then:

INV 1 ADD *

will return the result you're looking for. You might want to do SIMPLIFY on the resulting list.

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
01-01-2021, 05:02 AM
Post: #3
RE: Processing lists on the 50G
(01-01-2021 04:58 AM)Joe Horn Wrote:  
(01-01-2021 04:42 AM)EngineerX Wrote:  Hello everyone, Happy new year.
Let me ask you a question about lists on the 50g:

How would one go about processing a number of lists such as these ones:

{1 2 3} - might label it x
{0 1 2} - might label it y

Now, what you be the procedure to make another list whose elements are a function f(x,y) such as (1+1/x)*y?

Thank you in advance.

List processing has been built into RPL starting with the 48G series. If Y is on level 2 of the stack, and X is on level 1 (as their names imply), then:

INV 1 ADD *

will return the result you're looking for. You might want to do SIMPLIFY on the resulting list.

The magician J. Horn. Thank you.
Find all posts by this user
Quote this message in a reply
Post Reply 




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