|
From: | Joseph C. Slater |
Subject: | Re: sqrt(1:4)(1:2:4) -> 1.0000 1.4142 1.7321 2.0000 |
Date: | Sun, 31 Oct 2004 09:08:08 -0500 |
On Oct 29, 2004, at 3:59 PM, Etienne Grossmann wrote:
Hi all, I'm using 2.1.57. Is this the usual/desired behavior? I have the feeling that it used to be that lines 17, 19 and 20 below would all give the same result, that of line 20. Cheers, Etienne octave:17> sqrt(1:4)(1:2:4) ans = 1.0000 1.4142 1.7321 2.0000
This result bothered me, so I tried it myself and got the following: >> sqrt(1:4)(1:2:4) ans = 1.00000 1.73205 Same version of Octave. Peculiar that you wouldn't get the same. Joe \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ (+1) 937-775-5085 http://www.cs.wright.edu/~jslater ------------------------------------------------------------- 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] |