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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<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: list(a.fcp())<br />

[(x^2 - 65*x - 250, 1), (x, 3)]<br />

is_simplified()<br />

Return True if self is the result <strong>of</strong> running simplify() on a symbolic matrix. This has the semantics <strong>of</strong><br />

‘has_been_simplified’.<br />

EXAMPLES:<br />

sage: var(’x,y,z’)<br />

(x, y, z)<br />

sage: m = matrix([[z, (x+y)/(x+y)], [x^2, y^2+2]]); m<br />

[ z 1]<br />

[ x^2 y^2 + 2]<br />

sage: m.is_simplified()<br />

doctest:...: DeprecationWarning: is_simplified is deprecated<br />

See http://trac.sagemath.org/6115 for details.<br />

False<br />

sage: ms = m.simplify(); ms<br />

[ z 1]<br />

[ x^2 y^2 + 2]<br />

sage: m.is_simplified()<br />

False<br />

sage: ms.is_simplified()<br />

False<br />

number_<strong>of</strong>_arguments()<br />

Returns the number <strong>of</strong> arguments that self can take.<br />

EXAMPLES:<br />

sage: var(’a,b,c,x,y’)<br />

(a, b, c, x, y)<br />

sage: m = matrix([[a, (x+y)/(x+y)], [x^2, y^2+2]]); m<br />

[ a 1]<br />

[ x^2 y^2 + 2]<br />

sage: m.number_<strong>of</strong>_arguments()<br />

3<br />

simplify()<br />

Simplifies self.<br />

EXAMPLES:<br />

sage: var(’x,y,z’)<br />

(x, y, z)<br />

sage: m = matrix([[z, (x+y)/(x+y)], [x^2, y^2+2]]); m<br />

[ z 1]<br />

[ x^2 y^2 + 2]<br />

sage: m.simplify()<br />

[ z 1]<br />

[ x^2 y^2 + 2]<br />

simplify_rational()<br />

EXAMPLES:<br />

sage: M = matrix(SR, 3, 3, range(9)) - var(’t’)<br />

sage: (~M*M)[0,0]<br />

t*(3*(2/t + (6/t + 7)/((t - 3/t - 4)*t))*(2/t + (6/t + 5)/((t - 3/t<br />

310 Chapter 16. Symbolic matrices

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

Saved successfully!

Ooh no, something went wrong!