<?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: Faulty treatment of matrix indices in program? in Mathcad</title>
    <link>https://community.ptc.com/t5/Mathcad/Faulty-treatment-of-matrix-indices-in-program/m-p/408441#M160168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not a bug (at least, it's not a Mathcad bug. It is a bug in your program&lt;IMG src="https://community.ptc.com/legacyfs/online/emoticons/wink.png" /&gt;) . The problem is in the definition of alpha.a. When j=1 d.a is a single element vector. That results in alpha.a being imaginary. On the second pass d.a is the correct two element vector, which fixes alpha.a, which fixes several variables all the way to eta.a.n, so then d.en[1, etc, calculate correctly. So Andy is correct that you need to split the loop, but the first loop only needs the definitions of k and d.a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Version M010 does have bugs though. You should download and install M030: &lt;A href="http://www.ptc.com/product/mathcad/free-trial/thank-you"&gt;http://www.ptc.com/product/mathcad/free-trial/thank-you&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Apr 2015 19:01:05 GMT</pubDate>
    <dc:creator>RichardJ</dc:creator>
    <dc:date>2015-04-08T19:01:05Z</dc:date>
    <item>
      <title>Faulty treatment of matrix indices in program?</title>
      <link>https://community.ptc.com/t5/Mathcad/Faulty-treatment-of-matrix-indices-in-program/m-p/408439#M160166</link>
      <description>Hi there,I'm an experienced user of Mathcad and use Mathcad 15.0 (M010 [MC15_M010_20110622])I encounter many bugs. Here is one.Atached is a program concerning calculations on gears. Nothing complex, but with many variables, just following the norm. On many of the variables I need</description>
      <pubDate>Thu, 03 May 2018 15:27:09 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Faulty-treatment-of-matrix-indices-in-program/m-p/408439#M160166</guid>
      <dc:creator>psillem</dc:creator>
      <dc:date>2018-05-03T15:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Faulty treatment of matrix indices in program?</title>
      <link>https://community.ptc.com/t5/Mathcad/Faulty-treatment-of-matrix-indices-in-program/m-p/408440#M160167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that the line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="87174" alt="Capture.PNG" class="jive-image image-1" src="https://community.ptc.com/legacyfs/online/87174_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;is the (1st) culprit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you loop the first time j=1 &amp;amp; alpha.a[2 is undefined(?)&lt;/P&gt;&lt;P&gt;calculating outside the program gives a complex result for this equation (a)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Splitting the program loop appears to fix the problem (b)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 14:59:33 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Faulty-treatment-of-matrix-indices-in-program/m-p/408440#M160167</guid>
      <dc:creator>AndyWesterman</dc:creator>
      <dc:date>2015-04-08T14:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Faulty treatment of matrix indices in program?</title>
      <link>https://community.ptc.com/t5/Mathcad/Faulty-treatment-of-matrix-indices-in-program/m-p/408441#M160168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not a bug (at least, it's not a Mathcad bug. It is a bug in your program&lt;IMG src="https://community.ptc.com/legacyfs/online/emoticons/wink.png" /&gt;) . The problem is in the definition of alpha.a. When j=1 d.a is a single element vector. That results in alpha.a being imaginary. On the second pass d.a is the correct two element vector, which fixes alpha.a, which fixes several variables all the way to eta.a.n, so then d.en[1, etc, calculate correctly. So Andy is correct that you need to split the loop, but the first loop only needs the definitions of k and d.a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Version M010 does have bugs though. You should download and install M030: &lt;A href="http://www.ptc.com/product/mathcad/free-trial/thank-you"&gt;http://www.ptc.com/product/mathcad/free-trial/thank-you&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 19:01:05 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Faulty-treatment-of-matrix-indices-in-program/m-p/408441#M160168</guid>
      <dc:creator>RichardJ</dc:creator>
      <dc:date>2015-04-08T19:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Faulty treatment of matrix indices in program?</title>
      <link>https://community.ptc.com/t5/Mathcad/Faulty-treatment-of-matrix-indices-in-program/m-p/408442#M160169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy and Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right. It solves my problem. My compliments to you and thanks for your quick respons.&lt;/P&gt;&lt;P&gt;I'll have to be a little more careful calling bugs.&lt;/P&gt;&lt;P&gt;I'll try to get the M030 installed at the Engineering company.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to proceed for your points?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 08:36:26 GMT</pubDate>
      <guid>https://community.ptc.com/t5/Mathcad/Faulty-treatment-of-matrix-indices-in-program/m-p/408442#M160169</guid>
      <dc:creator>psillem</dc:creator>
      <dc:date>2015-04-09T08:36:26Z</dc:date>
    </item>
  </channel>
</rss>

