MultiDimensional Matrices

04122017, 05:48 PM
Post: #1




MultiDimensional Matrices
The code below checks OK but doesn't run. Is it possible to have ndimensional tables? If so, how do you access them?
Tom L PHP Code: EXPORT mattest() Tom L My father was a man of the cloth. He was a tailor. 

04122017, 06:31 PM
Post: #2




RE: MultiDimensional Matrices
The hpprime supports only up to 2D,
In a next firmware the compiler should detect the validity of an array (maximum 2D) You can work with ndimensional arrays as a list PHP Code: EXPORT mattest() 

04122017, 06:42 PM
Post: #3




RE: MultiDimensional Matrices
You can either use lists for nonCAS programs, or you can create a CAS program that will do what you want if you specifically want to use the [ ] delimiters for your data.
Graph 3D  QPI  SolveSys 

04122017, 06:43 PM
(This post was last modified: 04122017 06:47 PM by toml_12953.)
Post: #4




RE: MultiDimensional Matrices
(04122017 06:31 PM)compsystems Wrote: The hpprime supports only up to 2D, Thanks! Now if only MAKELIST was extended to create multidimensional lists, it'd be great! Creating a 20x10x30 list will be a challenge the way it is now. Tom L Tom L My father was a man of the cloth. He was a tailor. 

04122017, 06:45 PM
Post: #5




RE: MultiDimensional Matrices
(04122017 06:43 PM)toml_12953 Wrote: Thanks! Now if only MAKELIST was extended to create multidimensional lists, it'd be great! Create a program that outputs the desired contents of a list, and have MAKELIST call that program. Graph 3D  QPI  SolveSys 

08312017, 04:44 AM
Post: #6




RE: MultiDimensional Matrices
I'm surprised it's limited at 2D. Tensor analysis is used in a lot of engineering applications (especially mechanical engineering)....so being able to get the inverse, multiplication, etc, etc...of multidimensional arrays shouldn't be that difficult to add to the firmware...


08312017, 05:22 AM
Post: #7




RE: MultiDimensional Matrices
Actually, I take that back....multidimensional array operations can get very complex and are dependent on what you want to do. Classical matrix algebra doesn't go beyond 2D anyways.


« Next Oldest  Next Newest »

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