Hi,

On Wed, Feb 04, 2015 at 11:57:48AM +0100, Jeroen Demeyer wrote:
> Is it possible in Sage to have a Parent which has different Element
> classes? I.e. two Elements A and B such that
> 
> parent(A) is parent(B)
> but
> type(A) is not type(B)
> 

Here is an example:

sage: A = cos(x)
sage: B = units.charge.coulomb
sage: parent(A) is parent(B)
True
sage: type(A) is not type(B)
True

(though UnitExpression inherits from Expression)

Ciao,
Thierry




> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to