topic Problem solving linear equation matrix system in PTC Mathcad
https://community.ptc.com/t5/PTC-Mathcad/Problem-solving-linear-equation-matrix-system/m-p/143904#M56445
<HTML><HEAD></HEAD><BODY><P>Hi,</P><P></P><P>I have linear equations in matrix form like A*X=B. (Given are A and B; A is a 15x15, B a vector 15 long)</P><P></P><P>Of course I want to obtain the solution vector X <span class="lia-unicode-emoji" title=":winking_face:">ðŸ˜‰</span></P><P></P><P>I can achieve this in mathcad via lsolve(A,B) or X=(A^-1)*B.</P><P></P><P></P><P>Now here is the problem: if the values of matrix A are calcuated by other matrices inside mathcad I obtain different (wrong) results</P><P>for X in comparision to a matrix A already filled with numbers and copied out of excel. I checked the two versions of A and they are identical.</P><P></P><P>Is there a problem with formats or have I missed something?</P><P></P><P></P><P>Jan</P></BODY></HTML>Thu, 03 May 2018 19:15:22 GMTJanHoffmann2018-05-03T19:15:22ZProblem solving linear equation matrix system
https://community.ptc.com/t5/PTC-Mathcad/Problem-solving-linear-equation-matrix-system/m-p/143904#M56445
Hi,I have linear equations in matrix form like A*X=B. (Given are A and B; A is a 15x15, B a vector 15 long)Of course I want to obtain the solution vector X ;-)I can achieve this in mathcad via lsolve(A,B) or X=(A^-1)*B.Now here is the problem: if the values of matrix A areThu, 03 May 2018 19:15:22 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-solving-linear-equation-matrix-system/m-p/143904#M56445JanHoffmann2018-05-03T19:15:22ZRe: Problem solving linear equation matrix system
https://community.ptc.com/t5/PTC-Mathcad/Problem-solving-linear-equation-matrix-system/m-p/143905#M56446
<HTML><HEAD></HEAD><BODY><P>Can't tell anything without a worksheet.</P><P></P><P>TTFN </P></BODY></HTML>Fri, 08 Oct 2010 13:52:26 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-solving-linear-equation-matrix-system/m-p/143905#M56446IRstuff2010-10-08T13:52:26ZRe: Problem solving linear equation matrix system
https://community.ptc.com/t5/PTC-Mathcad/Problem-solving-linear-equation-matrix-system/m-p/143906#M56447
<HTML><HEAD></HEAD><BODY><P>Need to see a worksheet to be sure, but I bet the two matrices are not the same. They may not be very different, but they are not identical.</P></BODY></HTML>Fri, 08 Oct 2010 14:16:54 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-solving-linear-equation-matrix-system/m-p/143906#M56447RichardJ2010-10-08T14:16:54ZRe: Problem solving linear equation matrix system
https://community.ptc.com/t5/PTC-Mathcad/Problem-solving-linear-equation-matrix-system/m-p/143907#M56448
<HTML><HEAD></HEAD><BODY><P>Richard, you are of course right. After having a more intensive look at both A matrices I found one number (all others were correct) wich caused the wrong solution.</P><P>Thanks very much. I will have a nice weekend now.</P><P>Jan</P></BODY></HTML>Fri, 08 Oct 2010 14:30:09 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-solving-linear-equation-matrix-system/m-p/143907#M56448JanHoffmann2010-10-08T14:30:09ZRe: Problem solving linear equation matrix system
https://community.ptc.com/t5/PTC-Mathcad/Problem-solving-linear-equation-matrix-system/m-p/143908#M56449
<HTML><HEAD></HEAD><BODY><P>Actually, that's not quite what I expected. I thought that maybe your matrix was near singular, in which case the inversion could be very sensitive to roundoff errors. So if you lost any precision when you copied it from Excel you would get a different answer.</P><P></P><P>Glad it's working though.</P></BODY></HTML>Fri, 08 Oct 2010 14:35:30 GMThttps://community.ptc.com/t5/PTC-Mathcad/Problem-solving-linear-equation-matrix-system/m-p/143908#M56449RichardJ2010-10-08T14:35:30Z