Not returning correct Matrix Calculation
|
04-27-2021, 06:47 PM
(This post was last modified: 04-27-2021 07:09 PM by Amer7.)
Post: #1
|
|||
|
|||
Not returning correct Matrix Calculation
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) |
|||
04-27-2021, 08:09 PM
Post: #2
|
|||
|
|||
RE: Not returning correct Matrix Calculation
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 |
|||
04-27-2021, 08:20 PM
(This post was last modified: 04-27-2021 08:35 PM by Amer7.)
Post: #3
|
|||
|
|||
RE: Not returning correct Matrix Calculation
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
|
|||
04-27-2021, 10:56 PM
Post: #4
|
|||
|
|||
RE: Not returning correct Matrix Calculation
(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. |
|||
04-28-2021, 05:25 AM
Post: #5
|
|||
|
|||
RE: Not returning correct Matrix Calculation
(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. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)