Hi
I downloaded Octave from http://mxeoctave.osuv.de/
There is a commandline version and GUI version installed. For both 'ver ("")' returns the following:
----------------------------------------------------------------------
GNU Octave Version 3.8.2
GNU Octave License: GNU General Public License
Operating System: MINGW32_NT-6.1 Windows 7 Service Pack 1 i686
----------------------------------------------------------------------
no packages installed.
The result of
s=0; for i=(1:10^4) s+=(mean(ones(i,1)*.9)-.9); endfor; s
should be zero. Because of rounding errors it is not. But in the command line tools i get
octave:120> s=0; for i=(1:10^4) s+=(mean(ones(i,1)*.9)-.9); endfor; s
s = -4.48086012738713e-013
In the GUI tool I get
>> s=0; for i=(1:10^4) s+=(mean(ones(i,1)*.9)-.9); endfor; s
s = -3.15685588780923e-010
So the error in the GUI version is about 1000 times greater.
There is a similar behvior for the std function.
Can anybody tell me why there is a difference between the command line and the GUI version? What is the difference in the way they calculate the values?
regards guenter