luisfe
unread,Jun 27, 2012, 5:57:31 AM6/27/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sage-...@googlegroups.com
I think that the following behavior is wrong.
sage: K=QQ['t,s']
sage: L=QQ['t0,t1,s0,s1']
sage: L.inject_variables()
Defining t0, t1, s0, s1
sage: Hom(K,L)([t0+t1,s0]).register_as_coercion()
sage: L.coerce_map_from(K)
Ring morphism:
From: Multivariate Polynomial Ring in t, s over Rational Field
To: Multivariate Polynomial Ring in t0, t1, s0, s1 over Rational Field
Defn: t |--> t0 + t1
s |--> s0
sage: K.0*L(1)
t0 + t1 #GOOD
sage: L(K.0)
t0 #BAD
Even if a register a coercion between K and L, L.__call__ is making a conversion instead. Is this the expected result or is it a bug.