Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sagelib
Path: blob/master/sage/interfaces/magma_sim.py
4054 views
1
"""
2
Make MAGMA-style commands available in Sage via aliases.
3
"""
4
5
#*****************************************************************************
6
# Copyright (C) 2005 William Stein <[email protected]>
7
#
8
# Distributed under the terms of the GNU General Public License (GPL)
9
#
10
# This code is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
# General Public License for more details.
14
#
15
# The full text of the GPL is available at:
16
#
17
# http://www.gnu.org/licenses/
18
#*****************************************************************************
19
20
from sage.all import *
21
22
Factorization = factor
23
Factorisation = factor
24
CharacteristicPolynomial = charpoly
25
26
RMatrixSpace = MatrixSpace
27
def MatrixAlgebra(R, d):
28
"""
29
Return the full matrix algebra of degree d over R.
30
"""
31
return MatrixSpace(R, d)
32
33
true = True
34
false = False
35
36
37