#10473: Wrong docs of _lmul_ and _rmul_ in the polynomial module
--------------------------------+-------------------------------------------
Reporter: klee | Owner: AlexGhitza
Type: PLEASE CHANGE | Status: new
Priority: trivial | Milestone: sage-4.6.1
Component: basic arithmetic | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------------+-------------------------------------------
{{{
>> 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.
}}}
This is reversed. [[BR]]
r*s means that s is on the right side, hence, s._rmul_(r), while s is on
the left side in s*r, hence, s._lmul_(r).
the _rmul_ docs should be:
s._rmul_(self, left)
and say it returns left*self, where left is a rational number.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10473>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en.