<?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 Multiplying range variables doesn't work in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Multiplying-range-variables-doesn-t-work/m-p/722515#M195344</link>
    <description>&lt;P&gt;x should have more values depending on t. Why do I only get 1 value?&lt;/P&gt;
&lt;P&gt;If I separate the terms they work as they should&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TS_9501702_3-1617453886858.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/39935i41FB26F656F0D55D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TS_9501702_3-1617453886858.png" alt="TS_9501702_3-1617453886858.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Apr 2021 12:47:08 GMT</pubDate>
    <dc:creator>TS_9501702</dc:creator>
    <dc:date>2021-04-03T12:47:08Z</dc:date>
    <item>
      <title>Multiplying range variables doesn't work</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Multiplying-range-variables-doesn-t-work/m-p/722515#M195344</link>
      <description>&lt;P&gt;x should have more values depending on t. Why do I only get 1 value?&lt;/P&gt;
&lt;P&gt;If I separate the terms they work as they should&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TS_9501702_3-1617453886858.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/39935i41FB26F656F0D55D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TS_9501702_3-1617453886858.png" alt="TS_9501702_3-1617453886858.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 12:47:08 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Multiplying-range-variables-doesn-t-work/m-p/722515#M195344</guid>
      <dc:creator>TS_9501702</dc:creator>
      <dc:date>2021-04-03T12:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying range variables doesn't work</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Multiplying-range-variables-doesn-t-work/m-p/722519#M195348</link>
      <description>&lt;P&gt;First let me say that whenever possible you should always attach the worksheet itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You defined a range t and in the same region you numerically evaluated it (the = sign after the definition). This is an undocumented trick to turn a range into a vector.&lt;/P&gt;
&lt;P&gt;So t is a vector.&lt;/P&gt;
&lt;P&gt;x is defined as a product of two factors and as you show yourself in the last line, both factors are vectors. And the "normal" product of two vectors is ... one single scalar (dot product, scalar product).&lt;/P&gt;
&lt;P&gt;To get the result you expect, you must vectorize (the arrow operator over an expression) the right hand side of the definition of x.&lt;/P&gt;
&lt;P&gt;Keep in mind that e^t actually should throw an error because there is no definition in math to take a number to the power of a vector. Prime instead applies automatic implicit vectorization in that case (also applies to sin(t), etc) and evaluates that expression for each vector el/ement in a row and collects the various results in its result&amp;nbsp; vector - excactly what you had in mind. Multiplication on the other hand is an operation defined for vectors and if you want it to be executed elementwise again, you must manually vectorize the operation.#&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 14:43:22 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Multiplying-range-variables-doesn-t-work/m-p/722519#M195348</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2021-04-03T14:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying range variables doesn't work</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Multiplying-range-variables-doesn-t-work/m-p/722521#M195349</link>
      <description>&lt;P&gt;Thank you for your answer! After some trial and error with easy examples I realised that multiplying 2 vectors results in multiplying both elements from the respectiv row and adding them up.&amp;nbsp; The way I managed to fix this is by turning it into a function.&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="TS_9501702_0-1617461639039.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/39936i2C7D274D8AE3E002/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TS_9501702_0-1617461639039.png" alt="TS_9501702_0-1617461639039.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In case it might help someone&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 14:57:59 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Multiplying-range-variables-doesn-t-work/m-p/722521#M195349</guid>
      <dc:creator>TS_9501702</dc:creator>
      <dc:date>2021-04-03T14:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multiplying range variables doesn't work</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Multiplying-range-variables-doesn-t-work/m-p/722530#M195350</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/377265"&gt;@TS_9501702&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for your answer! After some trial and error with easy examples I realised that multiplying 2 vectors results in multiplying both elements from the respectiv row and adding them up.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, thats exactly what vector dot product (inner product, scalar product) means &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And if you apply vectorization, you get the result you expected. See her for comparison:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1617473352417.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/39941i2AE02E85A7400C06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_0-1617473352417.png" alt="Werner_E_0-1617473352417.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But turning the calculation into a function as you finally did usually is the better approach anyway. You need the t-range just for plotting and you sure should choose a smaller step-width:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1617473456662.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/39942i4D1DE29E1AC8BC55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_1-1617473456662.png" alt="Werner_E_1-1617473456662.png" /&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>Sat, 03 Apr 2021 18:11:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Multiplying-range-variables-doesn-t-work/m-p/722530#M195350</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2021-04-03T18:11:16Z</dc:date>
    </item>
  </channel>
</rss>

