<?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: function to calculate the torque values in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/function-to-calculate-the-torque-values/m-p/1039409#M219191</link>
    <description>&lt;P&gt;Thank you so much, Werner!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
    <pubDate>Tue, 21 Oct 2025 12:19:17 GMT</pubDate>
    <dc:creator>SFares</dc:creator>
    <dc:date>2025-10-21T12:19:17Z</dc:date>
    <item>
      <title>function to calculate the torque values</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/function-to-calculate-the-torque-values/m-p/1039265#M219181</link>
      <description>&lt;P&gt;Hello All,&lt;BR /&gt;In the attached Mathcad-P10, I am creating a function to calculate the torque values at different x values. It is giving me an error for some values. I appreciate any assistance.&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="SFares_0-1760994023009.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129929i9244A73AAEDC63B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SFares_0-1760994023009.png" alt="SFares_0-1760994023009.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 21:02:37 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/function-to-calculate-the-torque-values/m-p/1039265#M219181</guid>
      <dc:creator>SFares</dc:creator>
      <dc:date>2025-10-20T21:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: function to calculate the torque values</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/function-to-calculate-the-torque-values/m-p/1039275#M219183</link>
      <description>&lt;P&gt;Your function only provides values for when x is larger than 0.8 m (and less than or equal to 1.4 m).&lt;/P&gt;
&lt;P&gt;The errors are given for x=0.8 m (which is NOT larger than 0.8 m0, same as for x=0.4 m.&lt;/P&gt;
&lt;P&gt;You must define an outcome for ALL possible values of x, so you need an else with the first if, which then should include the cases where x=0.8 m and x &amp;lt; 0.8 m.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Success!&lt;BR /&gt;Luc&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 21:39:48 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/function-to-calculate-the-torque-values/m-p/1039275#M219183</guid>
      <dc:creator>LucMeekes</dc:creator>
      <dc:date>2025-10-20T21:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: function to calculate the torque values</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/function-to-calculate-the-torque-values/m-p/1039288#M219184</link>
      <description>&lt;P&gt;I guess what you had in mind was something like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1761003111138.png" style="width: 559px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129936i54B418D90D83D6A0/image-dimensions/559x232?v=v2" width="559" height="232" role="button" title="Werner_E_0-1761003111138.png" alt="Werner_E_0-1761003111138.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Could also be written as&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1761003159231.png" style="width: 572px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129937iCBEAAF599A77D8FD/image-dimensions/572x205?v=v2" width="572" height="205" role="button" title="Werner_E_1-1761003159231.png" alt="Werner_E_1-1761003159231.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note that "return" terminates further program execution so no "else" or "else if" is needed.&lt;/P&gt;
&lt;P&gt;I replaced your text string "NA" by NaN (Not-a-Number) with appropriate unit to be able to make a plot&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1761003347840.png" style="width: 737px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129938i020604734CA521FC/image-dimensions/737x360?v=v2" width="737" height="360" role="button" title="Werner_E_2-1761003347840.png" alt="Werner_E_2-1761003347840.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Generally its not a good idea to ask for equality of two float values but its better to rather ask if they are approximately equal within a certain tolerance.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_3-1761003484924.png" style="width: 647px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129939i0705381FD403F72A/image-dimensions/647x573?v=v2" width="647" height="573" role="button" title="Werner_E_3-1761003484924.png" alt="Werner_E_3-1761003484924.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Prime 10 sheet attached&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 23:41:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/function-to-calculate-the-torque-values/m-p/1039288#M219184</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-10-20T23:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: function to calculate the torque values</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/function-to-calculate-the-torque-values/m-p/1039409#M219191</link>
      <description>&lt;P&gt;Thank you so much, Werner!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 12:19:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/function-to-calculate-the-torque-values/m-p/1039409#M219191</guid>
      <dc:creator>SFares</dc:creator>
      <dc:date>2025-10-21T12:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: function to calculate the torque values</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/function-to-calculate-the-torque-values/m-p/1039411#M219192</link>
      <description>&lt;P&gt;Thanks you Luc!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 12:20:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/function-to-calculate-the-torque-values/m-p/1039411#M219192</guid>
      <dc:creator>SFares</dc:creator>
      <dc:date>2025-10-21T12:20:17Z</dc:date>
    </item>
  </channel>
</rss>

