New RPL: New Commands
|
01-20-2017, 11:47 PM
Post: #13
|
|||
|
|||
RE: New RPL: New Commands
(01-19-2017 07:06 AM)The Shadow Wrote: I've been thinking of getting a spare 50g while they can still be had, and finding out about newRPL has pushed me over the edge. Thanks for your hard work and that of your team, Claudio! There was some discussion about this. The sum or the product are not necessarily 0 or 1. The main issue is that an empty list doesn't have a type of element, therefore how do you know the result is supposed to be a number? { "A" "B" "C" } \(\sum\)LIST --> "ABC" { } \(\sum\)LIST --> "" ??? or it could be a sum of vectors, or mxn matrices, etc. you get the point. Given only an empty list there's no way for these commands to know what the result should be. The easy solution is to always add the neutral element of the correct type. If you want 3x3 matrices: { ..list, possibly empty... } { [[1 0 0] [0 1 0] [0 0 1]] } + \(\prod\)LIST (01-19-2017 07:06 AM)The Shadow Wrote: Speaking of FACTORS... I know the CAS is a ways off, but you're going to have to do it differently than in RPL. On the 50g, the primes are integers and the exponents are reals, which gives you a handle for differentiating them using MAP and DOLIST. That won't be the case in newRPL. I suggest implementing it as a list of lists, so 24 would become { { 2 3 } { 3 1 } }. Or possibly a list of complex numbers, { (2,3) (3,1) }, or even 2x1 vectors. Then, rather than treating units like -1 or i as factors, they could simply be stuck in the list as numbers - the different type would be sufficient to tell them apart from the others. 0 could also be treated this way, to spare us the absurdity of treating it as a factor. It's a valid point. I'll mark these suggestions when the time comes to implement FACTORS. (01-19-2017 07:06 AM)The Shadow Wrote: I would also dearly love to see commands to find the Hermite and Smith normal forms of a matrix!Yes, that's a change that's on the pipeline. There's now space to display the command name above the text of the help. Regarding the matrix normals, I'll try to remember when it's time to complete all those missing commands in the matrix library. (01-20-2017 07:42 PM)The Shadow Wrote: Also on the wish list: A built-in list subtraction command. (In the sense of set subtraction, not element by element.) I can certainly code it myself in RPL, but the faster the better! Commands to use lists as sets are interesting, I'll also add them if there's room and time. I'll add all your ideas to our bug tracker, so I don't forget. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)