| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
structure.sage_object.SageObject --+
|
structure.parent.Parent --+
|
structure.parent_base.ParentWithBase --+
|
structure.parent_gens.ParentWithGens --+
|
rings.ring.Ring --+
|
rings.ring.Algebra --+
|
FreeAlgebra_generic
The free algebra on $n$ generators over a base ring.
EXAMPLES:
sage: F.<x,y,z> = FreeAlgebra(QQ, 3); F
Free Algebra on 3 generators (x, y, z) over Rational Field
sage: mul(F.gens())
x*y*z
sage: mul([ F.gen(i%3) for i in range(12) ])
x*y*z*x*y*z*x*y*z*x*y*z
sage: mul([ F.gen(i%3) for i in range(12) ]) + mul([ F.gen(i%2) for i in range(12) ])
x*y*x*y*x*y*x*y*x*y*x*y + x*y*z*x*y*z*x*y*z*x*y*z
sage: (2 + x*z + x^2)^2 + (x - y)^2
4 + 5*x^2 - x*y + 4*x*z - y*x + y^2 + x^4 + x^3*z + x*z*x^2 + x*z*x*z
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
INPUT:
R -- ring
n -- an integer
names -- generator names
|
Return True if this Free Algebra is a field, which is only if the base ring is a field and there are no generators EXAMPLES: sage: A=FreeAlgebra(QQ,0,'') sage: A.is_field() True sage: A=FreeAlgebra(QQ,1,'x') sage: A.is_field() False
|
Return True if this free algebra is commutative.
EXAMPLES:
sage: R.<x> = FreeAlgebra(QQ,1)
sage: R.is_commutative()
True
sage: R.<x,y> = FreeAlgebra(QQ,2)
sage: R.is_commutative()
False
|
Two free algebras are considered the same if they have the
same base ring, number of generators and variable names.
EXAMPLES:
sage: F = FreeAlgebra(QQ,3,'x')
sage: F == FreeAlgebra(QQ,3,'x')
True
sage: F is FreeAlgebra(QQ,3,'x')
True
sage: F == FreeAlgebra(ZZ,3,'x')
False
sage: F == FreeAlgebra(QQ,4,'x')
False
sage: F == FreeAlgebra(QQ,3,'y')
False
|
Text representation of this free algebra.
EXAMPLES:
sage: F = FreeAlgebra(QQ,3,'x')
sage: print F
Free Algebra on 3 generators (x0, x1, x2) over Rational Field
sage: F.rename('QQ<<x0,x1,x2>>')
sage: print F
QQ<<x0,x1,x2>>
|
Coerce x into self.
EXAMPLES:
sage: R.<x,y> = FreeAlgebra(QQ,2)
sage: R(3)
3
|
Canonical coercion of x into self.
Here's what canonically coerces to self:
* this free algebra
* the underlying monoid
* anything that coerces to the base ring of this free algebra
* any free algebra whose base ring coerces to the base ring of this free algebra
EXAMPLES:
sage: F.<x,y,z> = FreeAlgebra(GF(7),3); F
Free Algebra on 3 generators (x, y, z) over Finite Field of size 7
Elements of the free algebra canonically coerce in.
sage: F._coerce_(x*y)
x*y
Elements of the integers coerce in, since there is a coerce map from ZZ to GF(7).
sage: F._coerce_(1)
1
There is no coerce map from QQ to GF(7).
sage: F._coerce_(2/3)
Traceback (most recent call last):
...
TypeError: no canonical coercion of element into self
Elements of the base ring coerce in.
sage: F._coerce_(GF(7)(5))
5
Elements of the correspondining moind (of monomials) coerce in:
sage: M = F.monoid(); m = M.0*M.1^2; m
x*y^2
sage: F._coerce_(m)
x*y^2
The free algebra over ZZ on x,y,z coerces in, since ZZ coerces
to GF(7):
sage: G = FreeAlgebra(ZZ,3,'x,y,z')
sage: F._coerce_(G.0^3 * G.1)
x^3*y
However, GF(7) doesn't coerce to ZZ, so the free algebra over
GF(7) doesn't coerce to the one over ZZ:
sage: G._coerce_(x^3*y)
Traceback (most recent call last):
...
TypeError: no natural map between bases of free algebras
|
File: sage/structure/parent.pyx (starting at line 133)
|
The i-th generator of the algebra.
EXAMPLES:
sage: F = FreeAlgebra(ZZ,3,'x,y,z')
sage: F.gen(0)
x
|
Returns a quotient algebra defined via the action of a free algebra A on a (finitely generated) free module. The input for the quotient algebra is a list of monomials (in the underlying monoid for A) which form a free basis for the module of A, and a list of matrices, which give the action of the free generators of A on this monomial basis. |
Returns a quotient algebra defined via the action of a free algebra A on a (finitely generated) free module. The input for the quotient algebra is a list of monomials (in the underlying monoid for A) which form a free basis for the module of A, and a list of matrices, which give the action of the free generators of A on this monomial basis. |
The number of generators of the algebra.
EXAMPLES:
sage: F = FreeAlgebra(ZZ,3,'x,y,z')
sage: F.ngens()
3
|
The free monoid of generators of the algebra.
EXAMPLES:
sage: F = FreeAlgebra(ZZ,3,'x,y,z')
sage: F.monoid()
Free monoid on 3 generators (x, y, z)
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Thu Jul 17 04:23:29 2008 | http://epydoc.sourceforge.net |