Anyone Know if there is a fast way to extract number from all numer matrix? - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Anyone Know if there is a fast way to extract number from all numer matrix? (/thread-22593.html) |
Anyone Know if there is a fast way to extract number from all numer matrix? - Assassinatemax - 10-28-2024 01:59 AM 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. RE: Anyone Know if there is a fast way to extract number from all numer matrix? - Wes Loewer - 10-28-2024 04:34 PM From Home, try the GET function. GET([[1,2],[3,4]],2,2) --> 4 From CAS, try [[1,2],[3,4]][2,2] --> 4 RE: Anyone Know if there is a fast way to extract number from all numer matrix? - Albert Chan - 10-28-2024 05:08 PM (10-28-2024 04:34 PM)Wes Loewer Wrote: From CAS, try It work. However, INPUT side showed this: [[1,2],[3,4]]([1,2]), a display bug. RE: Anyone Know if there is a fast way to extract number from all numer matrix? - Wes Loewer - 10-28-2024 07:09 PM (10-28-2024 05:08 PM)Albert Chan Wrote:(10-28-2024 04:34 PM)Wes Loewer Wrote: From CAS, try 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. RE: Anyone Know if there is a fast way to extract number from all numer matrix? - Wes Loewer - 10-29-2024 02:26 AM Here's where I read about it before: https://www.hpmuseum.org/forum/thread-15520.html (Someone pointed me to this post.) |