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 />

sage: K3<br />

Vector space <strong>of</strong> degree 2 <strong>and</strong> dimension 1 over Rational Field<br />

Basis matrix:<br />

[ 1 -1/2]<br />

sage: B = copy(A)<br />

sage: K3 = B.left_kernel(basis=’pivot’)<br />

sage: K3<br />

Vector space <strong>of</strong> degree 2 <strong>and</strong> dimension 1 over Rational Field<br />

User basis matrix:<br />

[-2 1]<br />

sage: K3 is K1<br />

False<br />

sage: K3 == K1<br />

True<br />

kernel_on(V, poly=None, check=True)<br />

Return the kernel <strong>of</strong> self restricted to the invariant subspace V. The result is a vector subspace <strong>of</strong> V, which<br />

is also a subspace <strong>of</strong> the ambient space.<br />

INPUT:<br />

•V - vector subspace<br />

•check - (optional) default: True; whether to check that V is invariant under the action <strong>of</strong> self.<br />

•poly - (optional) default: None; if not None, compute instead the kernel <strong>of</strong> poly(self) on V.<br />

OUTPUT:<br />

•a subspace<br />

Warning: This function does not check that V is in fact invariant under self if check is False. With<br />

check False this function is much faster.<br />

EXAMPLES:<br />

sage: t = matrix(QQ, 4, [39, -10, 0, -12, 0, 2, 0, -1, 0, 1, -2, 0, 0, 2, 0, -2]); t<br />

[ 39 -10 0 -12]<br />

[ 0 2 0 -1]<br />

[ 0 1 -2 0]<br />

[ 0 2 0 -2]<br />

sage: t.fcp()<br />

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

sage: s = (t-39)*(t^2-2)<br />

sage: V = s.kernel(); V<br />

Vector space <strong>of</strong> degree 4 <strong>and</strong> dimension 3 over Rational Field<br />

Basis matrix:<br />

[1 0 0 0]<br />

[0 1 0 0]<br />

[0 0 0 1]<br />

sage: s.restrict(V)<br />

[0 0 0]<br />

[0 0 0]<br />

[0 0 0]<br />

sage: s.kernel_on(V)<br />

Vector space <strong>of</strong> degree 4 <strong>and</strong> dimension 3 over Rational Field<br />

Basis matrix:<br />

[1 0 0 0]<br />

[0 1 0 0]<br />

[0 0 0 1]<br />

203

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

Saved successfully!

Ooh no, something went wrong!