Fair enough, but as a mathematician, I expect / to mean division, not 
integer division, and integers to be integers.... Thanks for the tip about 
srange, which I did not know about.

-Jeremy

On Monday, February 15, 2016 at 9:08:07 AM UTC-6, Jeroen Demeyer wrote:
>
> On 2016-02-15 15:49, Jeremy Martin wrote: 
> > What is going on here?  Those -1's are just incorrect. 
> They are because you are dividing ordinary Python ints instead of Sage 
> integers. Solution: ZZ(q)/ZZ(p) instead of q/p. 
>
> > But shouldn't these two pieces of code 
> > produce the same output? 
> Yes, they should. Both should suffer from the same problem. I don't know 
> why there is a difference. 
>
> Jeroen. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to