<?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 Probem with ODE solvers with units in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Probem-with-ODE-solvers-with-units/m-p/1059345#M220750</link>
    <description>&lt;P&gt;I normaly use odesolve in a solve block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I.m struggling to learn how to use the other ODE solvers with units. I asked AI to provide an example. Sadly, the AI example also failed. Typical (cryptic error messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ODE errors.png" style="width: 674px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/136004iB762D4A3177736B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="ODE errors.png" alt="ODE errors.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Mathcad Prime 11 file attached.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2026 21:15:20 GMT</pubDate>
    <dc:creator>rgunwaldsen</dc:creator>
    <dc:date>2026-03-19T21:15:20Z</dc:date>
    <item>
      <title>Probem with ODE solvers with units</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Probem-with-ODE-solvers-with-units/m-p/1059345#M220750</link>
      <description>&lt;P&gt;I normaly use odesolve in a solve block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I.m struggling to learn how to use the other ODE solvers with units. I asked AI to provide an example. Sadly, the AI example also failed. Typical (cryptic error messages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ODE errors.png" style="width: 674px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/136004iB762D4A3177736B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="ODE errors.png" alt="ODE errors.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Mathcad Prime 11 file attached.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 21:15:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Probem-with-ODE-solvers-with-units/m-p/1059345#M220750</guid>
      <dc:creator>rgunwaldsen</dc:creator>
      <dc:date>2026-03-19T21:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Probem with ODE solvers with units</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Probem-with-ODE-solvers-with-units/m-p/1059352#M220751</link>
      <description>&lt;P&gt;I am not sure if these stand alone solvers are meant to work with units.&lt;/P&gt;
&lt;P&gt;I experienced some discrepancies:&lt;/P&gt;
&lt;P&gt;1) For rkfixed to work OK the matrix D must be made dimensionless, the initial conditions can be supplied with units&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 550px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/136006i097CF68AC7163E9C/image-dimensions/550x466?v=v2" width="550" height="466" 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;2) For RKadapt to work OK, the initial conditions must be dimensionless but D can be used as it is&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 553px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/136007i3D635A6D0EC672B5/image-dimensions/553x494?v=v2" width="553" height="494" 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;In both cases s0 is (erroneously) dimensionless, but the results for s1 and s2 come out with the correct units when rkfixed is used.&lt;BR /&gt;Both functions don't seem to care about the units used in x.start and x.end. It doesn't matter if we apply units here or not.&lt;/P&gt;
&lt;P&gt;Quite inconsistent. But as we don't know, if these functions are meant to be used with units (the help is not helpul, just talking about real values and scalars but isn't mentioning units) we can't say if we are experiencing bugs or just side effects because of incorrectly using the functions with units.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, I found a 14 year old thread which also covers inconsistencies of the stand alone solvers when using units -&amp;gt;&amp;nbsp;&lt;A href="https://community.ptc.com/t5/Mathcad/Units-in-the-rkfixed-function/td-p/318245" target="_blank" rel="noopener"&gt;Units in the rkfixed function&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And because you mentioned AI.&amp;nbsp;I don't believe much in AI, and the accuracy of the answers you get from it is, at the very least, highly questionable. Nevertheless, here is the answer provided by Google's AI:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 824px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/136008i31C7C7E960190681/image-dimensions/824x521?v=v2" width="824" height="521" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 22:41:47 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Probem-with-ODE-solvers-with-units/m-p/1059352#M220751</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2026-03-19T22:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Probem with ODE solvers with units</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Probem-with-ODE-solvers-with-units/m-p/1059356#M220752</link>
      <description>&lt;P&gt;In the thread I linked to above Viktor Korobov mentioned that Radau worked OK, so I gave it a try.&lt;/P&gt;
&lt;P&gt;It looks like Radau can be used with units and the results come with correct units as well.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="grafik.png" style="width: 552px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/136009i647E17104CD611FE/image-dimensions/552x507?v=v2" width="552" height="507" role="button" title="grafik.png" alt="grafik.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I asked Googles AI and the answer was the same as with rkfixed - &lt;FONT color="#800000"&gt;&lt;EM&gt;"No, the&amp;nbsp;&lt;STRONG class="Yjhzub" data-processed="true" data-complete="true" data-sfc-cb="" data-sfc-root="c"&gt;radau&lt;/STRONG&gt; function in Mathcad Prime &lt;STRONG class="Yjhzub" data-processed="true" data-complete="true" data-sfc-cb="" data-sfc-root="c"&gt;cannot be used with units&lt;/STRONG&gt;."&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 22:56:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Probem-with-ODE-solvers-with-units/m-p/1059356#M220752</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2026-03-19T22:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Probem with ODE solvers with units</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Probem-with-ODE-solvers-with-units/m-p/1059357#M220753</link>
      <description>&lt;P&gt;Thanks Werner -- you da Man!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 23:27:04 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Probem-with-ODE-solvers-with-units/m-p/1059357#M220753</guid>
      <dc:creator>rgunwaldsen</dc:creator>
      <dc:date>2026-03-19T23:27:04Z</dc:date>
    </item>
  </channel>
</rss>

