[sage-devel] Sage-4.4.1 cdrom and independent sage module

2010-05-04 Thread cch
Hi all, I has updated Live Sage cdrom to Sage-4.4.1. If you had made a Live Sage system on USB stick as previous thread, you can download the independent "sage-4.4.1.lzm" and replace the old sage-4.4.lzm in %USB%/slax/optional/python/ to update Sage. CDROM image: http://diffusion.cgu.edu.tw/ft/

Re: [sage-devel] 4.4.1 accessing internet during compilation

2010-05-04 Thread Nils Bruin
On May 4, 5:08 pm, Ondrej Certik wrote: > I was bitten by this too in FEMhub. setuptools simply sometimes want > to download things from the net. Is there some way to disable it? I > want the build to just fail, if I accidentally switch the order of > packages. Otherwise it's easy for me to miss i

[sage-devel] Re: Notebook command-line switch while not at SAGE_ROOT

2010-05-04 Thread Rob Beezer
That original path should be SAGE_ROOT/devel/sage This is the working directory when I get the errors. On May 4, 8:50 pm, Rob Beezer wrote: > I'm often down in SAGE_ROOT/dev/sage so I can get at the Mercurial -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscrib

[sage-devel] Notebook command-line switch while not at SAGE_ROOT

2010-05-04 Thread Rob Beezer
I'm often down in SAGE_ROOT/dev/sage so I can get at the Mercurial repo. Then I want to test something in the notebook or check some newly-written documentation by using the formatted tab-completion help in the notebook. Then with the above as my working directory, ../../sage -notebook gives th

[sage-devel] Re: Support Vector Machine

2010-05-04 Thread William Cauchois
On May 4, 12:10 pm, Martin Albrecht wrote: > On Tuesday 04 May 2010, William Stein wrote: > > > > > > > On Tue, May 4, 2010 at 11:11 AM, William Cauchois > wrote: > > > Hi everyone, > > > > As part of another project, I completed a rudimentary Python binding > > > to Thorsten Joachims' SVM-Light

[sage-devel] Re: Support Vector Machine

2010-05-04 Thread William Cauchois
Sure. Let me elaborate. A support vector machine is a type of machine learning algorithm. ML algorithms are usually used for classification -- train some sort of model and then use it to classify unknown instances. For my research project (for example), we used an SVM to categorize DOM elements --

Re: [sage-notebook] Re: [sage-devel] 4.4.1 accessing internet during compilation

2010-05-04 Thread Ondrej Certik
On Mon, May 3, 2010 at 8:59 AM, William Stein wrote: > On Mon, May 3, 2010 at 8:49 AM, Tim Joseph Dumol wrote: >> This isn't related to my new package includes. Jinja2 wasn't one of those >> new packages. The problem is that SageNB is installed before Jinja2 is >> installed, so it's more of a pro

[sage-devel] Re: Problem compiling Sage 4.4.1 on Mac OS X 10.6

2010-05-04 Thread Georg S. Weber
On 3 Mai, 13:29, Andri Egilsson wrote: > Hi all, > > I ran into the following problem trying to compile Sage 4.4.1 on Mac > OS X 10.6 (Snow Leopard). My configuration: > > MacBook Pro 17" 2.16 GHz Intel Core Duo (32bit) (Full specs > athttp://www.everymac.com/systems/apple/macbook_pro/stats/mac

Re: [sage-devel] Re: converting complex to float

2010-05-04 Thread William Stein
Paul Zimmerman wanted me to post the following from him to this thread: --- Start of forwarded message --- Content-Type: text/plain; charset="utf-8" From: "Sage" Cc: sage-t...@googlegroups.com Auto-Submitted: auto-generated Date: Tue, 04 May 2010 14:35:55 - Reply-To: wst...@math.washi

Re: Re: [sage-devel] Support Vector Machine

2010-05-04 Thread Martin Albrecht
On Tuesday 04 May 2010, William Stein wrote: > On Tue, May 4, 2010 at 11:11 AM, William Cauchois wrote: > > Hi everyone, > > > > As part of another project, I completed a rudimentary Python binding > > to Thorsten Joachims' SVM-Light library (http:// > > svmlight.joachims.org/) implementing a Sup

Re: [sage-devel] Re: converting complex to float

2010-05-04 Thread Robert Bradshaw
On May 4, 2010, at 11:05 AM, Jason Grout wrote: On 05/04/2010 11:41 AM, William A. Stein wrote: On May 4, 2010, at 9:06 AM, Jason Grouts...@creativetrax.com> wrote: On 05/04/2010 10:30 AM, William A. Stein wrote: I think I wrote the original code for this, and I am ok with the change yo

Re: [sage-devel] Re: erf + solve

2010-05-04 Thread Burcin Erocal
Hi Ross, On Wed, 5 May 2010 01:02:38 +0930 ross kyprianou wrote: > > Your example is a good test case, so please > > keep on trying, sending emails, and poking people (me) to work on > > this. Can you post some example code (your integrator function) so > > I have something to experiment with? >

Re: [sage-devel] Re: converting complex to float

2010-05-04 Thread William Stein
On Tue, May 4, 2010 at 11:05 AM, Jason Grout wrote: > On 05/04/2010 11:41 AM, William A. Stein wrote: >> >> >> >> >> On May 4, 2010, at 9:06 AM, Jason Grout >>  wrote: >> >>> On 05/04/2010 10:30 AM, William A. Stein wrote: >>> I think I wrote the original code for this, and I am ok with the c

Re: [sage-devel] Support Vector Machine

2010-05-04 Thread William Stein
On Tue, May 4, 2010 at 11:11 AM, William Cauchois wrote: > Hi everyone, > > As part of another project, I completed a rudimentary Python binding > to Thorsten Joachims' SVM-Light library (http:// > svmlight.joachims.org/) implementing a Support Vector Machine. My > source code is available at > >

[sage-devel] Support Vector Machine

2010-05-04 Thread William Cauchois
Hi everyone, As part of another project, I completed a rudimentary Python binding to Thorsten Joachims' SVM-Light library (http:// svmlight.joachims.org/) implementing a Support Vector Machine. My source code is available at http://bitbucket.org/wcauchois/pysvmlight Are there people doing ML res

[sage-devel] Re: converting complex to float

2010-05-04 Thread Jason Grout
On 05/04/2010 11:41 AM, William A. Stein wrote: On May 4, 2010, at 9:06 AM, Jason Grout wrote: On 05/04/2010 10:30 AM, William A. Stein wrote: I think I wrote the original code for this, and I am ok with the change you suggest, since our policy on explicit coercions is to make them work

Re: [sage-devel] Re: converting complex to float

2010-05-04 Thread William A. Stein
On May 4, 2010, at 9:06 AM, Jason Grout wrote: > On 05/04/2010 10:30 AM, William A. Stein wrote: > >> I think I wrote the original code for this, and I am ok with the change >> you suggest, since our policy on explicit coercions is to make them work >> when they make (some) mathematical sens

[sage-devel] Re: converting complex to float

2010-05-04 Thread Jason Grout
On 05/04/2010 10:30 AM, William A. Stein wrote: I think I wrote the original code for this, and I am ok with the change you suggest, since our policy on explicit coercions is to make them work when they make (some) mathematical sense. A related question is that conversion from CC or CDF to lo

[sage-devel] Re: converting complex to float

2010-05-04 Thread Jason Grout
On 05/04/2010 10:30 AM, William A. Stein wrote: Does anyone object to me changing float(CDF(1.0)) to behave like float(CC(1.0)) (i.e., a float conversion will succeed if the imaginary part is 0). Note that this will make CDF and the python complex type have different behaviors. I think I wrote

Re: [sage-devel] Re: erf + solve

2010-05-04 Thread ross kyprianou
Burcin > Your example is a good test case, so please > keep on trying, sending emails, and poking people (me) to work on this. > Can you post some example code (your integrator function) so I have > something to experiment with? Id like to do as much as possible. This might be a good example for

Re: [sage-devel] converting complex to float

2010-05-04 Thread William A. Stein
On May 4, 2010, at 8:21 AM, Jason Grout wrote: > Right now, we have the following behavior: > > sage: float(CC(1.0)) > 1.0 > > > sage: float(CDF(1.0)) > --- > TypeError Traceback (most r

[sage-devel] converting complex to float

2010-05-04 Thread Jason Grout
Right now, we have the following behavior: sage: float(CC(1.0)) 1.0 sage: float(CDF(1.0)) --- TypeError Traceback (most recent call last) /home/jason/ in () /home/jason/sage/local/lib/pytho

[sage-devel] Re: Fwd: [mpir-devel] New MPIR-related project

2010-05-04 Thread rjf
A discusssion of mutating versions of GMP (etc) is emphasized in material here http://www.mail-archive.com/sage-devel@googlegroups.com/msg27570.html Note that converting (in applications of these Lisp programs) to gmp integers and back is not something you do very often. After all, if you are doi

Re: [sage-devel] A curious result with len : an int is not an Integer.

2010-05-04 Thread Florent Hivert
Hi Francois, > I play with random in order to approximate Pi by Monte-Carlo method. > > sage: n=10^5 ; len(filter(lambda t:t, [random()^2+random^2() < 1 for k in > [1..n]])) / len([1..n]) > > The test looks at the point (random(), random()) and tests if it's in the > quarter circle. > The

[sage-devel] A curious result with len : an int is not an Integer.

2010-05-04 Thread Francois Maltey
Hello, I play with random in order to approximate Pi by Monte-Carlo method. sage: n=10^5 ; len(filter(lambda t:t, [random()^2+random^2() < 1 for k in [1..n]])) / len([1..n]) The test looks at the point (random(), random()) and tests if it's in the quarter circle. The result may be about pi