[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug when dividing a scalar by a vector?
From: |
Mike Miller |
Subject: |
Re: Bug when dividing a scalar by a vector? |
Date: |
Thu, 12 Jan 2017 08:33:52 -0800 |
User-agent: |
NeoMutt/20161126 (1.7.1) |
On Thu, Jan 12, 2017 at 17:23:31 +0100, Sebastian Schöps wrote:
> yes. My confusion popped up because 1./x was meant but 1/x was written
> in the code. Debugging took ages. Is this behaviour documented? - I
> use the Matlab language for more than 15 years and I was not aware!
Under "doc /" I see
If the system is not square, or if the coefficient matrix is
singular, a minimum norm solution is computed.
> I checked: no, Matlab does not warn in the case of 1/x. It does warn
> if you solve a singular equation system ("Matrix is singular to
> working precision.") but it does not mention that a least squares
> solution will be returned. Older version of Octave were more explicit,
> right? I liked that but it seems that I missed that it was changed.
In Octave 3.6.4 I get the same answer with 1/[1;1;1;1] and no warning
message.
--
mike