Re: [sage-devel] Sage code for educational purposes only?

2015-02-26 Thread Niles Johnson
I'm in favor of moving such toys to an educational-library. -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this

[sage-devel] Re: Sage code for educational purposes only?

2015-02-26 Thread kcrisman
In general, I think it is FAR more useful to spend our time on making the documentation for any educational/toy functions very clear than to creating some huge change of a new directory that no one will know about, deprecation, broken links, ... Unless people feel that Sage is *only* a

Re: [sage-devel] sqrt(n) conversion/comparison

2015-02-26 Thread Ralf Stephan
Assuming fp values cannot be equal, would it make more sense to test elementship in CC by implementing ComplexField.__contains__() instead of trusting Python or Maxima == ? -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this

[sage-devel] Re: Sage code for educational purposes only?

2015-02-26 Thread mmarco
I don't like the educational name, since it can be misleading. Some could think that they are functions that are useful for teaching (in this case, for teaching basic concepts about prime numbers), whereas what we would be meaning is that its educational value would be in looking at the code

Re: [sage-devel] Sage code for educational purposes only?

2015-02-26 Thread Vincent Delecroix
I really do not see the point of an educational-library if the code will not appear in the documentation. It is precisely the code which is interesting! Vincent -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and

Re: [sage-devel] Re: should bool(x 0) be False or an exception?

2015-02-26 Thread Jakob Kroeker
I changed the code to return an exception if the truth value is unknown and ran `sage -testall`. Did you upload the patch to somewhere? Where this change has to be made? I might be willing to fix these tests when I have time. It seems that nothing happens for more than a year, so maybe

[sage-devel] Re: Sage code for educational purposes only?

2015-02-26 Thread Travis Scrimshaw
Should there be code in Sage which is extremely slow and for educational purposes only? I believe such code is valuable. I believe so as well. As Michael said, at the very least it's useful as a testing tool. (Also we have done something similar by having an algorithm keyword for

Re: [sage-devel] Re: Trac * hangs

2015-02-26 Thread Vincent Delecroix
All right: trac is globally incredibly slow... there is definitely something wrong... Vincent -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [sage-devel] Re: Sage code for educational purposes only?

2015-02-26 Thread Robert Bradshaw
I would say such a function belongs in the documentation only, and we should have an easy way of testing (and perhaps importing) code defined there. On Thu, Feb 26, 2015 at 12:19 PM, Travis Scrimshaw tsc...@ucdavis.edu wrote: Should there be code in Sage which is extremely slow and for

Re: [sage-devel] [Debian] Strange crash in ECL

2015-02-26 Thread Francois Bissey
On 26/02/2015, at 20:57, Julien Puydt julien.pu...@laposte.net wrote: Le 26/02/2015 08:20, Francois Bissey a écrit : On 26/02/2015, at 20:12, Julien Puydt julien.pu...@laposte.net wrote: Le 25/02/2015 22:43, François Bissey a écrit : That's fun, on Gentoo my ecl from the system just

Re: [sage-devel] sqrt(n) conversion/comparison

2015-02-26 Thread Vincent Delecroix
Hello, There is something wrong sage: bool(RR(pi) == pi) True sage: bool(RR(golden_ratio) == golden_ratio) True which is fine to me. You coerce to the field with less precision. But sage: bool(RR(sqrt(2)) == sqrt(2)) False sage: sqrt(2).n() == RR(sqrt(2)) True sage: RR(sqrt(2)) == CC(sqrt(2))

Re: [sage-devel] [Debian] Strange crash in ECL

2015-02-26 Thread Francois Bissey
On 26/02/2015, at 21:47, Julien Puydt julien.pu...@laposte.net wrote: Le 26/02/2015 09:05, Francois Bissey a écrit : Ok what version of gmp? 5.1.3 here. I have 6.0.0. OK upgraded to 6.0.0a (the one I have available in the tree): (setq b (expt a 600)) Condition of type:

Re: [sage-devel] Sage code for educational purposes only?

2015-02-26 Thread Jori Mantysalo
On Thu, 26 Feb 2015, Pedro Cruz wrote: +1 for the  package educational-algorithms but called educational-packages or educational-library. Yes, '-packages' or '-library' is better name. Hmmm... actually there could be, in principle, three kind of algorithms: 1) Fast ones, that we normally

Re: [sage-devel] sqrt(n) conversion/comparison

2015-02-26 Thread Vincent Delecroix
We also have sage: RR(tan(pi/20)) == CC(tan(pi/20)) False But it seems right for cos, sin, exp, atan, cosh, sinh. Is there a way to test all symbolic functions? 2015-02-26 10:02 UTC+01:00, Ralf Stephan gtrw...@gmail.com: On Thursday, February 26, 2015 at 9:50:40 AM UTC+1, vdelecroix wrote:

Re: [sage-devel] [Debian] Strange crash in ECL

2015-02-26 Thread Julien Puydt
Le 26/02/2015 10:08, Francois Bissey a écrit : So I think we can say there is something going with gmp 6.0.0. I think that should narrow things down considerably. I'll report our findings to upstream -- that should definitely interest them, and help pinpoint the issue. Thanks! Snark on

[sage-devel] Re: [Debian] Strange crash in ECL

2015-02-26 Thread Dima Pasechnik
On 2015-02-25, Jean-Pierre Flori jpfl...@gmail.com wrote: Not really related but it seems ECL saw an update! they've just restarting - someone finally volunteered to become the maintainer of ECL... Hopefully it will presist, and we will see a new version soon. -- You received this message

Re: [sage-devel] [Debian] Strange crash in ECL

2015-02-26 Thread Julien Puydt
Le 26/02/2015 10:15, Julien Puydt a écrit : Le 26/02/2015 10:08, Francois Bissey a écrit : So I think we can say there is something going with gmp 6.0.0. I think that should narrow things down considerably. I'll report our findings to upstream -- that should definitely interest them, and help

Re: [sage-devel] Re: Trac #17852 hangs

2015-02-26 Thread Vincent Delecroix
Still have some trouble with #17852. As soon as the Submit changes is more than just switching the ticket status. It hangs a lot! 2015-02-25 19:31 UTC+01:00, Vincent Delecroix 20100.delecr...@gmail.com: 2015-02-25 19:24 UTC+01:00, Volker Braun vbraun.n...@gmail.com: Is the number correct? It

Re: [sage-devel] [Debian] Strange crash in ECL

2015-02-26 Thread Julien Puydt
Le 26/02/2015 09:05, Francois Bissey a écrit : Ok what version of gmp? 5.1.3 here. I have 6.0.0. Snark -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to

[sage-devel] sqrt(n) conversion/comparison

2015-02-26 Thread Ralf Stephan
Hi, with current Sage, sage: bool(sqrt(2)==CC(sqrt(2))) False You would expect that this leads to sage: sqrt(2) in CC False but due to a bug I'm fixing atm in #12967 this returns True. However, now that it's fixed I'm faced with the question if answer to both really should be False. If one

Re: [sage-devel] sqrt(n) conversion/comparison

2015-02-26 Thread Ralf Stephan
On Thursday, February 26, 2015 at 9:50:40 AM UTC+1, vdelecroix wrote: sage: bool(RR(sqrt(2)) == sqrt(2)) False sage: sqrt(2).n() == RR(sqrt(2)) True These two come from bool(sqrt(2)==sqrt(2).n()) being False I think (because Maxima is involved here) but this is different than sage:

Re: [sage-devel] Sage code for educational purposes only?

2015-02-26 Thread Pedro Cruz
+1 for the package educational-algorithms but called educational-packages or educational-library. MathSciNet catalog has the category Mathematics education http://www.ams.org/mathscinet/msc/msc2010.html?t=97-XX being the last topic after all the mathematical edge cutting works. This

Re: [sage-devel] Sage code for educational purposes only?

2015-02-26 Thread parisse
Le mercredi 25 février 2015 20:56:06 UTC+1, kcrisman a écrit : Who on earth thinks that the Sieve of Eratosthenes is designed for modern production work??? Me. I´m using it for the ithprime function in Giac. ithprime(70) returns 10570841 in 0.07 second while in sage