# Revision history [back]

1) You can easily write matrix "multilined". By default Python joins lines if the first one contains an opening bracket/parenthesis. Hence you can easily write:

ma = matrix([
[25, 5, 1],
[49, 7, 1],
[81, 9, 1]])
mb = matrix([
[1121],
[626],
[967]])


2) In order to display matrix entries as decimals you may convert a matrix base field to RDF like this:

ms = ma^-1 * mb
show(matrix(RDF, ms))


or alternatively:

show(ms.change_ring(RDF))