---------- Forwarded message ----------
From: John H Palmieri <[email protected]>
Date: Wed, May 12, 2010 at 8:05 AM
Subject: [sage-support] linear transformations between vector spaces
with named bases?
To: sage-support <[email protected]>


I have some (hashable) Sage objects, elements of a particular algebra,
and I want to view them as the basis of a vector space.  Call the
objects a, b, c.  I think the way to do this in Sage is

 sage: V = CombinatorialFreeModule(QQ, [a,b,c])

Suppose I have another such vector space:

 sage: W = CombinatorialFreeModule(QQ, [e,f])

and I define a map between them:

 sage: B = W.basis()
 sage: g = V.hom([2*B[e]-B[f], B[e]+B[f], 0], QQ)

How do I compute the kernel of this map, or the matrix associated to
it (with respect to the chosen bases), or evaluate it on elements of
V?  For example:

 sage: BB = V.basis()
 sage: g(BB[a])

produces an error.  So how should I be performing these kinds of
calculations?

--
John

--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.

Reply via email to