Wed 08 Jan 2014 10:39:43 AM UTC, original submission:
Hi,
I happen to install Octave on two different machines, one ubuntu and another centOS.
I installed octave from apt-get and yum repositories respectively.
Ubuntu is a 64 bit machine and has version 3.2.4
CentOS is a 32 bit machine and has version 3.4.3
When I run the following function
function y = f(x);y = zeros (3,1);y(1) = -88.0 + 20.0log10(sqrt((8.5-x(1))^2+(4.55-x(2))^2+(0.0-0)^2))- x(3);y(2) = -91.0 + 20.0log10(sqrt((2.9-x(1))^2+(8.375-x(2))^2+(0.0-0)^2))- x(3);y(3) = -62.0 + 20.0*log10(sqrt((8.01-x(1))^2+(8.375-x(2))^2+(0.0-0)^2))- x(3);endfunction; [x, fval, info] = fsolve (@f, [1; 1; 1])
I get two different outputs on each machine.
Output on ubuntu (v 3.2.4)
x =
8.1690
8.2760
-76.5510
fval =
0.0099340
-0.0128684
0.0030655
info = 0
Output on centOS (v 3.4.3)
x =
-317.530
-1605.336
-15.975
fval =
-7.7144
-10.7004
18.3049
info = 3
--------------
Output from Ubuntu (64bit, v 3.2.4) is correct. Is this a bug in the newer release?
---------------
Version info:
Ubuntu
CentOSoctave -v
GNU Octave, version 3.2.4
Copyright (C) 2009 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
Octave was configured for "x86_64-pc-linux-gnu".
Additional information about Octave is available at http://www.octave.org.
Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html
Report bugs to <bug@octave.org> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).
$ octave -v
GNU Octave, version 3.4.3
Copyright (C) 2011 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
Octave was configured for "i386-redhat-linux-gnu".
Additional information about Octave is available at http://www.octave.org.
Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html
Read http://www.octave.org/bugs.html to learn how to submit bug reports.
|