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. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org