[sage-devel] Long output in example block

2016-04-12 Thread Jori Mäntysalo
Try for example ZZ.random_element? in the notebook. Reading is hard, as the output of one example is very long. Is there something to do for this? -- Jori Mäntysalo

[sage-devel] Re: spurious integral of signum; was: Integration of function and it's simplified version yields different results

2016-04-12 Thread kcrisman
> > Oh dear. abs_integrate is something I now dread to think about; it is > so > > very useful, and yet so very buggy with the Sage flags - see > > http://trac.sagemath.org/ticket/12731 :-( > > Hmm, what are the flags that cause trouble? My guess is that the > abs_integrate code was written

Re: [sage-devel] Re: how we develop sage

2016-04-12 Thread kcrisman
> >> Well, reading this thread made me think that. Because I don't see how we >> enforce all those "other pieces" working nicely together, so some would >> (perhaps quite quickly) drop by the wayside. You are right, as I >> apparently didn't make clear, that it would be even better to have p

[sage-devel] Re: how we develop sage

2016-04-12 Thread Luca De Feo
Let me share some more thoughts on the interplay between modularization and the review process. I'm afraid I'm going to be long... TL;DR: modularization is good to keep Sage going forward. Our review process discourages patchbombs, and for a reason. For one, no one wants to review patchbombs. B

[sage-devel] Re: spurious integral of signum; was: Integration of function and it's simplified version yields different results

2016-04-12 Thread Dima Pasechnik
On Tuesday, April 12, 2016 at 10:12:19 PM UTC+1, Robert Dodier wrote: > > On 2016-04-12, kcrisman > wrote: > > > Oh dear. abs_integrate is something I now dread to think about; it is > so > > very useful, and yet so very buggy with the Sage flags - see > > http://trac.sagemath.org/ticket/127

Re: [sage-devel] Docstring-wide "# optional" markup (#20427) / I am grumpy

2016-04-12 Thread Nicolas M. Thiery
On Tue, Apr 12, 2016 at 09:14:44PM +0200, Nicolas M. Thiery wrote: > On the other hand I am frustrated with the tone of sage-devel these > days. I would really appreciate if e-mails would acknowledge others > efforts; something like "thanks for the suggestion and for > investigating how to implemen

Re: [sage-devel] Docstring-wide "# optional" markup (#20427) / I am grumpy

2016-04-12 Thread Nicolas M. Thiery
On Tue, Apr 12, 2016 at 02:03:15AM -0700, mmarco wrote: >I agree with Volker here. If the problem is that writing a ># optional blah > at the end of each line that starts with >sage: > maybe limited to a certain portion of your file, that sounds like the >kind of thing

Re: [sage-devel] Re: how we develop sage

2016-04-12 Thread R. Andrew Ohana
On Tue, Apr 12, 2016 at 12:50 PM, kcrisman wrote: > It doesn't mean that the normal visible >> public API of Sage changes >> at all. Why do you think otherwise? >> > > Well, reading this thread made me think that. Because I don't see how we > enforce all those "other pieces" working nicely to

[sage-devel] Re: spurious integral of signum; was: Integration of function and it's simplified version yields different results

2016-04-12 Thread Robert Dodier
On 2016-04-12, kcrisman wrote: > Oh dear. abs_integrate is something I now dread to think about; it is so > very useful, and yet so very buggy with the Sage flags - see > http://trac.sagemath.org/ticket/12731 :-( Hmm, what are the flags that cause trouble? My guess is that the abs_integrate

Re: [sage-devel] Re: how we develop sage

2016-04-12 Thread Michael Orlitzky
On 04/12/2016 03:58 PM, William Stein wrote: > > It's all my fault originally, but I think I've learned something about > software engineering during the last few years... and I think we're > doing it wrong. > Don't be too hard on yourself. The fact that every function in Sage is documented, tes

[sage-devel] Re: how we develop sage

2016-04-12 Thread William Stein
On Tuesday, April 12, 2016, Volker Braun wrote: > On Tuesday, April 12, 2016 at 9:59:40 PM UTC+2, William wrote: >> >> We might also be able to make it available >> outside Sage, and it could suddenly be of huge value to the Python >> world. > > > In other words: If we change our mission to "the

Re: [sage-devel] Re: how we develop sage

2016-04-12 Thread Volker Braun
On Tuesday, April 12, 2016 at 9:59:40 PM UTC+2, William wrote: > > We might also be able to make it available > outside Sage, and it could suddenly be of huge value to the Python > world. In other words: If we change our mission to "the most useful collection of libraries" then we should split

Re: [sage-devel] Re: how we develop sage

2016-04-12 Thread William Stein
On Tue, Apr 12, 2016 at 12:50 PM, kcrisman wrote: >> It doesn't mean that the normal visible >> public API of Sage changes >> at all. Why do you think otherwise? > > > Well, reading this thread made me think that. Because I don't see how we > enforce all those "other pieces" working nicely tog

Re: [sage-devel] Re: how we develop sage

2016-04-12 Thread kcrisman
> > It doesn't mean that the normal visible > public API of Sage changes > at all. Why do you think otherwise? > Well, reading this thread made me think that. Because I don't see how we enforce all those "other pieces" working nicely together, so some would (perhaps quite quickly) drop by

[sage-devel] Re: spurious integral of signum; was: Integration of function and it's simplified version yields different results

2016-04-12 Thread kcrisman
On Tuesday, April 12, 2016 at 2:50:01 PM UTC-4, Robert Dodier wrote: > > On 2016-04-09, Sergey V Kozlukov > > wrote: > > > (%i1) f(r,phi) := signum(r^2 - 4); > >2 > > (%o1) f(r, phi) := signum(r - 4) > > (%i2) integrate(int

[sage-devel] Re: atan2 integration bug

2016-04-12 Thread Robert Dodier
On 2016-04-07, Dmitry Sokolov wrote: > When I run following code on cloud.sagemath.com I get two different results > for numerical and symbolic integration, I guess it is a bug. > > var('t') > f=sin(t)*atan2(2*sin(t),1-2*cos(t)) > version() > print "numeric integral: ", numerical_integral(f,0,pi

[sage-devel] spurious integral of signum; was: Integration of function and it's simplified version yields different results

2016-04-12 Thread Robert Dodier
On 2016-04-09, Sergey V Kozlukov wrote: > (%i1) f(r,phi) := signum(r^2 - 4); >2 > (%o1) f(r, phi) := signum(r - 4) > (%i2) integrate(integrate(r*f(r,phi), r, 0, 3), phi, 0, 2*%pi); > (%o2) - 9 %pi >

[sage-devel] Re: Docstring-wide "# optional" markup (#20427)

2016-04-12 Thread Julian Rüth
On Monday, April 11, 2016 at 11:43:46 PM UTC+1, Volker Braun wrote: > > IMHO thats terrible; When you copy&paste an example it should either work > or say very clear why it is optional. > I disagree. I remember that when my students saw sage documentation for the first time they did not understan

Re: [sage-devel] Re: how we develop sage

2016-04-12 Thread William Stein
On Tue, Apr 12, 2016 at 7:11 AM, kcrisman wrote: > This has been an interesting thread. In the end, I think that some (or a > lot) of Sage's attractiveness to end users goes away if it becomes a bunch > of possibly-updated packages that might or might not work with a current > version of Sage. I

Re: [sage-devel] Re: how we develop sage

2016-04-12 Thread kcrisman
This has been an interesting thread. In the end, I think that some (or a lot) of Sage's attractiveness to end users goes away if it becomes a bunch of possibly-updated packages that might or might not work with a current version of Sage. I always found the "with(plots)" syntax (or whatever it

Re: [sage-devel] Docstring-wide "# optional" markup (#20427)

2016-04-12 Thread Dima Pasechnik
On Tuesday, April 12, 2016 at 8:37:53 AM UTC+1, Jeroen Demeyer wrote: > > On 2016-04-12 00:04, Nicolas M. Thiery wrote: > > Dear Sage developers, > > > > It's quite common that optional doctests come in batch, typically when > > documenting a method that is only available when a cert

Re: [sage-devel] Re: how we develop sage

2016-04-12 Thread Pedro Cruz
(1) Sage developers could be better informed of what are they are going to affect if sage, as an "author tool", send usage statistics about each "sage-lib" related function: - Author should put sage in "send usage statistics mode" - The same author would be warned if any of those functions star

Re: [sage-devel] Re: how we develop sage

2016-04-12 Thread Erik Bray
On Tue, Apr 12, 2016 at 11:19 AM, Erik Bray wrote: > On Mon, Apr 11, 2016 at 7:36 PM, Volker Braun wrote: >> On Monday, April 11, 2016 at 3:00:12 PM UTC+2, Erik Bray wrote: >>> >>> It's no doubt very time consuming to check every merged pull request >> >> >> Thats a great idea and scales really w

Re: [sage-devel] Tests and missing colon

2016-04-12 Thread Jori Mäntysalo
On Tue, 12 Apr 2016, Thierry wrote: TESTS: sage: M = ModularForms(1, 12) i.e. missing a colon: should be TESTS::. egrep -R '^ +TESTS:$' src/sage -A 2 | egrep 'sage:' | cut -f 1 -d - | sort -u Be careful that it should be a multiline test, since the following are allow

Re: [sage-devel] Tests and missing colon

2016-04-12 Thread Thierry
Hi, On Tue, Apr 12, 2016 at 09:02:53AM +0300, Jori Mäntysalo wrote: > For example src/sage/modular/modform/ambient.py contains function > _compute_hecke_matrix_prime_power with docstring > > TESTS: > > sage: M = ModularForms(1, 12) > > i.e. missing a colon: should be TESTS::

Re: [sage-devel] Re: how we develop sage

2016-04-12 Thread Erik Bray
On Mon, Apr 11, 2016 at 8:29 PM, Nils Bruin wrote: > On Monday, April 11, 2016 at 10:46:59 AM UTC-7, Volker Braun wrote: >> >> On Monday, April 11, 2016 at 2:57:16 PM UTC+2, Erik Bray wrote: >>> >>> Sage, unfortunately, hasn't made many pacts in this regard >> >> >> Sage does have a very clear way

Re: [sage-devel] Re: how we develop sage

2016-04-12 Thread Erik Bray
On Mon, Apr 11, 2016 at 7:36 PM, Volker Braun wrote: > On Monday, April 11, 2016 at 3:00:12 PM UTC+2, Erik Bray wrote: >> >> It's no doubt very time consuming to check every merged pull request > > > Thats a great idea and scales really well when the project merges 5 branches > a day. It will also

Re: [sage-devel] Docstring-wide "# optional" markup (#20427)

2016-04-12 Thread mmarco
I agree with Volker here. If the problem is that writing a # optional blah at the end of each line that starts with sage: maybe limited to a certain portion of your file, that sounds like the kind of thing you could easily do with some simple plugin for your favourite text editor. Or

Re: [sage-devel] Tests and missing colon

2016-04-12 Thread Jeroen Demeyer
On 2016-04-12 08:02, Jori Mäntysalo wrote: Will this test be run with ./sage -t? More generally, such questions can easily be answered by the running the doctests with the --verbose option. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To u

Re: [sage-devel] Docstring-wide "# optional" markup (#20427)

2016-04-12 Thread Jeroen Demeyer
On 2016-04-12 00:04, Nicolas M. Thiery wrote: Dear Sage developers, It's quite common that optional doctests come in batch, typically when documenting a method that is only available when a certain feature or package is available. Let me add something here: often, not *every* test req

Re: [sage-devel] Docstring-wide "# optional" markup (#20427)

2016-04-12 Thread Jeroen Demeyer
On 2016-04-12 00:04, Nicolas M. Thiery wrote: Dear Sage developers, It's quite common that optional doctests come in batch, typically when documenting a method that is only available when a certain feature or package is available. Having to mark each and every test line with `# optional

Re: [sage-devel] Tests and missing colon

2016-04-12 Thread Jeroen Demeyer
On 2016-04-12 08:02, Jori Mäntysalo wrote: For example src/sage/modular/modform/ambient.py contains function _compute_hecke_matrix_prime_power with docstring TESTS: sage: M = ModularForms(1, 12) i.e. missing a colon: should be TESTS::. Will this test be run with ./sage -