Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use the block_matrix command instead of the matrix command:

var('x,y')
A=matrix([[x,y],[x^2,y^2]])
B=matrix([[2*x,3*y],[4*x,5*y]])
C=block_matrix(SR,[[A,B],[B,A]])
C

http://aleph.sagemath.org/?q=789a5a21-2cad-487d-a04b-1c01e53ba214

Use the block_matrix command instead of the matrix command:

var('x,y')
A=matrix([[x,y],[x^2,y^2]])
B=matrix([[2*x,3*y],[4*x,5*y]])
C=block_matrix(SR,[[A,B],[B,A]])
C

http://aleph.sagemath.org/?q=789a5a21-2cad-487d-a04b-1c01e53ba214