<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi all (I made a new subject)<br>
<br>
Thank you Antoine for the link to David Goldberg. Not exactly easy
reading (and 44 pages of it).<br>
<br>
I found it interesting in my search for better calculations in
Scilab that there are specific ways to handle hypothenuses.<br>
<br>
I also dug into a text by Michael Baudin about Floating Points in
Scilab:<br>
forge.scilab.org/index.php/p/docscifloat/downloads/get/floatingpoint_v0.1.pdf<br>
(David Goldberg is one of his references)<span style="color:
rgb(0, 102, 33); font-family: arial, sans-serif; font-size:
14px; font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal; letter-spacing:
normal; line-height: 16px; orphans: 2; text-align: left;
text-indent: 0px; text-transform: none; white-space: nowrap;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
display: inline !important; float: none; background-color:
rgb(255, 255, 255);"></span><br>
<br>
Here the special works of hypothenuses is further supported (page
43-44 onward).<br>
<br>
I wonder, does Scilab have the hypot function, similar to Matlab?
... Googling gives me no hits for Scilab but a page of hits with
Matlab. For example
<a class="moz-txt-link-freetext" href="http://blogs.mathworks.com/loren/2008/02/07/why-hypot/">http://blogs.mathworks.com/loren/2008/02/07/why-hypot/</a><br>
<br>
/Claus<br>
<br>
On 23-08-2016 14:59, Antoine Monmayrant wrote:<br>
</div>
<blockquote cite="mid:99d-57bc4880-5-5876c30@257233534" type="cite">
<pre wrap="">Hello Paul,
We all make the same mistake at some point.
I did it few years ago and someone mentioned this article: "What every computer scientist should know about floating-point arithmetic" by David Goldberg.
It's available online, for example here: <a class="moz-txt-link-freetext" href="http://perso.ens-lyon.fr/jean-michel.muller/goldberg.pdf">http://perso.ens-lyon.fr/jean-michel.muller/goldberg.pdf</a>
I think it's worth reading it.
Cheers,
Antoine
Le Mardi, Août 23, 2016 14:43 CEST, "Carrico, Paul" <a class="moz-txt-link-rfc2396E" href="mailto:paul.carrico@esterline.com"><paul.carrico@esterline.com></a> a écrit:
</pre>
<blockquote type="cite">
<pre wrap="">I've had like a newbie ....
Thanks for the lesson :)
EXPORT CONTROL :
Cet email ne contient pas de données techniques
This email does not contain technical data
De : users [<a class="moz-txt-link-freetext" href="mailto:users-bounces@lists.scilab.org">mailto:users-bounces@lists.scilab.org</a>] De la part de Samuel Gougeon
Envoyé : mardi 23 août 2016 14:27
À : Users mailing list for Scilab
Objet : [EXTERNAL] Re: [Scilab-users] Whay False
Hello,
Le 23/08/2016 13:56, Carrico, Paul a écrit :
Hi All,
I spent a lot of time in looking for an issue in my code ; finally I found the origin but I do not understand why ... probably a very basic reason :|
Any suggestion regarding the code here after ?
--> modulo(2.05, 2) - 0.05
ans =
-1.804D-16
This is a classical result in Numerical computing.
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>