<?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: Possible bug in Prime10 Symbolic math in Mathcad</title>
    <link>https://www.ptcusercommunity.com/t5/Mathcad/Possible-bug-in-Prime10-Symbolic-math/m-p/965087#M213124</link>
    <description>&lt;P&gt;Thank you for such a thoughtful answer!&amp;nbsp; I agree - the substitution was done AFTER the integration, and the method you suggested for forcing it to do the integration AFTER the substitution does make sense.&amp;nbsp; I still consider it a limitation but can work with your suggested solution!&amp;nbsp; Thank you!!!&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2024 16:11:51 GMT</pubDate>
    <dc:creator>JK_10910070</dc:creator>
    <dc:date>2024-08-05T16:11:51Z</dc:date>
    <item>
      <title>Possible bug in Prime10 Symbolic math</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Possible-bug-in-Prime10-Symbolic-math/m-p/964927#M213117</link>
      <description>&lt;P&gt;I could be doing something wrong here, but it seems that I see an inconsistency in the substitution function in the symbolic math in Mathcad Prime 10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started with:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JK_10910070_0-1722714338781.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108719i5DA109E108CCEE5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JK_10910070_0-1722714338781.png" alt="JK_10910070_0-1722714338781.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The result here in incorrect in that the first term (se^2*Vc*t^2) should be divided by 2.&lt;/P&gt;&lt;P&gt;If I do the same integral without using the substitute function as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JK_10910070_1-1722714438417.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108720i3A478F63531FB237/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JK_10910070_1-1722714438417.png" alt="JK_10910070_1-1722714438417.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here we arrived at the correct answer.&amp;nbsp; It seems possible to me that it might have something to do with the limits of integration.&amp;nbsp; I tried using a top limit that was not the same as the integration variable and it did not make any difference.&lt;/P&gt;&lt;P&gt;I will be really grateful for anyone's perspective here especially if you see that I am incorrectly using the function.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2024 19:54:17 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Possible-bug-in-Prime10-Symbolic-math/m-p/964927#M213117</guid>
      <dc:creator>JK_10910070</dc:creator>
      <dc:date>2024-08-03T19:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug in Prime10 Symbolic math</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Possible-bug-in-Prime10-Symbolic-math/m-p/964932#M213118</link>
      <description>&lt;P&gt;It has nothing to do with the limits.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The substitution just is done AFTER the integral is calculated and so the extra variable of integration t which is introduced by the substitution is not yet taken into account when integrating.&lt;/P&gt;
&lt;P&gt;So its the same as integrating as a fist step and then apply the substitution in a second step:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1722720208591.png" style="width: 930px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108721i3BC05B8F1C9F7318/image-dimensions/930x86?v=v2" width="930" height="86" role="button" title="Werner_E_0-1722720208591.png" alt="Werner_E_0-1722720208591.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You may define I as a function of t to make it work.&lt;/P&gt;
&lt;P&gt;And, yes, its not correct to use the variable of integration as an integral limit. Even though its convenient and Primes symbolics accepts it, you should use different names.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1722720516052.png" style="width: 528px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108722i8E4C5F8BF42E2EC6/image-dimensions/528x143?v=v2" width="528" height="143" role="button" title="Werner_E_1-1722720516052.png" alt="Werner_E_1-1722720516052.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Don't mind the red error - it does not matter in symbolic calculations.&lt;/P&gt;
&lt;P&gt;To avoid that error which is thrown by the numeric engine, you would have to turn I into a function of all involved unknowns:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1722720648037.png" style="width: 715px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108723i4A718A26E5168EA2/image-dimensions/715x156?v=v2" width="715" height="156" role="button" title="Werner_E_2-1722720648037.png" alt="Werner_E_2-1722720648037.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Of course you could also do the same without a function definition, but then we are back to the formal error of an integral limit being ident with&amp;nbsp; the variable of integration:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_3-1722722571403.png" style="width: 459px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108724iB64DC3F4670E734C/image-dimensions/459x133?v=v2" width="459" height="133" role="button" title="Werner_E_3-1722722571403.png" alt="Werner_E_3-1722722571403.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and it may look strange in the context of your sheet if you define I with tau instead of t&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_4-1722722728250.png" style="width: 463px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108725i8DD45B6C8F062628/image-dimensions/463x133?v=v2" width="463" height="133" role="button" title="Werner_E_4-1722722728250.png" alt="Werner_E_4-1722722728250.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may combine the two regions (function definition and integral) in one program region if you like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_9-1722723754968.png" style="width: 626px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108730iAEB33184AC503279/image-dimensions/626x122?v=v2" width="626" height="122" role="button" title="Werner_E_9-1722723754968.png" alt="Werner_E_9-1722723754968.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;Additional remark:&lt;/P&gt;
&lt;P&gt;I hoped and expected that the following approach would work&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_6-1722723365016.png" style="width: 669px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108727i21F1666A71D7DC1C/image-dimensions/669x111?v=v2" width="669" height="111" role="button" title="Werner_E_6-1722723365016.png" alt="Werner_E_6-1722723365016.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but as you can see it doesn't.&lt;/P&gt;
&lt;P&gt;It worked OK in real Mathcad (version 15 and below)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_7-1722723415982.png" style="width: 543px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108728i9EDB46C75B429B65/image-dimensions/543x69?v=v2" width="543" height="69" role="button" title="Werner_E_7-1722723415982.png" alt="Werner_E_7-1722723415982.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;or better&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_8-1722723439490.png" style="width: 556px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108729iB2CC5E3EFBA6B0BE/image-dimensions/556x69?v=v2" width="556" height="69" role="button" title="Werner_E_8-1722723439490.png" alt="Werner_E_8-1722723439490.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Seems to be one of the things which were broken in Prime &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2024 22:24:02 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Possible-bug-in-Prime10-Symbolic-math/m-p/964932#M213118</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-08-03T22:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug in Prime10 Symbolic math</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Possible-bug-in-Prime10-Symbolic-math/m-p/964942#M213119</link>
      <description>&lt;P&gt;I consider it as being a bug that substitution does not work as we were used from real Mathcad;&lt;/P&gt;
&lt;P&gt;Mathcad 15:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_0-1722724553735.png" style="width: 336px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108731iA7AFA2EFA91180D5/image-dimensions/336x171?v=v2" width="336" height="171" role="button" title="Werner_E_0-1722724553735.png" alt="Werner_E_0-1722724553735.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Prime 10:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_1-1722724602910.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108732iA5CDBAF4E37E59E8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_1-1722724602910.png" alt="Werner_E_1-1722724602910.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And yes, I checked that all occurrences of f and x are labelled the same (a common problem in Prime).&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;The bug has nothing to do with the new symbolic engine (FriCas/Axiom) introduced in Prime 6, the behaviour is the very same in older Prime versions which use the same symbolic engine (muPad) as Mathcad 15.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: The last remark is not fully correct! The behaviour is correct up to Prime 5. In Prime 6 it got broken, no matter if we use the old or the new symbolic engine (P6 was the only version were we could switch between muPad and FriCAS as symbolic engines).&lt;/P&gt;
&lt;P&gt;Here what we see in Prime 5:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_2-1722725144770.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108733iEF06814D037FB748/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Werner_E_2-1722725144770.png" alt="Werner_E_2-1722725144770.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And of course the integral in question works OK, too, in Prime 5 with substitution, if we use "I" as a function&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_5-1722725448376.png" style="width: 789px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108736i86D1C4E2EEDA7C3A/image-dimensions/789x75?v=v2" width="789" height="75" role="button" title="Werner_E_5-1722725448376.png" alt="Werner_E_5-1722725448376.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;or even&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Werner_E_4-1722725420818.png" style="width: 798px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108735i97E9D1524DFAD0B8/image-dimensions/798x76?v=v2" width="798" height="76" role="button" title="Werner_E_4-1722725420818.png" alt="Werner_E_4-1722725420818.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Actually I don't understand why "simplify" was needed in the simpler example with f(x) but not needed for the last one ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2024 22:54:53 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Possible-bug-in-Prime10-Symbolic-math/m-p/964942#M213119</guid>
      <dc:creator>Werner_E</dc:creator>
      <dc:date>2024-08-03T22:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Possible bug in Prime10 Symbolic math</title>
      <link>https://www.ptcusercommunity.com/t5/Mathcad/Possible-bug-in-Prime10-Symbolic-math/m-p/965087#M213124</link>
      <description>&lt;P&gt;Thank you for such a thoughtful answer!&amp;nbsp; I agree - the substitution was done AFTER the integration, and the method you suggested for forcing it to do the integration AFTER the substitution does make sense.&amp;nbsp; I still consider it a limitation but can work with your suggested solution!&amp;nbsp; Thank you!!!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 16:11:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Mathcad/Possible-bug-in-Prime10-Symbolic-math/m-p/965087#M213124</guid>
      <dc:creator>JK_10910070</dc:creator>
      <dc:date>2024-08-05T16:11:51Z</dc:date>
    </item>
  </channel>
</rss>

