![]() |
Not returning correct Matrix Calculation - 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: Not returning correct Matrix Calculation (/thread-16823.html) |
Not returning correct Matrix Calculation - Amer7 - 04-27-2021 06:47 PM My calculator is not giving me the correct matrix calculation. Code:
What is the best command for finding Inverse matrix ? same happens when i use inv(Matrix that i want to invert) [attachment=9421] RE: Not returning correct Matrix Calculation - Albert Chan - 04-27-2021 08:09 PM Hi, Amer7 Tried this in Numpy, Excel numbers were wrong. >>> from numpy import * >>> A = array([ ... [2568.0000, -2568.00 , 1, 0], ... [2568.0000, 2568.00000, 0, 1], ... [3852.1284, -2568.00 , 1, 0], ... [2568.0000, 3852.12840, 0, 1], ... [3536.9834, -3411.36 , 1, 0], ... [3411.3569, 3536.98344, 0, 1]]) >>> B = dot(transpose(A), A) Code: >>> print B RE: Not returning correct Matrix Calculation - Amer7 - 04-27-2021 08:20 PM Thank you Albert for numerous replies, I get the same numbers as you on my calculator. I guess something is wrong in Excel ( all formulas seemed ok). - I really doubt these are calculations from the teacher. The excel all matches up, with control calculations. Even my friends that use TI get the same numbers RE: Not returning correct Matrix Calculation - Albert Chan - 04-27-2021 10:56 PM (04-27-2021 08:20 PM)Amer7 Wrote: I guess something is wrong in Excel ( all formulas seemed ok). It is possible the problem is not Excel. From your attached screenshot, there were a picture suggesting A51 = A62, A61 = -A52. Your provided A (row 5 and row 6) does not match this symmetrical pattern. Not terribly off, but enough to mess up the numbers. RE: Not returning correct Matrix Calculation - Amer7 - 04-28-2021 05:25 AM (04-27-2021 10:56 PM)Albert Chan Wrote:(04-27-2021 08:20 PM)Amer7 Wrote: I guess something is wrong in Excel ( all formulas seemed ok). I have found the Issue, Im not sure why this happens. When number in column F have in front of them - ( minus, aka they are negative) Inverse matrix is not going to be the same as in Excel. So when I input O matrix as all positive numbers I get inverse matrix correct. And in last matrix calculation ( excel uses formula example (trn(A)*N) + O and when I adjust this to (trn(A)*N) - O I get everything correct. I'm not sure why this difference is happening between calculator and Excel. -Downloaded a virtual TI Nspire to check, they also get the same Matrix as we on our HP Prime. -So its something querk of Excel. |