08.02.2015 Views

Sage Reference Manual: Matrices and Spaces of Matrices - Mirrors

Sage Reference Manual: Matrices and Spaces of Matrices - Mirrors

Sage Reference Manual: Matrices and Spaces of Matrices - Mirrors

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Sage</strong> <strong>Reference</strong> <strong>Manual</strong>: <strong>Matrices</strong> <strong>and</strong> <strong>Spaces</strong> <strong>of</strong> <strong>Matrices</strong>, Release 6.1.1<br />

[ 1 1/15*a1 + 2/5 2/15*a1 - 1/5], 1)<br />

]<br />

sage: e, v, n = es[0]; v = v.basis()[0]<br />

sage: delta = e*v - v*A<br />

sage: abs(abs(delta)) < 1e-10<br />

True<br />

The same computation, but with implicit base change to a field.<br />

sage: A = matrix(ZZ,3,range(9)); A<br />

[0 1 2]<br />

[3 4 5]<br />

[6 7 8]<br />

sage: A.eigenspaces_left(format=’galois’)<br />

[<br />

(0, Vector space <strong>of</strong> degree 3 <strong>and</strong> dimension 1 over Rational Field<br />

User basis matrix:<br />

[ 1 -2 1]),<br />

(a1, Vector space <strong>of</strong> degree 3 <strong>and</strong> dimension 1 over Number Field in a1 with defining polynomi<br />

User basis matrix:<br />

[ 1 1/15*a1 + 2/5 2/15*a1 - 1/5])<br />

]<br />

We compute the left eigenspaces <strong>of</strong> the matrix <strong>of</strong> the Hecke operator T 2 on level 43 modular symbols, both<br />

with all eigenvalues (the default) <strong>and</strong> with one subspace per factor.<br />

sage: A = ModularSymbols(43).T(2).matrix(); A<br />

[ 3 0 0 0 0 0 -1]<br />

[ 0 -2 1 0 0 0 0]<br />

[ 0 -1 1 1 0 -1 0]<br />

[ 0 -1 0 -1 2 -1 1]<br />

[ 0 -1 0 1 1 -1 1]<br />

[ 0 0 -2 0 2 -2 1]<br />

[ 0 0 -1 0 1 0 -1]<br />

sage: A.base_ring()<br />

Rational Field<br />

sage: f = A.charpoly(); f<br />

x^7 + x^6 - 12*x^5 - 16*x^4 + 36*x^3 + 52*x^2 - 32*x - 48<br />

sage: factor(f)<br />

(x - 3) * (x + 2)^2 * (x^2 - 2)^2<br />

sage: A.eigenspaces_left(algebraic_multiplicity=True)<br />

[<br />

(3, Vector space <strong>of</strong> degree 7 <strong>and</strong> dimension 1 over Rational Field<br />

User basis matrix:<br />

[ 1 0 1/7 0 -1/7 0 -2/7], 1),<br />

(-2, Vector space <strong>of</strong> degree 7 <strong>and</strong> dimension 2 over Rational Field<br />

User basis matrix:<br />

[ 0 1 0 1 -1 1 -1]<br />

[ 0 0 1 0 -1 2 -1], 2),<br />

(-1.414213562373095, Vector space <strong>of</strong> degree 7 <strong>and</strong> dimension 2 over Algebraic Field<br />

User basis matrix:<br />

[ 0 1 0 -1 0.414213562<br />

[ 0 0 1 0<br />

(1.414213562373095, Vector space <strong>of</strong> degree 7 <strong>and</strong> dimension 2 over Algebraic Field<br />

User basis matrix:<br />

[ 0 1 0 -1 -2.414<br />

[ 0 0 1 0<br />

]<br />

sage: A.eigenspaces_left(format=’galois’, algebraic_multiplicity=True)<br />

207

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!