"""1Make MAGMA-style commands available in Sage via aliases.2"""34#*****************************************************************************5# Copyright (C) 2005 William Stein <[email protected]>6#7# Distributed under the terms of the GNU General Public License (GPL)8#9# This code is distributed in the hope that it will be useful,10# but WITHOUT ANY WARRANTY; without even the implied warranty of11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU12# General Public License for more details.13#14# The full text of the GPL is available at:15#16# http://www.gnu.org/licenses/17#*****************************************************************************1819from sage.all import *2021Factorization = factor22Factorisation = factor23CharacteristicPolynomial = charpoly2425RMatrixSpace = MatrixSpace26def MatrixAlgebra(R, d):27"""28Return the full matrix algebra of degree d over R.29"""30return MatrixSpace(R, d)3132true = True33false = False34353637