[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49204] addition of two dissimilar vectors
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #49204] addition of two dissimilar vectors |
Date: |
Wed, 28 Sep 2016 06:23:26 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 |
URL:
<http://savannah.gnu.org/bugs/?49204>
Summary: addition of two dissimilar vectors
Project: GNU Octave
Submitted by: None
Submitted on: Wed 28 Sep 2016 06:23:24 AM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.3
Operating System: Microsoft Windows
_______________________________________________________
Details:
Following problems in a book (GNU Octave Packt Publishing) I added two
dissimilar vectors b = [1 2 3] and c=[1;2;3]: A 1x3 vector and the other a 3x1
vector. Since I tend to react too quickly I questioned that I understood what
I was looking at, but regardless Octave gave me a 3x3 vector:
2 3 4
3 4 5
4 5 6
The Book said that I should have seen an error, not a matrix! But assuming I
might be doing something wrong I tried it out in scilab and I got the error. I
went back to my linear algebra book and it said that I cannot add a 1x3 to a
3x1, and I looked it up on the internet and it too said that.
But I wondered how in the world can a major piece of code be wrong on such a
basic operation. This kind of a problem is covered on the first day of linear
algebra 101.
Am I doing something wrong or is there a bug in Octave?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49204>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49204] addition of two dissimilar vectors,
anonymous <=