Post Reply 
Multi-Dimensional Matrices
04-12-2017, 06:43 PM (This post was last modified: 04-12-2017 06:47 PM by toml_12953.)
Post: #4
RE: Multi-Dimensional Matrices
(04-12-2017 06:31 PM)compsystems Wrote:  The hp-prime supports only up to 2D,

In a next firmware the compiler should detect the validity of an array (maximum 2D)

You can work with n-dimensional arrays as a list

PHP Code:
EXPORT mattest()
BEGIN
    L1
:= { {{1,2,3},{2,3,4},{19,20,21}}, {{4,5,6},{7,8,9},{-1,-2,-3}}, {{10,11,12},{13,14,15},{-5,-6,-7}}};
    print(
L1(2,1,3)); // 6
END

Thanks! Now if only MAKELIST was extended to create multi-dimensional lists, it'd be great! Creating a 20x10x30 list will be a challenge the way it is now.

Tom L

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Multi-Dimensional Matrices - toml_12953 - 04-12-2017, 05:48 PM
RE: Multi-Dimensional Matrices - toml_12953 - 04-12-2017 06:43 PM
RE: Multi-Dimensional Matrices - Han - 04-12-2017, 06:45 PM
RE: Multi-Dimensional Matrices - Han - 04-12-2017, 06:42 PM



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