On Wednesday, September 26, 2012 1:19:31 PM UTC-7, Greg Laun wrote:
>
> Whoops,  gmail sent the email before I was finished.  
>
>  I think a more appropriate way to do the comparison would be to check 
> if self(x) == x.  This is how contains is implemented in parent.pyx.
>

In theory this looks okay. In practice, I think there is work to be done:

    sage: m = identity_matrix(QQ, 2)
    sage: G = GL(2, QQ)
    sage: m == G(m)
    False 

Oh, maybe this is the right thing:

    sage: m == G(m).matrix()
    True

-- 
John

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.


Reply via email to