On 07/29/2010 05:14 PM, Mitesh Patel wrote:
> On 07/29/2010 11:10 AM, Simon King wrote:
>> On Jul 29, 3:45 pm, eggartmumie <eggartmu...@googlemail.com> wrote:
>>>>  sage: p>>1
>>>>  -x + 4/9
>>>
>>> sorry, in reading reference.pdf I never came across this operation,
>>
>> Sorry, I don't know if the shift operator for polynomials is explained
>> somewhere.
>>
>>> I just did not know that You can shift a polynomial!
>>
>> And this can certainly not be detected by tab completion. Sorry again.
> 
> It definitely wasn't obvious to me, but
> 
> sage: R.<x> = ZZ['t'][]
> sage: p = R.random_element(6)
> sage: p.shift?
> 
> seems to help.

Actually, the docstring for

sage.rings.polynomial.polynomial_element.Polynomial_generic_dense.shift

does not mention the infix operators '>>' and '<<', but that for

sage.rings.polynomial.polynomial_element_generic.Polynomial_rational_dense.shift

does:

sage: R.<x> = QQ[]
sage: p = R.random_element()
sage: p.shift?

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to