Re: [sage-devel] Suggestion to speed up nauty_geng()?

2019-03-20 Thread TAU
On Thu, 21 Mar 2019, Ai Bo wrote: > Is there a way to "random access"? For example, access the nth element > in the "generator", instead of one by one? Kind of. As a most time is propably spent by creating Python data structures for SageMath, you can use nautygen directly to generate huge numb

[sage-devel] Suggestion to speed up nauty_geng()?

2019-03-20 Thread Ai Bo
I am running a program with these lines: i =12 for G in graphs.nauty_geng(str(i) + " -C"): It is very slow. I know the returned generator is very large. Is there a way to speed this up? Is there a way to "random access"? For example, access the nth element in the "generator", instead of one b

Re: [sage-devel] The future of the Mac Application on Mojave

2019-03-20 Thread Ivan Andrus
On Mar 19, 2019, at 4:01 AM, dimp...@gmail.com wrote: Hi Ivan, thanks for looking into this. On Mon, Mar 18, 2019 at 06:25:53PM -0700, Ivan Andrus wrote: I haven't worked on Sage for quite a while, but it was brought to my attention (thanks Karl-Dieter), that the Mac application no longer works

Re: [sage-devel] Integrals don't coincide with the ones directly done by maxima

2019-03-20 Thread Dima Pasechnik
On Wed, Mar 20, 2019 at 1:27 PM mmarco wrote: > > So the bug is really in the abs_integrate package for maxima? In that case: > is it really worth it to import it by default? removing it makes 7 tests fail in src/sage/interfaces/maxima_lib.py perhaps it should be applied more intelligently, but

Re: [sage-devel] Integrals don't coincide with the ones directly done by maxima

2019-03-20 Thread mmarco
So the bug is really in the abs_integrate package for maxima? In that case: is it really worth it to import it by default? El miércoles, 20 de marzo de 2019, 13:58:46 (UTC+1), Dima Pasechnik escribió: > > On Wed, Mar 20, 2019 at 05:36:59AM -0700, mmarco wrote: > > I am trying to pinpoint the f

Re: [sage-devel] Integrals don't coincide with the ones directly done by maxima

2019-03-20 Thread Dima Pasechnik
This looks similar to an open https://sourceforge.net/p/maxima/bugs/3528/ where abs_integrate breaks integrate(sqrt(1+2*sin(x)^2), x); On Wed, Mar 20, 2019 at 12:58 PM wrote: > > On Wed, Mar 20, 2019 at 05:36:59AM -0700, mmarco wrote: > > I am trying to pinpoint the following bug: > > > > sage:

Re: [sage-devel] Integrals don't coincide with the ones directly done by maxima

2019-03-20 Thread dimpase
On Wed, Mar 20, 2019 at 05:36:59AM -0700, mmarco wrote: > I am trying to pinpoint the following bug: > > sage: integral(sqrt(1+cos(x)^2),x) > -1/24*sin(3*x) + 1/8*sin(x) > > > which is incorrect. One would think that maxima is returning a wrong > answer, but if we ask directly to maxima, it le

[sage-devel] Integrals don't coincide with the ones directly done by maxima

2019-03-20 Thread mmarco
I am trying to pinpoint the following bug: sage: integral(sqrt(1+cos(x)^2),x) -1/24*sin(3*x) + 1/8*sin(x) which is incorrect. One would think that maxima is returning a wrong answer, but if we ask directly to maxima, it leaves the integral as it is: sage: f = sqrt(1+cos(x)^2) sage: maxima.int