On 12/11/10 11:27 AM, Niles wrote:


On Dec 10, 10:36 pm, Kwankyu<[email protected]>  wrote:
Hi,

Below is a passage in the Reference manual on the coercion model:

... r * s gets
handled as s._rmul_(r)

sage: s=1/2*x;parent(s)
sage: s._rmul_?
...
Definition:     s._rmul_(self, right)
Docstring:
     File: sage/rings/polynomial/polynomial_rational_flint.pyx
(starting at
     line 933)

        Returns self * right, where right is a rational number.

I agree -- one of these two is reversed.


I think it may have just been a copy-paste error from the lmul function. It sounds like the _rmul_ docs should be:

s._rmul_(self, left)

and say it returns left*self, where left is a rational number.


Thanks,

Jason

--
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

Reply via email to