newRPL: symbolic numbers
12-30-2014, 10:18 PM (This post was last modified: 12-31-2014 08:34 AM by Gilles.)
Post: #23
 Gilles Member Posts: 171 Joined: Oct 2014
RE: newRPL: symbolic numbers
(12-30-2014 04:50 PM)Han Wrote:  (...) It should remain that way as never before have we allowed an operator to be attached to a symbol -- without spaces.

Han, I understand your point of view but 'It should remain that way as never before we...' is not a good argument.

I remember RPL+ of Oliver Unter Ecker. He use for example these kinds of syntax :

5 =A as an alternative to 5 'A' STO
5 =+A as an alternative to 5 'A' STO+
++A as an alternative to 1 'A' STO+

Less keystrokes and better lisibility in my opinion. Just a question of parser. I don't see any problem here.

By the way, if M is the matrice [ [ 1 2 ] [3 4] ], you can do with the 50

M(1,2) instead of { 1, 2 } 'M' GET
or
M(a+b,c+d) instead of a b + c d + 2. -> LIST 'M' GET
or
8 'M(1,2*c)' STO

so why no operator attached to a symbol ? Exemple :

M(1,2) @without space
M(a+b,c+d) @without space
8 =M(1,2*c)
2 =*M(a,b)
++M(a,b)
A B * =M
M =MyNewMatrix
'sin(a)+cos(b)' =f

If the parser can manage this in an efficiant way,I see only advantages in term of lisibility and efficiency.)

Perhaps postfix notation will be better. ( M+= etc.)
 « Next Oldest | Next Newest »

 Messages In This Thread newRPL: symbolic numbers - Claudio L. - 12-22-2014, 11:01 PM RE: newRPL: symbolic numbers - John Galt - 12-23-2014, 01:13 AM RE: newRPL: symbolic numbers - Claudio L. - 12-23-2014, 03:34 PM RE: newRPL: symbolic numbers - Nigel (UK) - 12-23-2014, 12:06 PM RE: newRPL: symbolic numbers - Claudio L. - 12-23-2014, 03:10 PM RE: newRPL: symbolic numbers - Claudio L. - 12-23-2014, 05:22 PM RE: newRPL: symbolic numbers - Nigel (UK) - 12-23-2014, 05:57 PM RE: newRPL: symbolic numbers - Claudio L. - 12-23-2014, 09:01 PM RE: newRPL: symbolic numbers - Nigel (UK) - 12-23-2014, 09:49 PM RE: newRPL: symbolic numbers - Claudio L. - 12-24-2014, 03:15 AM RE: newRPL: symbolic numbers - brouhaha - 12-23-2014, 09:27 PM RE: newRPL: symbolic numbers - Gilles - 12-24-2014, 11:12 AM RE: newRPL: symbolic numbers - Claudio L. - 12-24-2014, 07:51 PM RE: newRPL: symbolic numbers - Claudio L. - 12-29-2014, 03:19 PM RE: newRPL: symbolic numbers - Gilles - 12-29-2014, 07:38 PM RE: newRPL: symbolic numbers - Claudio L. - 12-29-2014, 10:21 PM RE: newRPL: symbolic numbers - Han - 12-29-2014, 09:33 PM RE: newRPL: symbolic numbers - Gilles - 12-30-2014, 10:00 AM RE: newRPL: symbolic numbers - Claudio L. - 12-30-2014, 02:19 PM RE: newRPL: symbolic numbers - rprosperi - 12-30-2014, 02:26 PM RE: newRPL: symbolic numbers - Han - 12-30-2014, 04:50 PM RE: newRPL: symbolic numbers - Claudio L. - 12-30-2014, 07:18 PM RE: newRPL: symbolic numbers - Gilles - 12-30-2014 10:18 PM RE: newRPL: symbolic numbers - Claudio L. - 12-30-2014, 10:39 PM

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