<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, fsolve outputs different solution when using complex parameter.</title>
    <link>http://www.mapleprimes.com/questions/140758-Fsolve-Outputs-Different-Solution-When</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 09:13:48 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 09:13:48 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, fsolve outputs different solution when using complex parameter.</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, fsolve outputs different solution when using complex parameter.</title>
      <link>http://www.mapleprimes.com/questions/140758-Fsolve-Outputs-Different-Solution-When</link>
    </image>
    <item>
      <title>fsolve outputs different solution when using complex parameter.</title>
      <link>http://www.mapleprimes.com/questions/140758-Fsolve-Outputs-Different-Solution-When?ref=Feed:MaplePrimes:fsolve outputs different solution when using complex parameter.:Comments#answer140763</link>
      <itunes:summary>&lt;!--break--&gt;
&lt;p&gt;In this particular case, the compelx argument to fsolve causes it to look for an answer that is greater than zero, whereas the version without uses a seed value that is different causing it to find -2.753166165 as the root.&amp;nbsp; Both are real and both are correct.&amp;nbsp; You can try this with a given range that you define, with and without the complex option to see that you get the same answer.&lt;/p&gt;
&lt;p&gt;fsolve(EQ1,T,complex,300..400);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 351.311867751985&lt;br&gt;fsolve(EQ1,T,complex,-3..3);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -2.75316616485215&lt;br&gt;fsolve(EQ1,T,300..400);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 351.311867751985&lt;br&gt;fsolve(EQ1,T,-3..3);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -2.75316616485215&lt;/p&gt;
&lt;p&gt;From the help file:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For a single polynomial equation of one variable with real coefficients, by default the fsolve command computes all real (non-complex) roots. It may not return all roots for exceptionally ill-conditioned polynomials.&lt;/p&gt;
&lt;p&gt;Your equation is very sensitive to small variations in x.&amp;nbsp; A plot will show you this.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Georgios Kokovidis&lt;/p&gt;
&lt;p&gt;Dr&amp;auml;ger Medical&lt;/p&gt;</itunes:summary>
      <description>&lt;!--break--&gt;
&lt;p&gt;In this particular case, the compelx argument to fsolve causes it to look for an answer that is greater than zero, whereas the version without uses a seed value that is different causing it to find -2.753166165 as the root.&amp;nbsp; Both are real and both are correct.&amp;nbsp; You can try this with a given range that you define, with and without the complex option to see that you get the same answer.&lt;/p&gt;
&lt;p&gt;fsolve(EQ1,T,complex,300..400);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 351.311867751985&lt;br&gt;fsolve(EQ1,T,complex,-3..3);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -2.75316616485215&lt;br&gt;fsolve(EQ1,T,300..400);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 351.311867751985&lt;br&gt;fsolve(EQ1,T,-3..3);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -2.75316616485215&lt;/p&gt;
&lt;p&gt;From the help file:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For a single polynomial equation of one variable with real coefficients, by default the fsolve command computes all real (non-complex) roots. It may not return all roots for exceptionally ill-conditioned polynomials.&lt;/p&gt;
&lt;p&gt;Your equation is very sensitive to small variations in x.&amp;nbsp; A plot will show you this.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Georgios Kokovidis&lt;/p&gt;
&lt;p&gt;Dr&amp;auml;ger Medical&lt;/p&gt;</description>
      <guid>140763</guid>
      <pubDate>Sat, 24 Nov 2012 05:21:23 Z</pubDate>
      <itunes:author>gkokovidis</itunes:author>
      <author>gkokovidis</author>
    </item>
    <item>
      <title>Not a polynomial</title>
      <link>http://www.mapleprimes.com/questions/140758-Fsolve-Outputs-Different-Solution-When?ref=Feed:MaplePrimes:fsolve outputs different solution when using complex parameter.:Comments#answer140765</link>
      <itunes:summary>&lt;p&gt;In the help page for fsolve&amp;nbsp; and fsolve,details it says:&lt;/p&gt;
&lt;p&gt;"For a general equation or system of equations, the fsolve command computes a single real root."&lt;/p&gt;
&lt;p&gt;And under the explanation of the optional 'complex':&lt;/p&gt;
&lt;p&gt;"complex&lt;br&gt;Find one root (or all roots, for polynomials) over the complex floating-point numbers."&lt;/p&gt;
&lt;p&gt;You may try&lt;/p&gt;
&lt;p&gt;fsolve(EQ1,T=300+100*I,complex);&lt;br&gt;fsolve(EQ1,T=300+100*I);&lt;/p&gt;
&lt;p&gt;inspired by the results from&lt;/p&gt;
&lt;p&gt;RootFinding:-Analytic((rhs-lhs)(EQ1),T=-5-5*I..400+400*I);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;In the help page for fsolve&amp;nbsp; and fsolve,details it says:&lt;/p&gt;
&lt;p&gt;"For a general equation or system of equations, the fsolve command computes a single real root."&lt;/p&gt;
&lt;p&gt;And under the explanation of the optional 'complex':&lt;/p&gt;
&lt;p&gt;"complex&lt;br&gt;Find one root (or all roots, for polynomials) over the complex floating-point numbers."&lt;/p&gt;
&lt;p&gt;You may try&lt;/p&gt;
&lt;p&gt;fsolve(EQ1,T=300+100*I,complex);&lt;br&gt;fsolve(EQ1,T=300+100*I);&lt;/p&gt;
&lt;p&gt;inspired by the results from&lt;/p&gt;
&lt;p&gt;RootFinding:-Analytic((rhs-lhs)(EQ1),T=-5-5*I..400+400*I);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>140765</guid>
      <pubDate>Sat, 24 Nov 2012 05:49:22 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>thanks for correction</title>
      <link>http://www.mapleprimes.com/questions/140758-Fsolve-Outputs-Different-Solution-When?ref=Feed:MaplePrimes:fsolve outputs different solution when using complex parameter.:Comments#answer140767</link>
      <itunes:summary>&lt;p&gt;Thanks for the correction.&amp;nbsp; In my haste, I did not pay attention to the exp() when looking @ the help file.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Georgios Kokovidis&lt;/p&gt;
&lt;p&gt;Dr&amp;auml;ger Medical&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Thanks for the correction.&amp;nbsp; In my haste, I did not pay attention to the exp() when looking @ the help file.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Georgios Kokovidis&lt;/p&gt;
&lt;p&gt;Dr&amp;auml;ger Medical&lt;/p&gt;</description>
      <guid>140767</guid>
      <pubDate>Sat, 24 Nov 2012 06:00:25 Z</pubDate>
      <itunes:author>gkokovidis</itunes:author>
      <author>gkokovidis</author>
    </item>
  </channel>
</rss>