Hi Rafael,
On Fri, Dec 05, 2008 at 05:13:22AM -0800, Rafael wrote:
> sage: m*evec
> ---
> TypeError Traceback (most recent call
> last)
>
> So it seems I need to convert evec, which is a seque
You forgot the "[0]":
sage: m = matrix([[1,2,2],[2,1,2],[2,2,1]]); m
[1 2 2]
[2 1 2]
[2 2 1]
sage: es = m.eigenvectors_right(); es
[(5, [
(1, 1, 1)
], 1), (-1, [
(1, 0, -1),
(0, 1, -1)
], 2)]
sage: eval, evec, degen = es[0]; evec[0]
(1, 1, 1)
sage: m*evec[0]
(5, 5, 5)
On Fri, Dec 5, 2008 at
Rafael wrote:
> Hello,
>
> I would like to pick out individual eigenvectors of a matrix, and then
> be able to manipulate them as vectors. I tried the following:
>
> --
> | Sage Version 3.2, Release Date: 2008-11-20