[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem with column specification in matrices
From: |
Mike Miller |
Subject: |
problem with column specification in matrices |
Date: |
Thu, 31 Oct 2002 13:07:22 -0600 (CST) |
What's the deal with this? In command 3, you can see that octave messes
up when I do not include a comma between columns of the matrix. A comma
seems not to be required, so this seems like a bug. It does it at least
under 2.1.36.
--Mike
octave:1> n=[10 100 500 1000 5000 10000]'
n =
10
100
500
1000
5000
10000
octave:2> (1+1./n).^n
ans =
2.5937
2.7048
2.7156
2.7169
2.7180
2.7181
octave:3> [n (1+1./n).^n]
ans =
1.0000e+10
1.0000e+100
Inf
Inf
Inf
Inf
octave:4> [n, (1+1./n).^n]
ans =
1.0000e+01 2.5937e+00
1.0000e+02 2.7048e+00
5.0000e+02 2.7156e+00
1.0000e+03 2.7169e+00
5.0000e+03 2.7180e+00
1.0000e+04 2.7181e+00
-------------------------------------------------------------
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
-------------------------------------------------------------
- problem with column specification in matrices,
Mike Miller <=