<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Inverting a matrix in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587162#M184050</link>
    <description>&lt;P&gt;Thank you very much Terry.&amp;nbsp; That is an excellent explanation.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jan 2019 15:06:33 GMT</pubDate>
    <dc:creator>klax</dc:creator>
    <dc:date>2019-01-02T15:06:33Z</dc:date>
    <item>
      <title>Inverting a matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/586973#M184041</link>
      <description>&lt;P&gt;I am trying to invert a matrix using the variable names already declared.&amp;nbsp; I can invert the matrix if I manually enter the values of the variables, but not using the variable names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am obviously missing something and would be grateful for any guidance towards resolving the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I attach the entire worksheet but I am only interested in comments on step 5 where the matrix manipulation appears.&amp;nbsp; I have left notes on the draft section of the page to show what the variable values are and what the problem is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards and New Year's greetings to all.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Dec 2018 13:55:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/586973#M184041</guid>
      <dc:creator>klax</dc:creator>
      <dc:date>2018-12-30T13:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Inverting a matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587094#M184042</link>
      <description>&lt;P&gt;I should have added that I am using Mathcad prime version 5.0.0.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 08:23:21 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587094#M184042</guid>
      <dc:creator>klax</dc:creator>
      <dc:date>2019-01-02T08:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Inverting a matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587144#M184046</link>
      <description>&lt;P&gt;I can't open your version 5 (only have 4), but the simple example attached should demonstrate that you can.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 13:49:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587144#M184046</guid>
      <dc:creator>Fred_Kohlhepp</dc:creator>
      <dc:date>2019-01-02T13:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Inverting a matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587157#M184047</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This was subtle.&lt;/P&gt;
&lt;P&gt;Back in sections 3, the results for the Y's are actually a matrix with one element not a single numeric result.&lt;/P&gt;
&lt;P&gt;The same occurs for the Node values in step 4.&amp;nbsp; The answer is a 1 x 1 matrix.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance:-&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 598px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/13102i614167A0CA2B8D91/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;One is a 1x1 matrix as indicated by the square brackets.&amp;nbsp; The other is a single numeric result.&lt;/P&gt;
&lt;P&gt;Your file Admittance was a matrix made up of nested 1x1 matrices and could not be inverted.&amp;nbsp; But your B matrix that had just the values not the nested form works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Correct file enclosed.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 14:51:56 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587157#M184047</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2019-01-02T14:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inverting a matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587158#M184048</link>
      <description>&lt;P&gt;Thanks Fred.&amp;nbsp; I can do the same but when I try as shown on the attached word document, I cannot do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the draft side of the document you will see some text and some tests I have been trying.&amp;nbsp; If I add the values for the variables, then it works OK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cannot quickly see how to save the file as a Prime 4 version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 14:52:53 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587158#M184048</guid>
      <dc:creator>klax</dc:creator>
      <dc:date>2019-01-02T14:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Inverting a matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587161#M184049</link>
      <description>&lt;P&gt;Hi a postscript.&lt;/P&gt;
&lt;P&gt;I should show you how to correct the equations to make it simpler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 550px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/13103i448205DB04557F43/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The first equation takes the first row of Length as a matrix and returns a matrix,&lt;/P&gt;
&lt;P&gt;The second equation takes a value from the first element of Length and returns it as a value&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 15:02:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587161#M184049</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2019-01-02T15:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Inverting a matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587162#M184050</link>
      <description>&lt;P&gt;Thank you very much Terry.&amp;nbsp; That is an excellent explanation.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 15:06:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587162#M184050</guid>
      <dc:creator>klax</dc:creator>
      <dc:date>2019-01-02T15:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Inverting a matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587167#M184052</link>
      <description>&lt;P&gt;Got it!&amp;nbsp; Thanks again.&amp;nbsp; Most helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 15:43:58 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587167#M184052</guid>
      <dc:creator>klax</dc:creator>
      <dc:date>2019-01-02T15:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Inverting a matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587170#M184054</link>
      <description>&lt;P&gt;The reason for you problem is that the elements you put in your Admittance matrix (A[0,4, etc) are not scalars but 1x1 matrices.&lt;/P&gt;
&lt;P&gt;The reason for this is that you use the row operator to access the elements of the vector "length" instead of the vector index like "length[0".&lt;/P&gt;
&lt;P&gt;If you fix this the inverse matrix calculates without problems. See attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, in Prime its a good idea to assign units to zero values, too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: Just saw that Terry was faster &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 16:03:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587170#M184054</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2019-01-02T16:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inverting a matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587173#M184055</link>
      <description>Thank you Fred.  I will change the way I format the prior calculations in&lt;BR /&gt;the future.  Your point about units is noted – thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kind Regards&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Jan 2019 16:10:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587173#M184055</guid>
      <dc:creator>klax</dc:creator>
      <dc:date>2019-01-02T16:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inverting a matrix</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587184#M184056</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/256347"&gt;@klax&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you Fred.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Werner &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Fred unfortunately can't read P5 worksheets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;I will change the way I format the prior calculations in&lt;BR /&gt;the future. &lt;/BLOCKQUOTE&gt;
&lt;P&gt;The point is, that Primes column- or row-selectors (ctr-shift-c, ctrl-shift-r) always return a matrix, a column resp. a row vector. Thats true even when its just a 1x1 vector/matrix.&lt;/P&gt;
&lt;P&gt;To access the element of a vector or matrix you have to use indices, either v[i or M[i,j&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Your point about units is noted – thanks.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Mathcad 15 uses SUC (static unit checking) and there is no need to assign a unit to a zero value.&lt;/P&gt;
&lt;P&gt;Prime had done away with SUC (fortunately) and so in some circumstances it can't decide which unit to assign a zero value to and may fail. In Prime we also have to new "units", zero and Zero, to cope with problems which may arise because of this behaviour.&lt;BR /&gt;Assigning a unit to a zero value may look unnecessary work, but sometimes its simply necessary in Prime and furthermore I think doing so may increase the readability of worksheet sometimes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 18:43:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Inverting-a-matrix/m-p/587184#M184056</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2019-01-02T18:43:17Z</dc:date>
    </item>
  </channel>
</rss>

