Re: [sage-devel] remove misc/darcs.py in Sage 5.0?

2010-06-17 Thread Minh Nguyen
On Thu, Jun 17, 2010 at 7:03 PM, William Stein wrote: > Yes, remove it. This is now ticket #9257: http://trac.sagemath.org/sage_trac/ticket/9257 -- Regards Minh Van Nguyen -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to

[sage-devel] Re: factorial() and gamma()

2010-06-17 Thread rjf
The distinction that may be worth making is that there are (at least) two notions of factorial. One that is subject to symbolic simplification and one that is a numerical subroutine. There may be yet more. The simplification version allows for factorial(n+1)/factorial(n) ---> n+1 and does not r

[sage-devel] Mathbuntu

2010-06-17 Thread Rob Beezer
Apologies for spamming multiple Sage groups, but I thought folks would like to hear about his: http://mathbuntu.org Basically a script for (K)Ubuntu that automates pulling down and installing a variety of math software (Sage, Geogebra, Maxima, R, Octave) and about ten free university-level ma

[sage-devel] Re: How I solved the crossing ladders puzzle with Sage (as well as Octave, Maxima, Particle Swarms, etc)

2010-06-17 Thread Minh Nguyen
Hi Thanassis, On Thu, Jun 17, 2010 at 11:16 PM, Thanassis Tsiodras wrote: > A casual report on how I used SAGE and various other > programs/technologies over the years to solve the famous "crossing > ladders" puzzle. > You may find it interesting... > > http://users.softlab.ece.ntua.gr/~ttsiod/la

[sage-devel] Trying to build a SageServer for my calculus class: A SageServer Vbox appliance?

2010-06-17 Thread Bruce Cohen
It's summertime, and I thought I would have time to build a Sage server for my 65 (or so) calculus students. I have a Ubuntu box running 10.04 and using dynamic dns, I should be able to be able to point my students to the site. Using virtual box, I assume not much damage can be done to the host m

Re: [sage-devel] Re: Try not to cripple performance for everyone

2010-06-17 Thread Dr. David Kirkby
On 06/17/10 11:34 PM, MartinX wrote: On Jun 13, 2:25 pm, "Dr. David Kirkby" wrote: 1) Make is unset on all platforms. Would it not be wiser to find out where problems exist, and do things like this for only one platform, or one distribution? I have tried a parallel build of Atlas without su

[sage-devel] Re: Try not to cripple performance for everyone

2010-06-17 Thread MartinX
On Jun 13, 2:25 pm, "Dr. David Kirkby" wrote: > > 1) Make is unset on all platforms. Would it not be wiser to find out where > problems exist, and do things like this for only one platform, or one > distribution? > I have tried a parallel build of Atlas without success (using GCC4.2.2). But the

Re: [sage-devel] Re: factorial() and gamma()

2010-06-17 Thread Florent Hivert
Hi there, > > In Sage, the behavior of sqrt(2) versus sqrt(4) is considered very > > reasonable > > to most users.  And it does exactly what you claim is "rather bad form". > > > > sage: sqrt(2) > > sqrt(2) > > sage: sqrt(4) > > 2 > > sage: type(sqrt(2)) > > > > sage: type(sqrt(4)) > > >

[sage-devel] Re: factorial() and gamma()

2010-06-17 Thread Nils Bruin
On Jun 17, 12:51 pm, William Stein wrote: > In Sage, the behavior of sqrt(2) versus sqrt(4) is considered very reasonable > to most users.  And it does exactly what you claim is "rather bad form". > > sage: sqrt(2) > sqrt(2) > sage: sqrt(4) > 2 > sage: type(sqrt(2)) > > sage: type(sqrt(4)) > Th

[sage-devel] WorldMap graph

2010-06-17 Thread Robert Miller
Why is it that we have the World graph hard-coded? Wouldn't it be better to get an up-to-date world graph? (There are 100 more countries on the CIA factbook---referred to in the docstring---than there are in the returned graph). What about including instructions in the docstring, or even code, to

[sage-devel] Re: Unreasonable docfails in symbolic/random_tests.py

2010-06-17 Thread Volker Braun
Unsurprisingly, setting the random seed makes the random_expr() always return the same value: sage: set_random_seed(0xdeadbeef) sage: random_expr(5) tanh(-pi^real_part(v1)*sin(log(pi)*imag_part(v1))) sage: set_random_seed(0xdeadbeef) sage: random_expr(5) tanh(-pi^real_part(v1)*sin(log(pi)*imag_par

[sage-devel] Unreasonable docfails in symbolic/random_tests.py

2010-06-17 Thread Andrey Novoseltsev
Hello everybody, A while ago I noticed that my *new independent module* on toric varieties causes an error in a really obscure long output for one of the tests in symbolic/random_tests.py. Volker Braun pointed in http://trac.sagemath.org/sage_trac/ticket/8988#comment:9 "I think the change in the

Re: [sage-devel] Re: factorial() and gamma()

2010-06-17 Thread William Stein
On Thu, Jun 17, 2010 at 12:14 PM, Nils Bruin wrote: > On Jun 17, 10:32 am, Robert Dodier wrote: >> On Jun 16, 11:24 am, Tom Coates wrote: >> >> > A)  factorial(x) should raise an error; >> >> > B)  factorial(x) should return gamma(x+1). >> >> More generally, the question is what to do with somet

[sage-devel] Re: factorial() and gamma()

2010-06-17 Thread Nils Bruin
On Jun 17, 10:32 am, Robert Dodier wrote: > On Jun 16, 11:24 am, Tom Coates wrote: > > > A)  factorial(x) should raise an error; > > > B)  factorial(x) should return gamma(x+1). > > More generally, the question is what to do with something > which doesn't make sense according to whatever rules ha

[sage-devel] Re: factorial() and gamma()

2010-06-17 Thread Robert Dodier
On Jun 16, 11:24 am, Tom Coates wrote: > A)  factorial(x) should raise an error; > > B)  factorial(x) should return gamma(x+1). More generally, the question is what to do with something which doesn't make sense according to whatever rules have been established so far. I claim the "mathematical"

Re: [sage-devel] 4.4.4.alpha1 and OpenSolaris / Solaris 10 64-bit fixes?

2010-06-17 Thread Mike Hansen
Hello, On Thu, Jun 17, 2010 at 1:37 AM, David Kirkby wrote: > Does anyone have an estimate of when 4.4.4.alpha1 will be available? Sorry about the delay -- I've been under the weather and had family visiting. You can find alpha1 in http://sage.math.washington.edu/home/release/sage-4.4.4.alpha1

[sage-devel] Re: factorial() and gamma()

2010-06-17 Thread rjf
On Jun 17, 3:07 am, David Kirkby wrote: ... > BTW, the #6 hit for factorial in Google, and the number 1 hit for > factorial calculator is this > > http://www.cs.uml.edu/~ytran/factorial.html > > One might have hoped a professor of computer science could have done a > bit better. 1. It appears

[sage-devel] Re: 2d hyperbolic geometry, homogeneous spaces, plot

2010-06-17 Thread Greg Laun
Our geometry lab has a good deal of existing code for hyperbolic geometry, and one of my goals this summer is to port it to Sage. I spoke with Bill Goldman, who heads the lab, and he's on board with GPLing the code and releasing it into the Sage code base if that's something people want. Right n

[sage-devel] Re: factorial() and gamma()

2010-06-17 Thread rjf
It is my recollection that the definition of sqrt of a negative number, say -9, in the unix math library is the sqrt of abs value. Hence it returns 3. So that's another choice. Contrary to Tom's note, I am not requiring that the range and domain of a function be the same, though it may have appea

[sage-devel] Small sage virtual machine (< 500 MB)

2010-06-17 Thread emil
Hi, I had the idea to combine a very small basic Linux with Sage to use it as a virtual machine image (for PC). In a squashed Filesystem this could be as small as 420 MB. Unfortunatly I get an Error - see below - when building sage on this system. Has this been tried before and is it worth the eff

Re: [sage-devel] Re: Chvátal graph is Hamiltonian s o why hamiltonian_cycle() says otherwise?

2010-06-17 Thread Nathann Cohen
Ticket updated ! http://trac.sagemath.org/sage_trac/ticket/9249 Thank you all for your help ! :-) Nathann -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit thi

Re: [sage-devel] Re: factorial() and gamma()

2010-06-17 Thread David Kirkby
On 16 June 2010 15:48, rjf wrote: > > > On Jun 15, 9:28 pm, Tom Coates wrote: > > By your reasoning, and for other domains we would have the following > behavior: > sqrt(-1) -->  error.  after all, some Sage users may not have > encountered imaginary numbers. > RJF That's a very weak argument.

Re: [sage-devel] remove misc/darcs.py in Sage 5.0?

2010-06-17 Thread William Stein
On Thursday, June 17, 2010, David Kirkby wrote: > On 17 June 2010 08:42, Minh Nguyen wrote: >> Hi folks, >> >> The file misc/darcs.py was meant to serve as an interface to the Darcs >> source code version control system, back in the old days before Sage >> switched to using Mercurial. With the up

[sage-devel] 4.4.4.alpha1 and OpenSolaris / Solaris 10 64-bit fixes?

2010-06-17 Thread David Kirkby
Does anyone have an estimate of when 4.4.4.alpha1 will be available? Are many of the fixes for 64-bit OpenSolaris likely to be in this - there are about a dozen with positive review - see http://trac.sagemath.org/sage_trac/ticket/9026 I've been approached by a couple of people who will probably

Re: [sage-devel] Re: Chvátal graph is Hamiltonian s o why hamiltonian_cycle() says otherwise?

2010-06-17 Thread Minh Nguyen
Hi Nathann, On Thu, Jun 17, 2010 at 3:45 AM, Nathann Cohen wrote: > Just a question about this "OptionalPackageNotInstalledError" > exception mentionned about the bug you found in is_hamiltonian... It > sounds like it should be used in a lot of places if it is to become > the standard way of s

Re: [sage-devel] remove misc/darcs.py in Sage 5.0?

2010-06-17 Thread David Kirkby
On 17 June 2010 08:42, Minh Nguyen wrote: > Hi folks, > > The file misc/darcs.py was meant to serve as an interface to the Darcs > source code version control system, back in the old days before Sage > switched to using Mercurial. With the upcoming Sage 5.0 milestone, I > think that module can be

[sage-devel] remove misc/darcs.py in Sage 5.0?

2010-06-17 Thread Minh Nguyen
Hi folks, The file misc/darcs.py was meant to serve as an interface to the Darcs source code version control system, back in the old days before Sage switched to using Mercurial. With the upcoming Sage 5.0 milestone, I think that module can be removed from the Sage library. I believe its removal w