Post Reply 
Anyone Know if there is a fast way to extract number from all numer matrix?
10-28-2024, 01:59 AM
Post: #1
Anyone Know if there is a fast way to extract number from all numer matrix?
Here is what I enter:
[1 2
3 4](1,1) and the error: Syntax Error raised.

I can extract the value normally from this matrix:
[1 2
a 4](1,1) where a is a variable.

I am pretty sure this is caused by how calculator treat the matrix.


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
10-28-2024, 04:34 PM (This post was last modified: 10-28-2024 04:38 PM by Wes Loewer.)
Post: #2
RE: Anyone Know if there is a fast way to extract number from all numer matrix?
From Home, try the GET function.
GET([[1,2],[3,4]],2,2) --> 4

From CAS, try
[[1,2],[3,4]][2,2] --> 4
Find all posts by this user
Quote this message in a reply
10-28-2024, 05:08 PM
Post: #3
RE: Anyone Know if there is a fast way to extract number from all numer matrix?
(10-28-2024 04:34 PM)Wes Loewer Wrote:  From CAS, try
[[1,2],[3,4]][2,2] --> 4

It work. However, INPUT side showed this: [[1,2],[3,4]]([1,2]), a display bug.
Find all posts by this user
Quote this message in a reply
10-28-2024, 07:09 PM
Post: #4
RE: Anyone Know if there is a fast way to extract number from all numer matrix?
(10-28-2024 05:08 PM)Albert Chan Wrote:  
(10-28-2024 04:34 PM)Wes Loewer Wrote:  From CAS, try
[[1,2],[3,4]][2,2] --> 4

It work. However, INPUT side showed this: [[1,2],[3,4]]([1,2]), a display bug.

I seem to recall this being discussed here before but I can't find it now. Maybe it was somewhere else. It's clearly a display bug as turning off Textbook Display makes it display correctly.

I suspect this issue stems from xcas having 0-based arrays while the Prime has 1-based arrays.

I just filed a bug report.
Find all posts by this user
Quote this message in a reply
10-29-2024, 02:26 AM
Post: #5
RE: Anyone Know if there is a fast way to extract number from all numer matrix?
Here's where I read about it before: https://www.hpmuseum.org/forum/thread-15520.html
(Someone pointed me to this post.)
Find all posts by this user
Quote this message in a reply
Post Reply 




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