Post Reply 
Arrays
02-25-2019, 06:21 AM
Post: #4
RE: Arrays
Hello,

If you need to do this in a program, declare a local variable to store a list or a matrix.

Matrix are faster and smaller in size, BUT they can only store numbers. Lists are more versatile.

LOCAL myvar= makelist(2*I, I, 1, 64); // Creates a local variable called myvar which is initialized with a list that contains number "created" by calculating 2*I with I going form 1 to 64

LOCAL myvar2= makemat(2*J, 64); // Creates a local variable called myvar2 which is initialized with a 64 element vector "created" by calculating 2*J with I going form 1 to 64. for matrix, I and J are always the variables, you can not choose them.

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
Arrays - ovenglove - 02-24-2019, 06:16 PM
RE: Arrays - grsbanks - 02-24-2019, 08:35 PM
RE: Arrays - derekamos - 02-25-2019, 12:32 AM
RE: Arrays - cyrille de brébisson - 02-25-2019 06:21 AM
RE: Arrays - ovenglove - 02-25-2019, 03:21 PM
RE: Arrays - grsbanks - 02-25-2019, 06:44 PM
RE: Arrays - ovenglove - 02-25-2019, 10:14 PM
RE: Arrays - rprosperi - 02-25-2019, 11:26 PM



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