Re: [sage-devel] algebraic number package?

2017-05-31 Thread Dima Pasechnik
On Monday, May 29, 2017 at 12:03:59 PM UTC+1, Ralf Stephan wrote: > > Yes but if Pynac had such a type, and fast, the operations with any roots > (as parts of expressions) would be much simplified. Relying on > Python/Cython code from the C++ end is always tedious and slow. > I don't know a

Re: [sage-devel] algebraic number package?

2017-05-29 Thread Ralf Stephan
Yes but if Pynac had such a type, and fast, the operations with any roots (as parts of expressions) would be much simplified. Relying on Python/Cython code from the C++ end is always tedious and slow. On Mon, May 29, 2017, 10:12 John Cremona wrote: > > > On 29 May 2017

Re: [sage-devel] algebraic number package?

2017-05-29 Thread John Cremona
On 29 May 2017 07:59, "Ralf Stephan" wrote: The case that started me was sage: a=SR(1/2) sage: b=SR(3) sage: %timeit _=a^b The slowest run took 9.38 times longer than the fastest. This could mean that an intermediate result is being cached. 10 loops, best of 3: 2.14 µs

Re: [sage-devel] algebraic number package?

2017-05-29 Thread Ralf Stephan
The case that started me was sage: a=SR(1/2) sage: b=SR(3) sage: %timeit _=a^b The slowest run took 9.38 times longer than the fastest. This could mean that an intermediate result is being cached. 10 loops, best of 3: 2.14 µs per loop sage: %timeit _=b^a 1 loops, best of 3: 62.1 µs per

Re: [sage-devel] algebraic number package?

2017-05-29 Thread Dima Pasechnik
On Monday, May 29, 2017 at 6:09:33 AM UTC+1, Ralf Stephan wrote: > > On Sunday, May 28, 2017 at 11:40:08 PM UTC+2, Jeroen Demeyer wrote: >> >> On 2017-05-26 15:19, Ralf Stephan wrote: >> > The qqbar source does not use a lower-level library. >> >> What do you mean with this? It actually uses

Re: [sage-devel] algebraic number package?

2017-05-28 Thread Ralf Stephan
On Sunday, May 28, 2017 at 11:40:08 PM UTC+2, Jeroen Demeyer wrote: > > On 2017-05-26 15:19, Ralf Stephan wrote: > > The qqbar source does not use a lower-level library. > > What do you mean with this? It actually uses quite a large fraction of > Sage (number fields, polynomials, interval

Re: [sage-devel] algebraic number package?

2017-05-28 Thread Jeroen Demeyer
On 2017-05-26 15:19, Ralf Stephan wrote: The qqbar source does not use a lower-level library. What do you mean with this? It actually uses quite a large fraction of Sage (number fields, polynomials, interval arithmetic, ...) -- You received this message because you are subscribed to the

Re: [sage-devel] algebraic number package?

2017-05-26 Thread John Cremona
On 26 May 2017 at 14:19, Ralf Stephan wrote: > Hello, > > The qqbar source does not use a lower-level library. My question: > is there a stand-alone open-source fast version of such a package? > Reason I'm asking is linkage with Pynac. As far as I know the only other software

[sage-devel] algebraic number package?

2017-05-26 Thread Ralf Stephan
Hello, The qqbar source does not use a lower-level library. My question: is there a stand-alone open-source fast version of such a package? Reason I'm asking is linkage with Pynac. Regards, -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To