[sage-devel] Lorenz attractor

2008-01-29 Thread Joshua Kantor
I was preparing a talk on solving ODE's in sage, and the culminating example is pretty neat so I thought I would post it. The following code will plot a little bit of the lorenz attractor sage: def lorenz(t,y,params): ... return [params[0]*(y[1]-y[0]),y[0]*(params[1]-y[2])- y[1],y[0]*y[1]-p

[sage-devel] Re: more on number of digits

2008-01-29 Thread Alex Ghitza
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wait, it gets even better! We can actually get a fairly good estimate on the precision we need, on-the-fly. Suppose we are given the integer x. If the base is 2, then the amount of precision we need is prec=sizeinbase(sizeinbase(x,2),2) or some

[sage-devel] Re: Sage 2.10.1.rc2 released!

2008-01-29 Thread Burcin Erocal
Hello, On Mon, 28 Jan 2008 23:57:49 +0100 Jaap Spies <[EMAIL PROTECTED]> wrote: > > mabshoff wrote: > > > > > > On Jan 28, 11:45 pm, Jaap Spies <[EMAIL PROTECTED]> wrote: > >> mabshoff wrote: > > > >>> which Maple release are you running? > >> Me, once again. I don't think it is important wh

[sage-devel] Sage interface to Mathematica

2008-01-29 Thread Timothy Clemans
Hi, I'm sort of interested in working on the Sage interface to Mathematica. Does anyone have any ideas for implementing say list(mathematica('{11,20,30}')) -> [11,20,30]? sage: list(mathematica('{1,2,3}')) --- Traceback (

[sage-devel] Re: question about exceptions

2008-01-29 Thread William Stein
On Jan 29, 2008 5:24 AM, Timothy Clemans <[EMAIL PROTECTED]> wrote: > I'm writing a class called TableStyle right now and want to know if > the style I'm using for dealing with invalid options is good. > > class UnknownOption(KeyError): > "Used to indicate when unknown option is given" > > cla

[sage-devel] Hyperbolic geometry

2008-01-29 Thread Philippe Saade
Hi everybody I need to make some simple drawings in Poincaré disk model of hyperbolic geometry (and some on the hyperboloid model too). I didn't find any python package for that (searching on Google). Before i start coding it in python, does anybody know of some existing stuff available ? Than

[sage-devel] Re: Sage 2.10.1.rc2 released!

2008-01-29 Thread mabshoff
On Jan 29, 5:52 pm, Kiran Kedlaya <[EMAIL PROTECTED]> wrote: > Doctest failure on my machine (64 bit Opteron, RHEL 5); see below. Hi Kiran, > Kiran > > -- > The following tests failed: can you confirm that the patch attached

[sage-devel] Re: Sage 2.10.1.rc2 released!

2008-01-29 Thread Kiran Kedlaya
Doctest failure on my machine (64 bit Opteron, RHEL 5); see below. Kiran -- The following tests failed: sage -t devel/sage-main/sage/interfaces/sage0.py ** Fi

[sage-devel] Re: YUI info for notebook developers

2008-01-29 Thread Jason Grout
David Joyner wrote: > Hi: > I don't use the notebook but thought that possibly those > who do development might want to check out > http://developer.yahoo.com/yui/ > It's BSD licensed, and I'm guessing might have some useful code. > - David Joyner This is interesting, thanks for pointing it out.

[sage-devel] YUI info for notebook developers

2008-01-29 Thread David Joyner
Hi: I don't use the notebook but thought that possibly those who do development might want to check out http://developer.yahoo.com/yui/ It's BSD licensed, and I'm guessing might have some useful code. - David Joyner --~--~-~--~~~---~--~~ To post to this group, send

[sage-devel] Re: Lorenz attractor

2008-01-29 Thread David Joyner
That's cool. Good luck on your talk. BTW, have you tried this? http://www.math.pitt.edu/~bard/xpp/xpp.html I could not get it to compile from source but fortunately is a debian package (apt-get install xppaut). The docs say it "is a tool for solving * differential equations, * differenc

[sage-devel] Re: more on number of digits

2008-01-29 Thread Robert Bradshaw
Just FYI, there is very little performance gain in using MPFR for a tiny number of bits compared to, say, a default of 60 (because the underlying data still fits inside a single word). I'm almost certain calculating the exact precision would be more expensive than using a reasonable default

[sage-devel] Re: YUI info for notebook developers

2008-01-29 Thread boothby
On Tue, 29 Jan 2008, Jason Grout wrote: > > David Joyner wrote: >> Hi: >> I don't use the notebook but thought that possibly those >> who do development might want to check out >> http://developer.yahoo.com/yui/ >> It's BSD licensed, and I'm guessing might have some useful code. >> - David Joy

[sage-devel] SAGE v2.10 make html problem

2008-01-29 Thread gri6507
i am trying to build up HTML documentation in v2.10 and am running into the following problems: 1. Running make in /devel/doc directory errors out unless I change PYTHON=python to PYTHON=sage-python 2. After that change, running make does proceed, but error out a while later with [1] (/home/gri

[sage-devel] Re: YUI info for notebook developers

2008-01-29 Thread alex clemesha
On Jan 29, 2008 11:53 AM, Yi Qiang <[EMAIL PROTECTED]> wrote: > > I think that's a great summary of what those JavaScript libraries have > to offer. I've actually used jquery a little bit for the web front-end > of DSage and I like it a lot. The learning curve is not *nearly* as > steep as it is w

[sage-devel] Re: YUI info for notebook developers

2008-01-29 Thread alex clemesha
On Jan 29, 2008 9:32 AM, <[EMAIL PROTECTED]> wrote: > > > > > On Tue, 29 Jan 2008, Jason Grout wrote: > > > > > David Joyner wrote: > >> Hi: > >> I don't use the notebook but thought that possibly those > >> who do development might want to check out > >> http://developer.yahoo.com/yui/ > >> It's

[sage-devel] plotting errors on Mac OSX 10.5 binary

2008-01-29 Thread alex clemesha
Hi all, I just grabbed the latest Mac OSX10.5 binary from here: http://sagemath.org/SAGEbin/apple_osx/intel/sage-2.10-osx-10.5-intel.dmg (because incidentally I think running Sage's matplotlib will be by far the easiest way of getting matplotlib working on OSX leopard for someone else that I work

[sage-devel] Re: question about exceptions

2008-01-29 Thread Fernando Perez
On Jan 29, 2008 4:46 AM, William Stein <[EMAIL PROTECTED]> wrote: > That it is possible to raise custom exception I *never* do it. I > would definitely > just do > >raise KeyError, "Used to indicate when unknown option is given" > > instead of > >raise UnknownOption() > > It is way easi

[sage-devel] Re: YUI info for notebook developers

2008-01-29 Thread Yi Qiang
I think that's a great summary of what those JavaScript libraries have to offer. I've actually used jquery a little bit for the web front-end of DSage and I like it a lot. The learning curve is not *nearly* as steep as it is with twisted (I think Alex Clemesha would agree). I think one big pro th

[sage-devel] Re: YUI info for notebook developers

2008-01-29 Thread boothby
On Tue, 29 Jan 2008, Jason Grout wrote: > > David Joyner wrote: >> Hi: >> I don't use the notebook but thought that possibly those >> who do development might want to check out >> http://developer.yahoo.com/yui/ >> It's BSD licensed, and I'm guessing might have some useful code. >> - David Joy

[sage-devel] Re: Lorenz attractor

2008-01-29 Thread mhampton
We really need to get xpp and/or AUTO into sage at some point. I have made some half-hearted stabs at it but have lacked the time to get serious. Like R support, its a chicken-and-egg problem: without real users within the sage community, it doesn't get put in, and until its in right there aren'

[sage-devel] Re: Sage 2.10.1.rc2 released!

2008-01-29 Thread Kiran Kedlaya
This is also fixed by that patch, yes. Kiran On Jan 29, 11:55 am, mabshoff <[EMAIL PROTECTED] dortmund.de> wrote: > On Jan 29, 5:52 pm, Kiran Kedlaya <[EMAIL PROTECTED]> wrote: > > > Doctest failure on my machine (64 bit Opteron, RHEL 5); see below. > > Hi Kiran, > > > Kiran > > > --

[sage-devel] Re: plotting errors on Mac OSX 10.5 binary [UPDATE: error on source build too]

2008-01-29 Thread Jason Grout
alex clemesha wrote: > Hi, > Update on my last post ... > I just finished compiling sage from source (on the same machine) > which completely succeeded and overall seems to be working fine but > it looks like there are still plotting errors. > > (The final error is almost identical to the one I g

[sage-devel] Re: plotting errors on Mac OSX 10.5 binary [UPDATE: error on source build too]

2008-01-29 Thread alex clemesha
Hi, Update on my last post ... I just finished compiling sage from source (on the same machine) which completely succeeded and overall seems to be working fine but it looks like there are still plotting errors. (The final error is almost identical to the one I got when I tried to install stand-alo

[sage-devel] Re: plotting errors on Mac OSX 10.5 binary [UPDATE: error on source build too]

2008-01-29 Thread alex clemesha
Update: Uh, so I just did rm -rf ~/.matplotlib and then restarted Sage and now the plotting is working. So I don't know what to say about that except ah ... but I guess all is well now? There still exists the hard-coding of "/Users/was" in the Mac OSX 10.5 binary, but I'm now wondering if

[sage-devel] Re: plotting errors on Mac OSX 10.5 binary [UPDATE: error on source build too]

2008-01-29 Thread William Stein
On Jan 29, 2008 7:08 PM, alex clemesha <[EMAIL PROTECTED]> wrote: > Update: > > Uh, so I just did > > rm -rf ~/.matplotlib > > and then restarted Sage and now the plotting is working. > > So I don't know what to say about that except ah > ... but I guess all is well now? This is a common prob

[sage-devel] Re: plotting errors on Mac OSX 10.5 binary [UPDATE: error on source build too]

2008-01-29 Thread Fernando Perez
On Jan 29, 2008 7:41 PM, William Stein <[EMAIL PROTECTED]> wrote: > > On Jan 29, 2008 7:08 PM, alex clemesha <[EMAIL PROTECTED]> wrote: > > Update: > > > > Uh, so I just did > > > > rm -rf ~/.matplotlib > > > > and then restarted Sage and now the plotting is working. > > > > So I don't know what t

[sage-devel] Re: plotting errors on Mac OSX 10.5 binary [UPDATE: error on source build too]

2008-01-29 Thread alex clemesha
On Jan 29, 2008 6:41 PM, William Stein <[EMAIL PROTECTED]> wrote: > > On Jan 29, 2008 7:08 PM, alex clemesha <[EMAIL PROTECTED]> wrote: > > Update: > > > > Uh, so I just did > > > > rm -rf ~/.matplotlib > > > > and then restarted Sage and now the plotting is working. > > > > So I don't know what t

[sage-devel] Re: plotting errors on Mac OSX 10.5 binary [UPDATE: error on source build too]

2008-01-29 Thread William Stein
On Jan 29, 2008 9:47 PM, Fernando Perez <[EMAIL PROTECTED]> wrote: > > On Jan 29, 2008 7:41 PM, William Stein <[EMAIL PROTECTED]> wrote: > > > > On Jan 29, 2008 7:08 PM, alex clemesha <[EMAIL PROTECTED]> wrote: > > > Update: > > > > > > Uh, so I just did > > > > > > rm -rf ~/.matplotlib > > > > >

[sage-devel] Re: plotting errors on Mac OSX 10.5 binary [UPDATE: error on source build too]

2008-01-29 Thread mabshoff
On Jan 30, 3:57 am, "alex clemesha" <[EMAIL PROTECTED]> wrote: > On Jan 29, 2008 6:41 PM, William Stein <[EMAIL PROTECTED]> wrote: > > > > > > > On Jan 29, 2008 7:08 PM, alex clemesha <[EMAIL PROTECTED]> wrote: > > > Update: > > > > Uh, so I just did > > > > rm -rf ~/.matplotlib > > > > and then

[sage-devel] Re: plotting errors on Mac OSX 10.5 binary [UPDATE: error on source build too]

2008-01-29 Thread alex clemesha
On Jan 29, 2008 7:07 PM, mabshoff < [EMAIL PROTECTED]> wrote: > > > > On Jan 30, 3:57 am, "alex clemesha" <[EMAIL PROTECTED]> wrote: > > On Jan 29, 2008 6:41 PM, William Stein <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > On Jan 29, 2008 7:08 PM, alex clemesha <[EMAIL PROTECTED]> wrote: > >

[sage-devel] Re: question about exceptions

2008-01-29 Thread William Stein
On Jan 29, 2008 2:56 PM, Fernando Perez <[EMAIL PROTECTED]> wrote: > > On Jan 29, 2008 4:46 AM, William Stein <[EMAIL PROTECTED]> wrote: > > > That it is possible to raise custom exception I *never* do it. I > > would definitely > > just do > > > >raise KeyError, "Used to indicate when unknow

[sage-devel] Re: wow 0^0 sure is inconsistent in Sage (was Re: [sage-newbie] Re: 0^0 undefined)

2008-01-29 Thread kcrisman
On Jan 29, 10:29 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On Jan 29, 2008 4:45 PM, Hector Villafuerte <[EMAIL PROTECTED]> wrote: > > > > > On Jan 29, 2008 12:18 PM, Georg <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > is there a way so that > > > 0^0 > > > yields 1. > > > thanks in advance

[sage-devel] wow 0^0 sure is inconsistent in Sage (was Re: [sage-newbie] Re: 0^0 undefined)

2008-01-29 Thread William Stein
On Jan 29, 2008 4:45 PM, Hector Villafuerte <[EMAIL PROTECTED]> wrote: > > On Jan 29, 2008 12:18 PM, Georg <[EMAIL PROTECTED]> wrote: > > > > Hi, > > is there a way so that > > 0^0 > > yields 1. > > thanks in advance, Georg It "works" if you using Sage's multiprecision reals, or Python floats or

[sage-devel] Re: YUI info for notebook developers

2008-01-29 Thread William Stein
On Jan 29, 2008 4:11 PM, alex clemesha <[EMAIL PROTECTED]> wrote: > > > > On Jan 29, 2008 9:32 AM, <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > On Tue, 29 Jan 2008, Jason Grout wrote: > > > > > > > > David Joyner wrote: > > >> Hi: > > >> I don't use the notebook but thought that possibly tho

[sage-devel] Re: Hyperbolic geometry

2008-01-29 Thread William Stein
On Jan 29, 2008 9:20 AM, Philippe Saade <[EMAIL PROTECTED]> wrote: > > Hi everybody > > I need to make some simple drawings in Poincaré disk model of > hyperbolic geometry (and some on the hyperboloid model too). > > I didn't find any python package for that (searching on Google). > > Before i sta

[sage-devel] default ssh login for VMware image

2008-01-29 Thread Jason Grout
I'm concerned about the security of having a default username/password pair for the VMware image (login/sage). Since the VMware image is, in part, targeted to people who either do not have the skills or do not want to secure a network, why should we by default open a very easy backdoor into t

[sage-devel] Re: default ssh login for VMware image

2008-01-29 Thread William Stein
On Jan 29, 2008 11:15 PM, Jason Grout <[EMAIL PROTECTED]> wrote: > > I'm concerned about the security of having a default username/password > pair for the VMware image (login/sage). Since the VMware image is, in > part, targeted to people who either do not have the skills or do not > want to secu

[sage-devel] SAGE and games

2008-01-29 Thread Bill Hart
Hi all, Some of my undergraduate students have pointed out some interesting things to me, and I thought sage developers might find them interesting. The first is http://www.projecteuler.net/ It's a list of computational mathematical problems which you can solve with a CAS, C, assembly, whatever

[sage-devel] Re: Lorenz attractor

2008-01-29 Thread Fabio Tonti
Would be nice if someone posted the Lorenz attractor code on planet.sagemath.org! For those who don't subscribe to this list... Fabio On Jan 29, 2008 8:32 PM, mhampton <[EMAIL PROTECTED]> wrote: > > We really need to get xpp and/or AUTO into sage at some point. I have > made some half-hearted