<?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: Solve Block Query in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058832#M220737</link>
    <description>&lt;P&gt;Variable and function definitions are better done outside and in front of the solve block.&lt;/P&gt;
&lt;P&gt;The solve block on page 34 fails because with a guess of 38,1 mm the solution for which Mr(c11)&amp;gt;0 cannot be found by the algorithm used in Prime.&lt;/P&gt;
&lt;P&gt;If we deactivate this constraint we get a solution.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 749px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135872i5EF46DF5A911C583/image-dimensions/749x747?v=v2" width="749" height="747" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If we use a larger guess value, we get the second solution for which M.r&amp;gt;0&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 747px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135873i44A92123C707B61A/image-dimensions/747x607?v=v2" width="747" height="607" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here you see the plot of function g along with its two zeros at 38.8 mm and 325.0 mm&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 606px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135874iBB4EE5289DA3E7CD/image-dimensions/606x244?v=v2" width="606" height="244" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It can be clearly seen that Mr is positive at the second zero.&lt;/P&gt;
&lt;P&gt;Zooming in shows that Mr is negative at the first zero:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 438px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135875i1B05E77D8555B64B/image-dimensions/438x273?v=v2" width="438" height="273" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Prime 10 sheet attached.&lt;/P&gt;
&lt;P&gt;BTW, when posting a worksheet for a question to be answered, its preferable to limit it to the necessary regions only so its easier to edit and clearer to see where the problem may be. I did not tamper the 34 pages in front, but at least I deleted the 100(!) pages after the relevant position.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2026 23:49:58 GMT</pubDate>
    <dc:creator>Werner_E</dc:creator>
    <dc:date>2026-03-16T23:49:58Z</dc:date>
    <item>
      <title>Solve Block Query</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058376#M220711</link>
      <description>&lt;P&gt;Attempting to use a range to help determine a solve block but am struggling to get this function to work. Any ideas on how to debug this issue? See attached image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2026 16:17:06 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058376#M220711</guid>
      <dc:creator>IA_12699372</dc:creator>
      <dc:date>2026-03-12T16:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Solve Block Query</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058393#M220712</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;It is better to include the worksheet not an image.&lt;/P&gt;
&lt;P&gt;Necessary to put the worksheet in a zip archive file to upload it.&lt;/P&gt;
&lt;P&gt;Which version of Prime are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First&lt;/P&gt;
&lt;P&gt;c1 is a range not a vector variable&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 519px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135748iD9BF0E2288E37BB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2026 17:24:19 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058393#M220712</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2026-03-12T17:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Solve Block Query</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058401#M220714</link>
      <description>&lt;P&gt;Why did you define c.1 as a range and use it later in the solve block?&lt;/P&gt;
&lt;P&gt;Why did you try to use a range as a guess value for the variable c.12 the solve block is supposed to provide a solution for?&lt;/P&gt;
&lt;P&gt;Definitions (using&amp;nbsp; :=&amp;nbsp; &amp;nbsp;) should be placed outside and in front of the solve block.&lt;/P&gt;
&lt;P&gt;Assign c.12 a constant (guess) value like c.12 := 20 mm and see if Prime can find a solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As it looks you are just looking for the (a) zero of function g.&lt;/P&gt;
&lt;P&gt;You may also use the "root" function for this, but you would not be able to apply additional constraints when you do so.&lt;/P&gt;
&lt;P&gt;Guess that for further help you would have to post the worksheet (and say, which version of Prime you are using).&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2026 17:54:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058401#M220714</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2026-03-12T17:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Solve Block Query</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058493#M220719</link>
      <description>&lt;P&gt;Here is how to declare vectors and use them in a parametrized solve block repeatedly.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 526px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135780i6E453E681F32FF31/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2026 08:57:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058493#M220719</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2026-03-13T08:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Solve Block Query</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058548#M220721</link>
      <description />
      <pubDate>Fri, 13 Mar 2026 14:58:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058548#M220721</guid>
      <dc:creator>terryhendicott</dc:creator>
      <dc:date>2026-03-13T14:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Solve Block Query</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058764#M220734</link>
      <description>&lt;P&gt;Thanks both,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do apologise for not attaching the Mathcad sheet in the first place, see attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I am trying to resolve is on page 34 of the attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with Mathcad Prime 10.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2026 14:32:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058764#M220734</guid>
      <dc:creator>IA_12699372</dc:creator>
      <dc:date>2026-03-16T14:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Solve Block Query</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058832#M220737</link>
      <description>&lt;P&gt;Variable and function definitions are better done outside and in front of the solve block.&lt;/P&gt;
&lt;P&gt;The solve block on page 34 fails because with a guess of 38,1 mm the solution for which Mr(c11)&amp;gt;0 cannot be found by the algorithm used in Prime.&lt;/P&gt;
&lt;P&gt;If we deactivate this constraint we get a solution.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 749px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135872i5EF46DF5A911C583/image-dimensions/749x747?v=v2" width="749" height="747" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If we use a larger guess value, we get the second solution for which M.r&amp;gt;0&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 747px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135873i44A92123C707B61A/image-dimensions/747x607?v=v2" width="747" height="607" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here you see the plot of function g along with its two zeros at 38.8 mm and 325.0 mm&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 606px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135874iBB4EE5289DA3E7CD/image-dimensions/606x244?v=v2" width="606" height="244" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It can be clearly seen that Mr is positive at the second zero.&lt;/P&gt;
&lt;P&gt;Zooming in shows that Mr is negative at the first zero:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 438px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135875i1B05E77D8555B64B/image-dimensions/438x273?v=v2" width="438" height="273" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Prime 10 sheet attached.&lt;/P&gt;
&lt;P&gt;BTW, when posting a worksheet for a question to be answered, its preferable to limit it to the necessary regions only so its easier to edit and clearer to see where the problem may be. I did not tamper the 34 pages in front, but at least I deleted the 100(!) pages after the relevant position.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2026 23:49:58 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1058832#M220737</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2026-03-16T23:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Solve Block Query</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1059260#M220744</link>
      <description>&lt;P&gt;Thank you very much both, I am also struggling to root the function on page 25 of the attached. Are you able to assist?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 11:08:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1059260#M220744</guid>
      <dc:creator>IA_12699372</dc:creator>
      <dc:date>2026-03-19T11:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Solve Block Query</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1059280#M220746</link>
      <description>&lt;P&gt;Please ignore this request, I have got it working&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 12:53:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1059280#M220746</guid>
      <dc:creator>IA_12699372</dc:creator>
      <dc:date>2026-03-19T12:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Solve Block Query</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1059281#M220747</link>
      <description>&lt;P&gt;You should test drive functions when you defined them!&lt;/P&gt;
&lt;P&gt;Functions C.s and T.s never will evaluate and throw an error when you try to use them:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 620px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135988i3435117DF543B8BD/image-dimensions/620x239?v=v2" width="620" height="239" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Reason is the vector index "k". Variable "k" is defined as a range (0;1) but must be a scalar integer.&lt;/P&gt;
&lt;P&gt;The same problem also occurs in other function definitions you make!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you expect a 2x1 vector as the result of these functions, you may either use a programmed for-loop&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135990i3BB904DA9EDC62B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or you make the vectors used additional arguments of the function, treat them like scalar arguments and call the function vectorized with the vectors as arguments:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135991iA0DB2E61D6DE2283/image-size/large?v=v2&amp;amp;px=999" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option, which you may like more, is to use vectorization already when defining the function:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 770px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135992i1EE0153479468B3D/image-dimensions/770x84?v=v2" width="770" height="84" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But this does not work in all cases:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 674px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135993i6AF3DE56DCF0E3CD/image-dimensions/674x62?v=v2" width="674" height="62" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Reason in this case is the "min" function which is written to deal with vectors as well and so can't be vectorized.&lt;/P&gt;
&lt;P&gt;A workaround could be to use a local auxiliary function which can be called vectroized:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 763px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135995iC024CEF64895FCFB/image-dimensions/763x84?v=v2" width="763" height="84" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you make the other functions involved to work OK by whatever method, the root function will work as intended:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 747px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135996iD31D707E62AF12B7/image-dimensions/747x391?v=v2" width="747" height="391" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 13:41:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1059281#M220747</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2026-03-19T13:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Solve Block Query</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1059303#M220748</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/913262"&gt;@IA_12699372&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Please ignore this request, I have got it working&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Too late &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But I see that you arrive at the same result as I did in my previous answer.&lt;/P&gt;
&lt;P&gt;The 4-page-sheet you posted is just the kind of sheet you should post when asking a question. Showing only the vital calculations and not a 130+ page sheet which is nearly impossible to deal with.&lt;/P&gt;
&lt;P&gt;Instead of&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135997iCFA2F4260FAA1341/image-size/medium?v=v2&amp;amp;px=400" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I would prefer&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/135998iA79CDB89AF7A8A22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;so that the resulting vector is just returned once at the end of the program AFTER the for-loop finishes.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 13:51:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Solve-Block-Query/m-p/1059303#M220748</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2026-03-19T13:51:41Z</dc:date>
    </item>
  </channel>
</rss>

