|
From: Jacob Wall on 10 Apr 2008 00:27 Hello, I have recently started playing around with SysRPL and I think I'm starting to get the hang of it. I have all the recommended documentation and am fumbling my way through it all. My question: Array and matrix operations, for example if I want to add two vectors [ 1 2 ] and [ 3 4 ] to get [ 4 6 ], I know I can use the UserRPL command x+, is there a SysRPL command to do the same? I thought ^VADD sounded like an alternative but since I crashed the program I am guessing not. Also what about xROW-, xROW+ and such, I see there's commands like ^INSERTROW[], but haven't had too much luck yet. Essentially, are there SysRPL commands that can perform the matrix/ array/vector operations I'm talking about faster than the UserRPL commands, and if so how do they work? Any help would be appreciated. Jacob
From: TW on 10 Apr 2008 02:44 > Essentially, are there SysRPL commands that can perform the matrix/ > array/vector operations I'm talking about faster than the UserRPL > commands, and if so how do they work? Any help would be appreciated. You aren't going to see much timing difference between sysRPL operations and userRPL operations with a whole lot of simple stuff. The reason is simple: userRPL commands generally are a check for arguments which then launch the equivalent sysRPL command or ROM routine. One check for arguments doesn't take much time. When you are checking EVERY command though, it really starts to add up. If I remember correctly, there is not a named command to add or subtract vectors/matrices. However, there is a stable entry point that can be used. I'd recommend using Emacs and Nosy to take a look at some user RPL commands on the calculator. That is probably the easiest/best way to find the information you are looking for and it will be very enlightening. It is lots of fun to browse around in the ROM and see what you discover. TW
From: Jacob Wall on 11 Apr 2008 20:11 On Apr 9, 11:44 pm, TW <timwess...(a)gmail.com> wrote: > > Essentially, are there SysRPL commands that can perform the matrix/ > > array/vector operations I'm talking about faster than the UserRPL > > commands, and if so how do they work? Any help would be appreciated. > > You aren't going to see much timing difference between sysRPL > operations and userRPL operations with a whole lot of simple stuff. > The reason is simple: userRPL commands generally are a check for > arguments which then launch the equivalent sysRPL command or ROM > routine. One check for arguments doesn't take much time. When you > are checking EVERY command though, it really starts to add up. > > If I remember correctly, there is not a named command to add or > subtract vectors/matrices. However, there is a stable entry point > that can be used. > > I'd recommend using Emacs and Nosy to take a look at some user RPL > commands on the calculator. That is probably the easiest/best way to > find the information you are looking for and it will be very > enlightening. It is lots of fun to browse around in the ROM and see > what you discover. > > TW Thanks for the response and recommendation. I had forgotten about Nosy I guess because I couldn't make much use of it until now. Yes very interesting indeed.
|
Pages: 1 Prev: Testing for library presence. Next: Equation play: who triumphs? Nspire-CAS or HP 50G ? |