Re: [sage-devel] Re: Piecewise affine functions

2018-10-26 Thread Matthias Koeppe
Though it sounds like you only need piecewise functions of a single real variable, I would suggest to make the ticket for piecewise linear (or polynomial) functions of several variables. The current implementation of piecewise in Sage is tied to the general symbolics in the symbolic ring.

Re: [sage-devel] Report for critical bug on CoCalc

2018-10-26 Thread William Stein
On Fri, Oct 26, 2018 at 11:58 AM Maestro CaID wrote: > > Please i want to report a critical bug, Because it's dangereuse if public see > it, That's why i'm looking for an email to send the details of this bug to > the support team privately. h...@sagemath.com >Thanks, > > -- > You received

[sage-devel] Report for critical bug on CoCalc

2018-10-26 Thread Maestro CaID
Please i want to report a critical bug, Because it's dangereuse if public see it, That's why i'm looking for an email to send the details of this bug to the support team privately. Thanks, -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To

Re: [sage-devel] Re: number field: exactness of result of abs

2018-10-26 Thread Nils Bruin
On Friday, October 26, 2018 at 9:07:58 AM UTC-7, Daniel Krenn wrote: > > What my troubles are, is that by using abs my computation gets inexact, > which I want to avoid at all cost. > (So I think I just have to treat CyclotomicFields etc. special) > > Yes, that indicates you are probably more

Re: [sage-devel] Bug with NumberField

2018-10-26 Thread Vincent Delecroix
Le 26/10/2018 à 16:04, John Cremona a écrit : On Fri, 26 Oct 2018 at 13:07, 'Paul Mercat' via sage-devel < sage-devel@googlegroups.com> wrote: Hi ! I have a strange bug with NumberField: when I do sage: pi = x^7 - 2*x^6 + x^3 - 2*x^2 + 2*x - 1 sage: b = pi.roots(ring=QQbar)[3][0] sage: pi =

Re: [sage-devel] Re: number field: exactness of result of abs

2018-10-26 Thread Daniel Krenn
Thank you for your detailed explaination. On 2018-10-25 11:09, John Cremona wrote: > Personally I cannot think of a reason why one would want this abs() to > be returned as an algebraic number, since the whole point of absolute > values in algebraic number theory is that they like in some

Re: [sage-devel] Bug with NumberField

2018-10-26 Thread 'Paul Mercat' via sage-devel
Thank you. So the bug is with the test of equality in QQbar, not with NumberField. Do you know how to solve this problem with QQbar ? I tried to look at where is the error, and it looks like there is an infinite loop:

Re: [sage-devel] Bug with NumberField

2018-10-26 Thread John Cremona
On Fri, 26 Oct 2018 at 13:07, 'Paul Mercat' via sage-devel < sage-devel@googlegroups.com> wrote: > Hi ! > > I have a strange bug with NumberField: when I do > > sage: pi = x^7 - 2*x^6 + x^3 - 2*x^2 + 2*x - 1 > sage: b = pi.roots(ring=QQbar)[3][0] > sage: pi = b.minpoly() > sage: K =

[sage-devel] Bug with NumberField

2018-10-26 Thread 'Paul Mercat' via sage-devel
Hi ! I have a strange bug with NumberField: when I do sage: pi = x^7 - 2*x^6 + x^3 - 2*x^2 + 2*x - 1 sage: b = pi.roots(ring=QQbar)[3][0] sage: pi = b.minpoly() sage: K = NumberField(pi, 'b', embedding=b) it works well. But if I execute it a second time, then it never terminates! Do you have a