[sage-devel] Re: server start, server shutdown

2010-10-14 Thread Kwankyu Lee
Hi Don, I just uploaded a revised version of the script modified according to your comments. Check it out! Kwankyu -- 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,

[sage-devel] Re: Complex numerical integration

2010-10-14 Thread Oscar Lazo
On Oct 14, 4:54 am, Johan Grönqvist wrote: > A workaround seems to be to integrate the real and imaginary parts > separately: > > sage: numerical_integral(real(sqrt(sec(x)-1)),pi/2, pi) > (1.9175999157365625e-16, 5.0010185963949996e-17) > sage: numerical_integral(imag(sqrt(sec(x)-1)),pi/2, pi) >

[sage-devel] Strange doctest behavior after adding new ortho polys as Builtin functions

2010-10-14 Thread maldun
Hi all! I found some time to work on ticket #9706 again. I'm currently working the doctest failures out. After applying the patch (or ortho_poly versions 8 or 9) the following doctest fail: * sage -t -long "devel/sage/sage/symbolic/random_tests.py" * sage -t -long "devel/sage/sage/symbol

[sage-devel] Re: server start, server shutdown

2010-10-14 Thread Donald Alan Morrison
On Oct 13, 6:03 pm, Kwankyu Lee wrote: > Hi, > There is a simple script for that purpose in trac ticket #7893. > http://trac.sagemath.org/sage_trac/ticket/7893 Some comments on the script: 1) The stop_server function does not do error checking to ensure that the pid contained in the pid file act

[sage-devel] Re: Complex numerical integration

2010-10-14 Thread maldun
So it happened again... I had such a discussion some time ago in one other thread are are several other problems with numerical integration which occour. The thing is, that sage holds a lot of tool to perform numerical integration to get a good answer (pari, mpmath, scipy etc.) but sometimes it wo

[sage-devel] Re: Bug with Latex in sage

2010-10-14 Thread maldun
Thanks for the hints but actually I'm doing this anyway since my sage holds a lot of experimental stuff which I use for my work. So I have always an clean intallation of Sage ready if something goes wrong =) But using git is a nice Idea to manage this, I had thought about that earlier. -maldun O

[sage-devel] Re: Presentation for Matlab-o-phil people

2010-10-14 Thread Jason Grout
On 10/14/10 3:17 AM, Alexander Dreyer wrote: Hi, are there Sage Worksheets around for explaining the advantages of Sage to people, which usually use Matlab for scientific projects and industrial feasibility studies. It's usually about ODE and related stuff. Aside from the regular advantages o

[sage-devel] Re: Presentation for Matlab-o-phil people

2010-10-14 Thread maldun
PS: If you are especially interested in PDE's you should also look at the FEMhub Project, which is a Sage fork, and deals with finite elements: http://femhub.org/ The Femhub packages can be also installed in sage without much trouble. I tested it out recently, no problem at all. >The MATLAB symbol

[sage-devel] Re: Presentation for Matlab-o-phil people

2010-10-14 Thread maldun
Hi, I can't help you with that now, but I'm currently working on such things, but it refers more to optimization, and will need some time, because I have a lot of other work to do. But www.scipy.org holds a lot info about comparisons with Matlab and Python in general, and since scipy and numpy ar

Re: [sage-devel] Presentation for Matlab-o-phil people

2010-10-14 Thread Dr. David Kirkby
On 10/14/10 09:17 AM, Alexander Dreyer wrote: Hi, are there Sage Worksheets around for explaining the advantages of Sage to people, which usually use Matlab for scientific projects and industrial feasibility studies. It's usually about ODE and related stuff. My Best, Alexander I'm not awa

[sage-devel] Re: libpari segfault related to sage-4.5.3?i

2010-10-14 Thread mhampton
Its 64-bit linux, built from the sage-4.6.alpha3 source. -Marshall On Oct 14, 6:41 am, Jan Groenewald wrote: > Hi Marshall > > On Thu, Oct 14, 2010 at 04:40:43AM -0700, mhampton wrote: > > This doesn't seem to happen on OS X 10.6, but on linux (Ubuntu 9.10, > > on an intel i7 860) I get: > > > s

Re: [sage-devel] Re: libpari segfault related to sage-4.5.3?i

2010-10-14 Thread Jan Groenewald
Hi Marshall On Thu, Oct 14, 2010 at 04:40:43AM -0700, mhampton wrote: > This doesn't seem to happen on OS X 10.6, but on linux (Ubuntu 9.10, > on an intel i7 860) I get: > > sudo dmesg |grep pari > [1137442.823450] python[25794]: segfault at 429 ip 7fba72ee2de1 sp > 7fffa33e3530 error 4 i

[sage-devel] Re: libpari segfault related to sage-4.5.3?

2010-10-14 Thread mhampton
I should have also mentioned that this was on sage-4.6.alpha3, so the problem is still there. On Oct 14, 6:40 am, mhampton wrote: > This doesn't seem to happen on OS X 10.6, but on linux (Ubuntu 9.10, > on an intel i7 860) I get: > > sudo dmesg |grep pari > [1137442.823450] python[25794]: segfaul

[sage-devel] Re: libpari segfault related to sage-4.5.3?

2010-10-14 Thread mhampton
This doesn't seem to happen on OS X 10.6, but on linux (Ubuntu 9.10, on an intel i7 860) I get: sudo dmesg |grep pari [1137442.823450] python[25794]: segfault at 429 ip 7fba72ee2de1 sp 7fffa33e3530 error 4 in libpari-gmp.so.2[7fba72cee000+2c6000] [1352579.933964] python[17881] general prot

[sage-devel] Re: Complex numerical integration

2010-10-14 Thread mhampton
Here's one way to do it using mpmath; there might be better ways: sage: from mpmath import * sage: mp.dps = 15; mp.pretty = True sage: f = lambda x: sqrt(sec(x)-1) sage: quad(f, [pi/2, pi]) (1.43051518370573e-8 + 3.14159264808335j) To get back to a sage type you could do: sage: ans=quad(f, [pi/2

[sage-devel] Re: Complex numerical integration

2010-10-14 Thread Johan Grönqvist
2010-10-14 06:01, Oscar Gerardo Lazo Arjona skrev: I've been trying to solve this integral: sage: numerical_integral(sqrt(sec(x)-1),pi/2,pi) (nan, nan) But that failed also... So I tried with mathematica: numerical integration should be fairly easy to extend to complex numbers. Am I missing so

Re: [sage-devel] libpari segfault related to sage-4.5.3?

2010-10-14 Thread Jan Groenewald
Hi On Wed, Oct 13, 2010 at 10:35:44AM +0200, Jan Groenewald wrote: > > r...@capepoint:/usr/local/src#sage -t "devel/sage/sage/interfaces/sage0.py" > > > > sage -t "devel/sage/sage/interfaces/sage0.py" > > [8.8 s] > > ---

[sage-devel] Presentation for Matlab-o-phil people

2010-10-14 Thread Alexander Dreyer
Hi, are there Sage Worksheets around for explaining the advantages of Sage to people, which usually use Matlab for scientific projects and industrial feasibility studies. It's usually about ODE and related stuff. My Best, Alexander -- To post to this group, send an email to sage-devel@googleg