Post Reply 
50g System RPL list processing
10-28-2014, 03:56 PM (This post was last modified: 10-28-2014 04:22 PM by Gilles.)
Post: #6
RE: 50g System RPL list processing
Hi Claudio, you must use 'ADD' and not '+' with the 48-50 series for arithmetic usages :

{ 1 2 3} 1 + gives {1 2 3 1}
{1 2 3} 1 ADD gives { 2 3 4}

It's not logical at all ( '+' and 'ADD' should be invert) but I think it was necessary for backward compatibility with the very earliest RPL calcs without parallel processing (28 and 48 SX?) and the bad choice of + for ADD at this time.

Invert '+' and 'ADD' would be logical but you break the backward compatibility.

With Gofer List :

{ } Sum gives 0
{ } Product gives 1

I dont understand your point of view about about "an empty list of reals or an empty list of strings"... From a User RPL point of view an empty list is ... an empty list. . An other choice could be to return NULL or NOVAL ?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 50g System RPL list processing - ttw - 06-21-2014, 02:13 AM
RE: 50g System RPL list processing - Gilles - 10-28-2014 03:56 PM
RE: 50g System RPL list processing - Han - 10-28-2014, 05:06 PM
RE: 50g System RPL list processing - Han - 10-31-2014, 02:15 PM
RE: 50g System RPL list processing - Han - 11-01-2014, 08:34 PM
RE: 50g System RPL list processing - Han - 11-02-2014, 01:04 AM
RE: 50g System RPL list processing - Han - 11-01-2014, 08:31 PM
RE: 50g System RPL list processing - Han - 11-02-2014, 06:26 PM



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