<?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 eliminate some values in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/eliminate-some-values/m-p/951750#M212015</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_0-1716462590900.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/104921i56D31873FD75FF1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_0-1716462590900.png" alt="YA_10963798_0-1716462590900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;how can I fix this:&lt;/P&gt;&lt;P&gt;if (a )is less than zero the answer should alwyas be zero&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2024 11:13:07 GMT</pubDate>
    <dc:creator>YA_10963798</dc:creator>
    <dc:date>2024-05-23T11:13:07Z</dc:date>
    <item>
      <title>eliminate some values</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/eliminate-some-values/m-p/951750#M212015</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_0-1716462590900.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/104921i56D31873FD75FF1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_0-1716462590900.png" alt="YA_10963798_0-1716462590900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;how can I fix this:&lt;/P&gt;&lt;P&gt;if (a )is less than zero the answer should alwyas be zero&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 11:13:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/eliminate-some-values/m-p/951750#M212015</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-05-23T11:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate some values</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/eliminate-some-values/m-p/951792#M212019</link>
      <description>&lt;P&gt;You don't need a range variable w !&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1716468267651.png" style="width: 176px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/104930i1C9BF069BE8173E7/image-dimensions/176x218?v=v2" width="176" height="218" role="button" title="Werner_E_0-1716468267651.png" alt="Werner_E_0-1716468267651.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What your program tried to achieve can be done that way:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1716468505322.png" style="width: 467px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/104931i9C87B55B5208A9A0/image-dimensions/467x254?v=v2" width="467" height="254" role="button" title="Werner_E_1-1716468505322.png" alt="Werner_E_1-1716468505322.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The assignment in the first line is mandatory, otherwise you would have to use an else-statement to assign the (positive) value of a[w to the Result vector.&lt;/P&gt;
&lt;P&gt;The same effect could be achieved using a boolean expression (a&amp;gt;0) and vectorization:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1716468635139.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/104932i304B6D53903419F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_2-1716468635139.png" alt="Werner_E_2-1716468635139.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Prime 10 worksheet attached&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 12:51:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/eliminate-some-values/m-p/951792#M212019</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-05-23T12:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate some values</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/eliminate-some-values/m-p/951838#M212027</link>
      <description>&lt;P&gt;I know it is wrong to use w in this manner becuase the first value is less than origin , however I have to use this function like this. How can I tackle this issue?&lt;/P&gt;&lt;P&gt;I often face it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="YA_10963798_0-1716474030546.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/104947i65F0FE04B04CB673/image-size/medium?v=v2&amp;amp;px=400" role="button" title="YA_10963798_0-1716474030546.png" alt="YA_10963798_0-1716474030546.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 14:23:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/eliminate-some-values/m-p/951838#M212027</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-05-23T14:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate some values</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/eliminate-some-values/m-p/951869#M212032</link>
      <description>&lt;P&gt;Obviously you are trying to use vector elements that are BEFORE the first and AFTER the last, i.e. they do not exist.&lt;/P&gt;
&lt;P&gt;Not sure what you are trying to achieve, but from a pragmatic point of view I would say that you have to start your w-loop after the first and stop it before the last possible vector index.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1716475792413.png" style="width: 554px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/104963i9C7B825857CF5CA6/image-dimensions/554x317?v=v2" width="554" height="317" role="button" title="Werner_E_2-1716475792413.png" alt="Werner_E_2-1716475792413.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Ooops, we get an error as of incompatible units! Reason is that Prime insists on units for zero values, too. So we have to change the program which replaces negative lengths by zero to replace them by zero meter:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_3-1716475831518.png" style="width: 298px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/104964i4E41C25B50560058/image-dimensions/298x195?v=v2" width="298" height="195" role="button" title="Werner_E_3-1716475831518.png" alt="Werner_E_3-1716475831518.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Calculation of b'' now works OK, but of course b'' now has one element less than vector a.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1716475734880.png" style="width: 173px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/104961i21E5B8AA014CCE2E/image-dimensions/173x211?v=v2" width="173" height="211" role="button" title="Werner_E_1-1716475734880.png" alt="Werner_E_1-1716475734880.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 14:53:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/eliminate-some-values/m-p/951869#M212032</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-05-23T14:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate some values</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/eliminate-some-values/m-p/951873#M212034</link>
      <description>&lt;P&gt;thank you for your great help&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 14:52:55 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/eliminate-some-values/m-p/951873#M212034</guid>
      <dc:creator>YA_10963798</dc:creator>
      <dc:date>2024-05-23T14:52:55Z</dc:date>
    </item>
  </channel>
</rss>

