Page 9-24
resulting in:
Transforming a list into a vector
To illustrate this transformation, we’ll enter the list
{1,2,3}
in RPN mode.
Then, follow the next exercise to transform a list into a vector:
1 - Use function OBJ
to decompose the column vector
2 - Type a 1 and use function
LIST to create a list in stack level 1:
3 - Use function
ARRY to create the vector
These three steps can be put together into a UserRPL program, entered as
follows (in RPN mode):
‚å„°
@)TYPE! @OBJ
@
1
!
LIST@
!
ARRY@
`
³~~lxv ` K
A new variable,
@@LXV@@
, will be available in the soft menu labels after pressing
J
:
Press
‚
@@LXV@@
to see the program contained in the variable LXV:
<< OBJ
1
LIST
ARRY >>
This variable,
@@LXV@@
, can now be used to directly transform a list into a vector.
In RPN mode, enter the list, and then press
@@LXV@@
. Try, for example:
{1,2,3}
`
@@LXV@@
.