|
From: | Jonathan C. Webster |
Subject: | Re: newbye question |
Date: | Sun, 07 Sep 2003 21:49:58 -0400 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 |
Tiago Lage Payne de Padua wrote:
what is wrong in this polinomiun? ret=v(7) * r^6 + v(6) * r^5 + v(5) * r^4 + v(4) * r^3 + v(3) * r^2 + v(2)*r + v(1); when I use values that ret must return zero, ret = -1.7764e-15
Octave uses a "double precision" rendition of "real" numbers. That is what you are seeing.
Jonathan ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |