Post Reply 
Acces to a list
09-21-2015, 05:54 AM
Post: #3
RE: Acces to a list
Hello,

Var[n] refers to:
if var is a list: the nth element of the list
if var is a string, the nth char of the string
if var is a vector, the nth element of the vector
if var is a matrix, the nth line of the matrix, or if n<0, the nth column
if var is an int, the nth bit of the int.

This works both in RCL and STO

var[n, m] refers to:
if var is a list: var[m] for the nth element of the list (parameter list can be up to 16 long!)
if var is a string, m chars starting at index n in the string
if var is a matrix, the element at pos n,mx
if var is an int, the m bit starting at pos n from the int

list(0):=val: adds at the end of the list

That should get you started.
Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Acces to a list - Powersoft - 09-20-2015, 06:56 PM
RE: Acces to a list - Tim Wessman - 09-21-2015, 12:39 AM
RE: Acces to a list - cyrille de brébisson - 09-21-2015 05:54 AM



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