<html>
<head>
<base href="http://bugzilla.scilab.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:sgougeon@free.fr" title="Samuel GOUGEON <sgougeon@free.fr>"> <span class="fn">Samuel GOUGEON</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - fsolve() produces wrong answer for certain variable values"
href="http://bugzilla.scilab.org/show_bug.cgi?id=9231">bug 9231</a>
<br><br>
---------- Bug Summary ----------- <br>fsolve() produces wrong answer for certain variable values <br><br>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Component</td>
<td>Scilab
</td>
<td>Numerical Math
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - fsolve() produces wrong answer for certain variable values"
href="http://bugzilla.scilab.org/show_bug.cgi?id=9231#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - fsolve() produces wrong answer for certain variable values"
href="http://bugzilla.scilab.org/show_bug.cgi?id=9231">bug 9231</a>
from <span class="vcard"><a class="email" href="mailto:sgougeon@free.fr" title="Samuel GOUGEON <sgougeon@free.fr>"> <span class="fn">Samuel GOUGEON</span></a>
</span></b>
<pre>(In reply to Samuel GOUGEON from <a href="show_bug.cgi?id=9231#c1">comment #1</a>)
<span class="quote">> Another simple failing case:
>
> * What's the root of exp(x)*(3-x) - 3 = 0 ? : 0 and 2.8214394... Yet:
> function d = test(x)
> d = exp(x).*(3-x) - 3
> endfunction
> [x, v, info] = fsolve(2, test)
>
> // yielding
> -->[x, v, info] = fsolve(2,test)
> info =
> 1. // meaning: algorithm estimates that the relative error between x and the solution is at most tol.
> v =
> 4.3890561 // quite far from 0 !!
> x =
> 2.
>
> The diagnosis given by info looks wrong!</span >
We still get these erroneous result and message in Scilab 6.0.1 / win7 64 bits</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>