Re: [sage-devel] To the attention of Nicolas M Thiéry (recursive-monkey-patch)

2016-10-09 Thread Nicolas Thiery
Hi Emmanuel, Just a brief answer for now: recursive_monkey_patch is about structuring the source code when you have a bunch of methods / classes that you want to monkey patch. But the monkey patching itself happens exactly as you did by hand, or as Andrew's decorator does: just assigning the

Re: [sage-devel] To the attention of Nicolas M Thiéry (recursive-monkey-patch)

2016-10-09 Thread Emmanuel Charpentier
Thanks a lot for this prompt answer. That's what I was afraid of : to add methods to sage.symbolic.expression.Expression, you jus have to patch the source and recompile. That means a turnaround time of 10-40 minutes each time. Better be sure of my syntax... -- Emmanuel Charpentier Le

[sage-devel] Re: gamma(QQbar(...))

2016-10-09 Thread Ralf Stephan
On Friday, October 7, 2016 at 1:00:08 PM UTC+2, Clemens Heuberger wrote: > > > I was surprised by the following behaviour: > > sage: gamma(QQbar(sqrt(2))) > 0.886581428719259 > sage: gamma(QQbar(sqrt(2))).parent() > Complex Field with 53 bits of precision > > (I would have preferred to have

[sage-devel] Re: a 7(!) year old (Singular) overflow issue still holds

2016-10-09 Thread Dima Pasechnik
On Sunday, October 9, 2016 at 3:35:57 PM UTC, Bill Hart wrote: > > By default, Singular uses 16 bit exponents. But it is perfectly capable of > working with exponents up to 64 bits. That will be slower of course. > > why? I presume arithmetic on 16-bit integers is not faster than on 32-bit, or

Re: [sage-devel] To the attention of Nicolas M Thiéry (recursive-monkey-patch)

2016-10-09 Thread Emmanuel Charpentier
OK. I'll try that (yet another private branch on the top of my private branch...). Since I'm going to patch symbolic expressions, do you see other candidates for "simple" (read "dumb") borrowing from Maxima ? demoivre and exponentialize are obvious candidates, as well as changevar (at least

[sage-devel] Re: a 7(!) year old (Singular) overflow issue still holds

2016-10-09 Thread 'Bill Hart' via sage-devel
By default, Singular uses 16 bit exponents. But it is perfectly capable of working with exponents up to 64 bits. That will be slower of course. I guess it isn't easy for Sage to change the relevant ring upon overflow to one using 64 bit exponents. I can't say whether it would be easy or hard

[sage-devel] Re: a 7(!) year old (Singular) overflow issue still holds

2016-10-09 Thread 'Bill Hart' via sage-devel
Note that Hans has fixed the fact that Singular wasn't reporting this as an overflow. On Sunday, 9 October 2016 17:35:57 UTC+2, Bill Hart wrote: > > By default, Singular uses 16 bit exponents. But it is perfectly capable of > working with exponents up to 64 bits. That will be slower of course.

[sage-devel] Re: a 7(!) year old (Singular) overflow issue still holds

2016-10-09 Thread 'Bill Hart' via sage-devel
On Sunday, 9 October 2016 18:08:29 UTC+2, Dima Pasechnik wrote: > > > > On Sunday, October 9, 2016 at 3:35:57 PM UTC, Bill Hart wrote: >> >> By default, Singular uses 16 bit exponents. But it is perfectly capable >> of working with exponents up to 64 bits. That will be slower of course. >> >>

Re: [sage-devel] To the attention of Nicolas M Thiéry (recursive-monkey-patch)

2016-10-09 Thread Volker Braun
"sage -b" will rebuild any sage cython modules that were changed, so for your application its probably enough. It does not rebuild third-party packages or documentation. On Sunday, October 9, 2016 at 12:06:25 PM UTC+2, Emmanuel Charpentier wrote: > > Le 9 oct. 2016 12:01, "Jori Mäntysalo"

Re: [sage-devel] Giving Sage AI-based step-by-step equation solving abilities

2016-10-09 Thread David Joyner
On Sun, Oct 9, 2016 at 2:07 PM, Ted Kosan wrote: > For the past few years I have been working on an artificial intelligence > step-by-step equation solver for elementary algebra equations that solves > these equations using steps that a human would typically use. Here is an >

Re: [sage-devel] Giving Sage AI-based step-by-step equation solving abilities

2016-10-09 Thread Ted Kosan
David wrote: > I think a graphical version of this would be useful as a sage-based > online high school math tutorial program, such as the khan academy > algebra modules. Are either of the following examples close to what you have in mind?: http://data.ssucet.org/temp/solve_steps_example.png

[sage-devel] Giving Sage AI-based step-by-step equation solving abilities

2016-10-09 Thread Ted Kosan
For the past few years I have been working on an artificial intelligence step-by-step equation solver for elementary algebra equations that solves these equations using steps that a human would typically use. Here is an example of what I have working so far: In>

[sage-devel] Is Brown's construction available in the graph component of sagemath?

2016-10-09 Thread ni732h . sphl
Brown's construction is the function which takes a finite field to a graph with diameter 2. http://www.emis.ams.org/journals/EJC/Surveys/ds14.pdf Is it available in the graph component of sagemath? If not, I plan to implement it for sagemath. yawara -- You received this message because you

Re: [sage-cell] Re: [sage-devel] Sage cells in interact wiki

2016-10-09 Thread Andrey Novoseltsev
On Monday, 19 September 2016 18:59:09 UTC-6, Jason Grout wrote: > > Some ideas: > > Is the MoinMoin sage cell extension enabled? > https://github.com/sagemath/sagecell/blob/master/contrib/moinmoin/sagecell.py. > If > it is enabled, was MoinMoin updated and the extension no longer works? > >

Re: [sage-devel] Giving Sage AI-based step-by-step equation solving abilities

2016-10-09 Thread David Joyner
On Sun, Oct 9, 2016 at 2:20 PM, Ted Kosan wrote: > David wrote: > >> I think a graphical version of this would be useful as a sage-based >> online high school math tutorial program, such as the khan academy >> algebra modules. > > Are either of the following examples close to

Re: [sage-devel] To the attention of Nicolas M Thiéry (recursive-monkey-patch)

2016-10-09 Thread Jori Mäntysalo
On Sun, 9 Oct 2016, Emmanuel Charpentier wrote: sage.symbolic.expression.Expression, you jus have to patch the source and recompile. That means a turnaround time of 10-40 minutes each time. How? ./sabe -b takes less than a minute even on quite old machine. -- Jori Mäntysalo

Re: [sage-devel] To the attention of Nicolas M Thiéry (recursive-monkey-patch)

2016-10-09 Thread Emmanuel Charpentier
Le 9 oct. 2016 12:01, "Jori Mäntysalo" a écrit : > > On Sun, 9 Oct 2016, Emmanuel Charpentier wrote: > >> sage.symbolic.expression.Expression, you jus have to patch the source and >> recompile. That means a turnaround time of 10-40 minutes each time. > > > How? ./sabe -b