> Can someone please explain this to me?
Works fine for me -
sage: A = matrix([[0, 4], [-1, 0]])
sage: A
[ 0 4]
[-1 0]
sage: A.eigenvalues
<built-in method eigenvalues of
sage.matrix.matrix_integer_dense.Matrix_integer_dense object at
0x100408f80>
sage: A.eigenvalues()
[-2*I, 2*I]
>
> I'm using Ubuntu 9.04, sage version 3.0.5 which I installed from the
> synaptic package manager.
Upgrade. It might not be your problem, but 3.0.5 is ancient...
--
http://yomcat.geek.nz
There's a space between "eigenvalues" and "()". Python (and hence Sage)
gets confused by that. Use A.eigenvalues() with no spaces.
Dan
--
--- Dan Drake
----- http://mathsci.kaist.ac.kr/~drake
-------
Yep. I believe this is the relevant patch, showing it went in in 3.1.2:
http://trac.sagemath.org/sage_trac/ticket/3794
Jason
--
Jason Grout
Yes, sort of. See the thread on a PPA package for Sage on sage-devel.
Jason
--
Jason Grout
Wow, I wish you would have asked for help before going through all of that.
Just download the source of Sage, uncompress it, cd into the directory,
and type "make". Then wait a few hours (probably 3-4, maybe?). Then
you'll have a freshly compiled version.
Right now, there are some people that have expressed interest in making
a Debian/Ubuntu package of the current Sage, so you'd just add a line to
your Software Sources and then install it from the repository. I hope
this happens soon.
Thanks,
Jason
--
Jason Grout
Also, of course, feel free to use the free online sage server at
sagenb.org to do things!
Jason
--
Jason Grout