<?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: Not getting the results as J &amp;lt;---- J+1 not doing well in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039304#M219185</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/66934"&gt;@Werner_E&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/14769"&gt;@StuartBruff&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Well, you kind of can add units to a text string via the &lt;FONT face="book antiqua,palatino"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;format&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; function.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hmm, I would say that's rather adding units IN a string, not TO a string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder if it would be possible to write a function "unit2str" ?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1760981267140.png" style="width: 242px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129913i05AA3977903A1E29/image-dimensions/242x99?v=v2" width="242" height="99" role="button" title="Werner_E_1-1760981267140.png" alt="Werner_E_1-1760981267140.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Of course I would strive for a method that does not&amp;nbsp;consist of treating all possible units individually, like&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1760981415318.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129914i4031F900692868D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_2-1760981415318.png" alt="Werner_E_2-1760981415318.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WE: "&lt;EM&gt;I wonder if it would be possible to write a function "unit2str" ?&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No.&amp;nbsp; Not at all.&amp;nbsp; Impossible, I tell you, absolut unmöglich!!&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="2025 10 21 A.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129944i652011EF955EFCAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025 10 21 A.png" alt="2025 10 21 A.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;I've needed to convert strings to symbols and vice versa on many occasions, but never as much as I needed it for this task!&amp;nbsp; Yes, of course it's a long-standing feature request&lt;/LI&gt;
&lt;LI&gt;When assigning values to multiple variables, which happen to be contained in an array, it is a real pain not being able to select them all and change their Math Styles in bulk.&amp;nbsp; &amp;nbsp;Given my very low attention span, setting multiple instances of 24 variable names in a vector to Unit style is not my favourite way to pass a few idle minutes.&lt;/LI&gt;
&lt;LI&gt;I wish PTC would fix the Text Block so that it only covers the left-hand page, rather than extending off to infinity on the Draft pages. Perhaps there is some use case that many people have for it, but I'm afraid I can't see what it might be.&amp;nbsp; &amp;nbsp;IIRC, Mathsoft Mathcad also had the ability to toggle between a Text Block and a Text Box -- very useful.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;I'm bored now and in need of coffee, plus I have no work ethic, so I'll maybe complete a few more completely factored derived units and tidy up the worksheet before posting it.&amp;nbsp; The conversion is largely powered by brute force and ignorance, so expect no startling insights.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(&lt;EM&gt;Mathcad Express 11 displays numbers less than 10&lt;SUP&gt;-15&lt;/SUP&gt; as 0.&amp;nbsp; &amp;nbsp;Changing the zero threshold is a Premium feature&lt;/EM&gt;)&lt;/P&gt;</description>
    <pubDate>Tue, 21 Oct 2025 01:46:25 GMT</pubDate>
    <dc:creator>StuartBruff</dc:creator>
    <dc:date>2025-10-21T01:46:25Z</dc:date>
    <item>
      <title>Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039063#M219157</link>
      <description>&lt;P&gt;I am working on a sample to develop my calculations.&lt;/P&gt;&lt;P&gt;I used both If .. Then and While.&lt;/P&gt;&lt;P&gt;But, I can get the results: J is not adding up. Looks like J keeps remaining at 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I request help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Oct 2025 08:25:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039063#M219157</guid>
      <dc:creator>RWickrama</dc:creator>
      <dc:date>2025-10-19T08:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039065#M219158</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The comparison equals is a bold equals sign and is entered by the following keys together [CTRL][equal&amp;nbsp; sign].&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 394px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129862i34BCF7FEE2471562/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;Cheers&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Sun, 19 Oct 2025 08:43:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039065#M219158</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2025-10-19T08:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039075#M219159</link>
      <description>&lt;P&gt;Your programs don't show what you intend to do if the function argument x is not exactly in the list of nominal diameters.&lt;BR /&gt;The programs (with Terry's fix applied) will return just the last value of j in this case (15).&lt;BR /&gt;If, as I assume, that's not intended, you could simply place the return value you want to see in case of an invalid x in the last program line, like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_5-1760878693857.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129871i84A12BB1ED265C6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_5-1760878693857.png" alt="Werner_E_5-1760878693857.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To achieve what you obviously intend to do (take the nominal diameter ND, lookup the corresponding outer diameter OD and use it to calculate the&amp;nbsp;cross-sectional area) could more easily be done using the "lookup" function:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1760877012952.png" style="width: 738px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129866i448A2020209D8DE3/image-dimensions/738x216?v=v2" width="738" height="216" role="button" title="Werner_E_0-1760877012952.png" alt="Werner_E_0-1760877012952.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To avoid the error in case x is not in the list you could add your own return value in case lookup fails:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1760877084765.png" style="width: 743px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129867i0D0D32BB95C434A3/image-dimensions/743x322?v=v2" width="743" height="322" role="button" title="Werner_E_1-1760877084765.png" alt="Werner_E_1-1760877084765.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I think that returning the index j as well was done just for debugging. But in case you really need that index you could use the "match" function (see attached sheet).&lt;/P&gt;
&lt;P&gt;You may also just use the next larger value in ND in case x is not found in that list&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1760877281033.png" style="width: 728px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129868i23616FB3B32A3D5C/image-dimensions/728x211?v=v2" width="728" height="211" role="button" title="Werner_E_2-1760877281033.png" alt="Werner_E_2-1760877281033.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Similarly you could also decide to use the next smaller value or the nearest value (see attached sheet).&lt;/P&gt;
&lt;P&gt;And of course a further option would be to use linear interpolation to deal with x-values not in the ND-list.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_6-1760878723404.png" style="width: 693px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129872i800D924DFBDC2E02/image-dimensions/693x338?v=v2" width="693" height="338" role="button" title="Werner_E_6-1760878723404.png" alt="Werner_E_6-1760878723404.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Prime 11 file attached&lt;/P&gt;</description>
      <pubDate>Sun, 19 Oct 2025 12:59:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039075#M219159</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-10-19T12:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039082#M219160</link>
      <description>&lt;P&gt;Thanks for the great help. Help to improve Mathcad programming.&lt;/P&gt;&lt;P&gt;I rarely use MathCAD. But, I will try to use often.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Oct 2025 18:43:38 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039082#M219160</guid>
      <dc:creator>RWickrama</dc:creator>
      <dc:date>2025-10-19T18:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039085#M219161</link>
      <description>&lt;P&gt;Thank you for the great reply.&lt;/P&gt;&lt;P&gt;I explored all the options.&lt;/P&gt;&lt;P&gt;I did well. BUt I get some issues.&lt;/P&gt;&lt;P&gt;When my input is not a listed data, I don't get the message.&lt;/P&gt;&lt;P&gt;I appreciate if you can shed some light on this issue.&lt;/P&gt;&lt;P&gt;Please see the attched Mathcad&amp;nbsp; file.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Oct 2025 22:56:42 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039085#M219161</guid>
      <dc:creator>RWickrama</dc:creator>
      <dc:date>2025-10-19T22:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039086#M219162</link>
      <description>&lt;P&gt;See file.&lt;/P&gt;
&lt;P&gt;With a unit applied to the expressions that return the message get the question mark.&amp;nbsp; Just delete the units on the end of the expression.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Oct 2025 23:07:38 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039086#M219162</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2025-10-19T23:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039088#M219163</link>
      <description>&lt;P&gt;As Terry already explained is the problem that Prime does not allow to add a unit to a text string.&lt;/P&gt;
&lt;P&gt;As an alternative to the text output you may use an 'impossible' return value (such as 0 in or a negative length), or you may return a NaN (not-a-number) with appropriate unit or you may create your own error-message:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1760917279443.png" style="width: 666px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129874i1887E883066624F7/image-dimensions/666x203?v=v2" width="666" height="203" role="button" title="Werner_E_0-1760917279443.png" alt="Werner_E_0-1760917279443.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Oct 2025 23:42:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039088#M219163</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-10-19T23:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039093#M219164</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Werner_E&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;I like the to do with the NaN type reply. Thanks a lot.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Oct 2025 03:43:56 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039093#M219164</guid>
      <dc:creator>RWickrama</dc:creator>
      <dc:date>2025-10-20T03:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039094#M219165</link>
      <description>&lt;P&gt;Thanks a lot Terry.&lt;/P&gt;&lt;P&gt;I got the idea. I can, for now, continue with my previous calculation procedure.&lt;/P&gt;&lt;P&gt;All the best.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 03:47:03 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039094#M219165</guid>
      <dc:creator>RWickrama</dc:creator>
      <dc:date>2025-10-20T03:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039108#M219166</link>
      <description>&lt;P&gt;Your previous reply was excellent.&lt;/P&gt;&lt;P&gt;As I got the preliminary understanding, I moved to solve tmy problem in hand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do not like to bug you. But, at this moment, I need help for a one more time.&lt;/P&gt;&lt;P&gt;I still have the problem of not incrementing.&lt;/P&gt;&lt;P&gt;I request you help.&lt;/P&gt;&lt;P&gt;Mathcad (11.0.0.0) file is attached here to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANK YOU&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 07:46:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039108#M219166</guid>
      <dc:creator>RWickrama</dc:creator>
      <dc:date>2025-10-20T07:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039142#M219168</link>
      <description>&lt;P&gt;Re: 008-MCAD005 PTC2&lt;/P&gt;
&lt;P&gt;The for loop only operates once as the if statement is true first time through.&amp;nbsp; Then it returns the 1 and QSp1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps if you describe in words what you are trying to achieve rather than programming we may be able to help better.&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>Mon, 20 Oct 2025 10:52:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039142#M219168</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2025-10-20T10:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039163#M219170</link>
      <description>&lt;P&gt;Are you aware that a 'return' statement stops the execution of a program?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your program stops as soon as 'Detector' gets equal or larger than Q&lt;SUB&gt;SP.1&lt;/SUB&gt;. This is already the case right the first time and so your program already stops at i=0.&lt;/P&gt;
&lt;P&gt;BTW, it's not good programming style to alter the loop variable i of a for-loop. You should avoid the i &amp;lt;- i+1 assignment.&lt;/P&gt;
&lt;P&gt;Here you see in variable YY all the results from i=1 up to i=6. Detector is larger in all cases:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1760966715311.png" style="width: 855px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129890i4F9186F356DC8F72/image-dimensions/855x374?v=v2" width="855" height="374" role="button" title="Werner_E_1-1760966715311.png" alt="Werner_E_1-1760966715311.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may not have to do with the problem you encounter but I think you made a mistake when you defined function P&lt;SUB&gt;vh&lt;/SUB&gt;.&lt;/P&gt;
&lt;P&gt;Your argument rho could be omitted as its not used in the function definition. Maybe rho&lt;SUB&gt;w&lt;/SUB&gt; was meant to be just rho?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1760966302015.png" style="width: 333px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129889iAAAA3BB030955F4E/image-dimensions/333x75?v=v2" width="333" height="75" role="button" title="Werner_E_0-1760966302015.png" alt="Werner_E_0-1760966302015.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 13:25:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039163#M219170</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-10-20T13:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039208#M219177</link>
      <description>&lt;P&gt;Well, you kind of can add units to a text string via the &lt;FONT face="book antiqua,palatino"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;format&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; 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="2025 10 20 D.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129904i6B33246AF65276DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025 10 20 D.png" alt="2025 10 20 D.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(&lt;EM&gt;Mathcad Express 11, hence the convoluted expressions.&amp;nbsp; Prior workings hidden to avoid hysterical laughter at my misunderstanding of what's going on&lt;/EM&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Mon, 20 Oct 2025 16:31:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039208#M219177</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2025-10-20T16:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039220#M219179</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/14769"&gt;@StuartBruff&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Well, you kind of can add units to a text string via the &lt;FONT face="book antiqua,palatino"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;format&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; function.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hmm, I would say that's rather adding units IN a string, not TO a string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder if it would be possible to write a function "unit2str" ?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1760981267140.png" style="width: 242px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129913i05AA3977903A1E29/image-dimensions/242x99?v=v2" width="242" height="99" role="button" title="Werner_E_1-1760981267140.png" alt="Werner_E_1-1760981267140.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Of course I would strive for a method that does not&amp;nbsp;consist of treating all possible units individually, like&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1760981415318.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129914i4031F900692868D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_2-1760981415318.png" alt="Werner_E_2-1760981415318.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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 17:30:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039220#M219179</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-10-20T17:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039304#M219185</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/66934"&gt;@Werner_E&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/14769"&gt;@StuartBruff&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Well, you kind of can add units to a text string via the &lt;FONT face="book antiqua,palatino"&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;format&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; function.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hmm, I would say that's rather adding units IN a string, not TO a string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder if it would be possible to write a function "unit2str" ?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1760981267140.png" style="width: 242px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129913i05AA3977903A1E29/image-dimensions/242x99?v=v2" width="242" height="99" role="button" title="Werner_E_1-1760981267140.png" alt="Werner_E_1-1760981267140.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Of course I would strive for a method that does not&amp;nbsp;consist of treating all possible units individually, like&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1760981415318.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129914i4031F900692868D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_2-1760981415318.png" alt="Werner_E_2-1760981415318.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WE: "&lt;EM&gt;I wonder if it would be possible to write a function "unit2str" ?&lt;/EM&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No.&amp;nbsp; Not at all.&amp;nbsp; Impossible, I tell you, absolut unmöglich!!&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="2025 10 21 A.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129944i652011EF955EFCAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025 10 21 A.png" alt="2025 10 21 A.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;I've needed to convert strings to symbols and vice versa on many occasions, but never as much as I needed it for this task!&amp;nbsp; Yes, of course it's a long-standing feature request&lt;/LI&gt;
&lt;LI&gt;When assigning values to multiple variables, which happen to be contained in an array, it is a real pain not being able to select them all and change their Math Styles in bulk.&amp;nbsp; &amp;nbsp;Given my very low attention span, setting multiple instances of 24 variable names in a vector to Unit style is not my favourite way to pass a few idle minutes.&lt;/LI&gt;
&lt;LI&gt;I wish PTC would fix the Text Block so that it only covers the left-hand page, rather than extending off to infinity on the Draft pages. Perhaps there is some use case that many people have for it, but I'm afraid I can't see what it might be.&amp;nbsp; &amp;nbsp;IIRC, Mathsoft Mathcad also had the ability to toggle between a Text Block and a Text Box -- very useful.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;I'm bored now and in need of coffee, plus I have no work ethic, so I'll maybe complete a few more completely factored derived units and tidy up the worksheet before posting it.&amp;nbsp; The conversion is largely powered by brute force and ignorance, so expect no startling insights.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(&lt;EM&gt;Mathcad Express 11 displays numbers less than 10&lt;SUP&gt;-15&lt;/SUP&gt; as 0.&amp;nbsp; &amp;nbsp;Changing the zero threshold is a Premium feature&lt;/EM&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 01:46:25 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039304#M219185</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2025-10-21T01:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039309#M219186</link>
      <description>&lt;P&gt;This single problem gave me a lot of skills - of course because of you.&lt;/P&gt;&lt;P&gt;I appreciate your good karma. What can I give you in return? I may say ALL GODS BLESS YOU ALL THE TIME FOE EVER!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 02:24:12 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039309#M219186</guid>
      <dc:creator>RWickrama</dc:creator>
      <dc:date>2025-10-21T02:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039315#M219188</link>
      <description>&lt;P&gt;Oh, all right, just because you didn't ask, and I've finished my coffee and had a play with another worksheet ....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080"&gt;&lt;EM&gt;&lt;FONT face="book antiqua,palatino"&gt;unit2str&lt;/FONT&gt;&lt;/EM&gt;&lt;/FONT&gt; Mathcad Express 11 worksheet attached.&amp;nbsp; Tidied up a bit, but not complete in terms of derived units.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 02:59:45 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039315#M219188</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2025-10-21T02:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039423#M219193</link>
      <description>&lt;P&gt;Wow,&amp;nbsp; impressive! Seems you had more than just one cup of coffee.&lt;BR /&gt;Definitely something to steal and keep &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 13:04:18 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039423#M219193</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-10-21T13:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039439#M219195</link>
      <description>&lt;P&gt;Thank you, but, no, just the one cup.&amp;nbsp; It required less tidying up than I thought,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although I did accidentally delete some work I'd done on the reverse transformation&amp;nbsp;&lt;EM&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;str2unit&lt;/FONT&gt;&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm half sure I did something similar a long time ago, but I couldn't find the worksheet, so I thought it was quicker to recreate it from scratch.&amp;nbsp; &amp;nbsp;I've added a few more derived units to the worksheet and created a very inelegant &lt;EM&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;str2unit&lt;/FONT&gt;&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I might brood on&amp;nbsp;&lt;EM&gt;&lt;FONT face="book antiqua,palatino" color="#0000FF"&gt;str2unit&lt;/FONT&gt;&lt;/EM&gt; for a little bit longer, as there is at least one bug in it that I need to fix, and a few more derived units to add.&amp;nbsp; Or, apart from the bug fix, I might not, as I have a shedload of other worksheets that I'm working on Expressifying.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might notice one significant omission from the vector of frequencies, and therein lies my bug.&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="2025 10 21 E.png" style="width: 887px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/129982i9A644A2299288A76/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025 10 21 E.png" alt="2025 10 21 E.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Stuart&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 14:46:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039439#M219195</guid>
      <dc:creator>StuartBruff</dc:creator>
      <dc:date>2025-10-21T14:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting the results as J &lt;---- J+1 not doing well</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039454#M219197</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;You might notice one significant omission from the vector of frequencies, and therein lies my bug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hertz without any prefix?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 16:31:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Not-getting-the-results-as-J-lt-J-1-not-doing-well/m-p/1039454#M219197</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2025-10-21T16:31:41Z</dc:date>
    </item>
  </channel>
</rss>

