<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, how to solve this equation?</title>
    <link>http://www.mapleprimes.com/questions/140070-How-To-Solve-This-Equation</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Thu, 11 Jun 2026 09:41:08 GMT</lastBuildDate>
    <pubDate>Thu, 11 Jun 2026 09:41:08 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, how to solve this equation?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, how to solve this equation?</title>
      <link>http://www.mapleprimes.com/questions/140070-How-To-Solve-This-Equation</link>
    </image>
    <item>
      <title>NextZero</title>
      <link>http://www.mapleprimes.com/questions/140070-How-To-Solve-This-Equation?ref=Feed:MaplePrimes:how to solve this equation?:Comments#answer140088</link>
      <itunes:summary>&lt;p&gt;It's possible that the integral isn't being computed accurately enough for fsolve (which is basing its own accuracy demand on the value of Digits). I'm not yet sure whether that's the issue. But this seems to work,&lt;/p&gt;
&lt;pre&gt;restart:
F := Int(sqrt((2.138+0.3e-2*exp((4.2^2-z^2)/d^2))^2-2.141^2), z=0 .. 4.2) = .5:
f:=unapply((lhs-rhs)(F),d):

#plot(f,2.0..6.0);

RootFinding:-NextZero(f,2.0);

                          3.957142935
&lt;/pre&gt;
&lt;!--break--&gt;
&lt;p&gt;acer&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;It's possible that the integral isn't being computed accurately enough for fsolve (which is basing its own accuracy demand on the value of Digits). I'm not yet sure whether that's the issue. But this seems to work,&lt;/p&gt;
&lt;pre&gt;restart:
F := Int(sqrt((2.138+0.3e-2*exp((4.2^2-z^2)/d^2))^2-2.141^2), z=0 .. 4.2) = .5:
f:=unapply((lhs-rhs)(F),d):

#plot(f,2.0..6.0);

RootFinding:-NextZero(f,2.0);

                          3.957142935
&lt;/pre&gt;
&lt;!--break--&gt;
&lt;p&gt;acer&lt;/p&gt;</description>
      <guid>140088</guid>
      <pubDate>Mon, 12 Nov 2012 10:57:33 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
    <item>
      <title>By DirectSearch:-SolveEquations</title>
      <link>http://www.mapleprimes.com/questions/140070-How-To-Solve-This-Equation?ref=Feed:MaplePrimes:how to solve this equation?:Comments#answer140112</link>
      <itunes:summary>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;form name="worksheet_form"&gt;
&lt;table style="width: 576px;" align="center"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=140112/447318/86b8921625577c7afb6ec1d24568d8fe.gif" alt="F := Int(sqrt((2.138+0.3e-2*exp((4.2^2-z^2)/d^2))^2-2.141^2), z = 0 .. 4.2) = .5;" width="539" height="23"&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -33;" src="/view.aspx?sf=140112/447318/464bcc73c89fb5532ffb1c1492183d1f.gif" alt="Int(((2.138+0.3e-2*exp((17.64-z^2)/d^2))^2-4.583881)^(1/2), z = 0 .. 4.2) = .5" width="359" height="85"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(1)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=140112/447318/bb6cd2361aa5ce143c6edbfaf0d7a0ac.gif" alt="DirectSearch:-SolveEquations(F, tolerances = 10^(-12))" width="332" height="27"&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -12;" src="/view.aspx?sf=140112/447318/d425be9dc8ed695863d36dac7fdc9fae.gif" alt="[6.40000000000000*10^(-29), Vector(1, {(1) = 0.8e-14}), [d = 3.95714293581322], 52]" width="421" height="35"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(2)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=140112/447318/68e611484f66eed68f92c26753ac4dbe.gif" alt="``" width="11" height="23"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;input type="hidden" name="sequence" value="1"&gt; &lt;input type="hidden" name="cmd" value="none"&gt;&lt;/form&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=140112/447318/SolveEquations.mw"&gt;Download SolveEquations.mw&lt;/a&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;form name="worksheet_form"&gt;
&lt;table style="width: 576px;" align="center"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=140112/447318/86b8921625577c7afb6ec1d24568d8fe.gif" alt="F := Int(sqrt((2.138+0.3e-2*exp((4.2^2-z^2)/d^2))^2-2.141^2), z = 0 .. 4.2) = .5;" width="539" height="23"&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -33;" src="/view.aspx?sf=140112/447318/464bcc73c89fb5532ffb1c1492183d1f.gif" alt="Int(((2.138+0.3e-2*exp((17.64-z^2)/d^2))^2-4.583881)^(1/2), z = 0 .. 4.2) = .5" width="359" height="85"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(1)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=140112/447318/bb6cd2361aa5ce143c6edbfaf0d7a0ac.gif" alt="DirectSearch:-SolveEquations(F, tolerances = 10^(-12))" width="332" height="27"&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="center"&gt;&lt;img style="vertical-align: -12;" src="/view.aspx?sf=140112/447318/d425be9dc8ed695863d36dac7fdc9fae.gif" alt="[6.40000000000000*10^(-29), Vector(1, {(1) = 0.8e-14}), [d = 3.95714293581322], 52]" width="421" height="35"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="color: #000000; font-family: Times, serif; font-weight: bold; font-style: normal;" align="right"&gt;(2)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin: 0 0 0 0; padding-top: 0px; padding-bottom: 0px;" align="left"&gt;&lt;img style="vertical-align: -6;" src="/view.aspx?sf=140112/447318/68e611484f66eed68f92c26753ac4dbe.gif" alt="``" width="11" height="23"&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;input type="hidden" name="sequence" value="1"&gt; &lt;input type="hidden" name="cmd" value="none"&gt;&lt;/form&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=140112/447318/SolveEquations.mw"&gt;Download SolveEquations.mw&lt;/a&gt;&lt;/p&gt;</description>
      <guid>140112</guid>
      <pubDate>Mon, 12 Nov 2012 12:45:32 Z</pubDate>
      <itunes:author>Markiyan Hirnyk</itunes:author>
      <author>Markiyan Hirnyk</author>
    </item>
    <item>
      <title>Thank you,&amp;nbsp;Markiyan Hirnyk&amp;nbsp;and</title>
      <link>http://www.mapleprimes.com/questions/140070-How-To-Solve-This-Equation?ref=Feed:MaplePrimes:how to solve this equation?:Comments#answer140262</link>
      <itunes:summary>&lt;p&gt;Thank you,&amp;nbsp;Markiyan Hirnyk&lt;span class="memberLink"&gt;&amp;nbsp;and acer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;Your methods&amp;nbsp;are very useful.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;To acer:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;the NextZero command does resolve my problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;but for the second method, commands is below:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;(&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;restart:&lt;br&gt;&lt;br&gt;F := Int(sqrt((2.138+0.3e-2*exp((4.2^2-z^2)/d^2))^2-2.141^2), z=0 .. 4.2,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; digits=15, epsilon=1e-12, method=_d01ajc) = .5:&lt;br&gt;&lt;br&gt;fsolve(F,d=2..6);&lt;br&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;there&amp;nbsp;still&amp;nbsp;exists problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;Usually my worksheet is in Worksheet Mode.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;Unless I set the commands above Join Execution Groups, I wouldn't get the result(3.957142936).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;xp 32, maple 13, Celeron 2.53GHz.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;still need help.&lt;/span&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thank you,&amp;nbsp;Markiyan Hirnyk&lt;span class="memberLink"&gt;&amp;nbsp;and acer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;Your methods&amp;nbsp;are very useful.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;To acer:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;the NextZero command does resolve my problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;but for the second method, commands is below:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;(&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;restart:&lt;br&gt;&lt;br&gt;F := Int(sqrt((2.138+0.3e-2*exp((4.2^2-z^2)/d^2))^2-2.141^2), z=0 .. 4.2,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; digits=15, epsilon=1e-12, method=_d01ajc) = .5:&lt;br&gt;&lt;br&gt;fsolve(F,d=2..6);&lt;br&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;there&amp;nbsp;still&amp;nbsp;exists problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;Usually my worksheet is in Worksheet Mode.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;Unless I set the commands above Join Execution Groups, I wouldn't get the result(3.957142936).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;xp 32, maple 13, Celeron 2.53GHz.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="memberLink"&gt;still need help.&lt;/span&gt;&lt;/p&gt;</description>
      <guid>140262</guid>
      <pubDate>Tue, 13 Nov 2012 06:18:20 Z</pubDate>
      <itunes:author>maple fan</itunes:author>
      <author>maple fan</author>
    </item>
    <item>
      <title>fsolve</title>
      <link>http://www.mapleprimes.com/questions/140070-How-To-Solve-This-Equation?ref=Feed:MaplePrimes:how to solve this equation?:Comments#comment140092</link>
      <itunes:summary>&lt;p&gt;It seems my guess was right. fsolve is trying to nail down the 10th digit accurately (for default Digits=10 as the environment). So unless it can compute the expression (involving a numeric integral) at least that accurately then it may get into some trouble. And it may also hit a known issue where evalf/int goes "away" while trying to find discontinuities of the integrand in expression form and when no quadrature method is forced. Using the integrand in operator form is going to confuse fsolve which has overzealous checks for mixed operator/expression cases, so that &amp;nbsp;leaves forcing the quadrature method.&lt;/p&gt;
&lt;p&gt;conclusion: tighten the accuracy of the numeric integral, so fsolve has a chance to meeting its own (somewhat inflexible) accuracy requirement, and force the quadrature method to make it faster.&lt;/p&gt;
&lt;pre&gt;restart:

F := Int(sqrt((2.138+0.3e-2*exp((4.2^2-z^2)/d^2))^2-2.141^2), z=0 .. 4.2,
         digits=15, epsilon=1e-12, method=_d01ajc) = .5:

fsolve(F,d=2..6);

                          3.957142936
&lt;/pre&gt;
&lt;p&gt;If you obtained that Int() call as the result of something else then you might have to do some `op` work to shoehorn in those extra options.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;acer&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;It seems my guess was right. fsolve is trying to nail down the 10th digit accurately (for default Digits=10 as the environment). So unless it can compute the expression (involving a numeric integral) at least that accurately then it may get into some trouble. And it may also hit a known issue where evalf/int goes "away" while trying to find discontinuities of the integrand in expression form and when no quadrature method is forced. Using the integrand in operator form is going to confuse fsolve which has overzealous checks for mixed operator/expression cases, so that &amp;nbsp;leaves forcing the quadrature method.&lt;/p&gt;
&lt;p&gt;conclusion: tighten the accuracy of the numeric integral, so fsolve has a chance to meeting its own (somewhat inflexible) accuracy requirement, and force the quadrature method to make it faster.&lt;/p&gt;
&lt;pre&gt;restart:

F := Int(sqrt((2.138+0.3e-2*exp((4.2^2-z^2)/d^2))^2-2.141^2), z=0 .. 4.2,
         digits=15, epsilon=1e-12, method=_d01ajc) = .5:

fsolve(F,d=2..6);

                          3.957142936
&lt;/pre&gt;
&lt;p&gt;If you obtained that Int() call as the result of something else then you might have to do some `op` work to shoehorn in those extra options.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;acer&lt;/p&gt;</description>
      <guid>140092</guid>
      <pubDate>Mon, 12 Nov 2012 11:10:23 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
    <item>
      <title>AddOptions</title>
      <link>http://www.mapleprimes.com/questions/140070-How-To-Solve-This-Equation?ref=Feed:MaplePrimes:how to solve this equation?:Comments#comment140099</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/140070-How-To-Solve-This-Equation#comment140092"&gt;@acer&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes. I find that a command "AddOptions" is frequently needed. The counterpart of &lt;strong&gt;IntegrationTools:-StripOptions&lt;/strong&gt;.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/140070-How-To-Solve-This-Equation#comment140092"&gt;@acer&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes. I find that a command "AddOptions" is frequently needed. The counterpart of &lt;strong&gt;IntegrationTools:-StripOptions&lt;/strong&gt;.&lt;/p&gt;</description>
      <guid>140099</guid>
      <pubDate>Mon, 12 Nov 2012 11:41:22 Z</pubDate>
      <itunes:author>Alejandro Jakubi</itunes:author>
      <author>Alejandro Jakubi</author>
    </item>
    <item>
      <title>works for me</title>
      <link>http://www.mapleprimes.com/questions/140070-How-To-Solve-This-Equation?ref=Feed:MaplePrimes:how to solve this equation?:Comments#comment140265</link>
      <itunes:summary>&lt;p&gt;It worked for me, with or without separate execution groups, in Maple 13.02. See attached worksheet.&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=140265/447680/mmm.mw"&gt;mmm.mw&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You've shown a pair of round brackets around all the commands. I didn't have that in what I posted. What's their purpose?&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;It worked for me, with or without separate execution groups, in Maple 13.02. See attached worksheet.&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=140265/447680/mmm.mw"&gt;mmm.mw&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You've shown a pair of round brackets around all the commands. I didn't have that in what I posted. What's their purpose?&lt;/p&gt;</description>
      <guid>140265</guid>
      <pubDate>Tue, 13 Nov 2012 07:13:27 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
  </channel>
</rss>