Prev: 64 bit Windows driver.
Next: Installing the new HP calculator usb driver on Windows XP / Vista (32 bit) in Italian
From: Patrice on 12 Nov 2009 02:13 Hello all, I am new to the HP50G UserRPL and need advice. On PCs, I am used to use lists as container for variable structure of data with nested lists. aka {{1 2 3 {4 5}} {4 5 6 {7 8}} {9}} 'mylist' STO Do I have to write my own GET and PUT functions to access the values or is it supported in some way? aka list {2 4 1} GET -> 7 Thanks Patrice
From: software49g on 12 Nov 2009 03:06 On 12 Nov., 08:13, Patrice <f...(a)home.fr> wrote: > Hello all, > > I am new to the HP50G UserRPL and need advice. > > On PCs, I am used to use lists as container for variable structure of > data with nested lists. > aka > {{1 2 3 {4 5}} {4 5 6 {7 8}} {9}} 'mylist' STO > > Do I have to write my own GET and PUT functions to access the values or > is it supported in some way? > aka > list {2 4 1} GET -> 7 > > Thanks > > Patrice
From: software49g on 12 Nov 2009 03:07 Hello, the AUR which contains all USER-RPL-Commands is available at http://www.hpcalc.org/details.php?id=7141. You can use GET, GETI, PUT, PUTI with lists or arrays. Be warned that list access is pretty slow because the list has no size field and thus all access has to be done by slow searching through the Composite Object. However, there is a trick to speed up access of Composite Objects by wrapping them into a Code Object which can be done at compile time but this "costs" 10 Nibbles for each list and of course this can not be done in USER-RPL. Depending on your needs you might want to choose another "container" for your variables. If you are only using real numbers an array maybe a better choice. HTH, Andreas http://www.software49g.gmxhome.de http://www.youtube.com/watch?v=Pj72miclisM
From: Veli-Pekka Nousiainen on 12 Nov 2009 06:05 <software49g(a)gmx.de> wrote in message news:854eaa84-4871-456f-a963-e434557853df(a)w19g2000yqk.googlegroups.com... > Hello, > > the AUR which contains all USER-RPL-Commands is available at > http://www.hpcalc.org/details.php?id=7141. > > You can use GET, GETI, PUT, PUTI with lists or arrays. > > Be warned that list access is pretty slow because the list has no size > field and thus all access has to be done by slow searching through the > Composite Object. > > However, there is a trick to speed up access of Composite Objects by > wrapping them into a Code Object which can be done at compile time but > this "costs" 10 Nibbles for each list and of course this can not be > done in USER-RPL. Not even with DevLib functions like COMP-> ->LST ???
From: Joe Horn on 12 Nov 2009 07:43
Patrice wrote: > {{1 2 3 {4 5}} {4 5 6 {7 8}} {9}} 'mylist' STO > > Do I have to write my own GET and PUT functions to access the values or > is it supported in some way? > aka > list {2 4 1} GET -> 7 list { 2 4 1 } 1 << GET >> DOLIST -Joe- |