Re: [sage-support] Re: .format of RR-element

2017-04-29 Thread Dima Pasechnik
Please do post this in a new thread, not as a followup to messages on a different topic. -- 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 sage-support+unsubscr..

Re: [sage-support] Re: .format of RR-element

2017-04-29 Thread Gekonga Wanchoke CHACHA
Dear all I am getting trouble on how i can find order of an element in a quotient polynomial ring USING SAGE: 1.Example, I have this code in sage I want to find the order of polynomial h(x) in Quotient ring $\mathbb{F}_{2}[x]/$. F.=GF(2)[] Q.=F.quotient(x^3+1) h=Q.f=x+1 2. Does it need to x^3+1 t

[sage-support] Re: .format of RR-element

2017-04-28 Thread Nils Bruin
Yes, clearly our reals should have __format__ support. In fact, this could work a lot better than the "%" formatting support we have now, which I think is provided by the "__float__" method. It has issues: sage: '%.60f'%(pi.n(300),) '3.141592653589793115997963468544185161590576171875000