[sage-support] Re: re (regular expressions) Python module

2014-10-31 Thread João Alberto Ferreira
Ok, thank you! On Saturday, November 1, 2014 12:03:33 AM UTC-2, Nils Bruin wrote: > > On Friday, October 31, 2014 6:17:44 PM UTC-7, João Alberto Ferreira wrote: >> >> joao@Hades:~$ sage >> ┌┐ >> │ Sage Version 6.3, Release Date:

[sage-support] Re: re (regular expressions) Python module

2014-10-31 Thread Nils Bruin
On Friday, October 31, 2014 6:17:44 PM UTC-7, João Alberto Ferreira wrote: > > joao@Hades:~$ sage > ┌┐ > │ Sage Version 6.3, Release Date: 2014-08-10 │ > │ Type "notebook()" for the browser-based notebook

[sage-support] re (regular expressions) Python module

2014-10-31 Thread João Alberto
I was trying to use Python's re (regular expressions) module to parse a log file, but when I ran the following example from the Python documentation, I realized he was not working as expected. Is there something here that I do not know? joao@Hades:~$ sage --python Python 2.7.8 (default, Aug 10 201

[sage-support] Pell's equation

2014-10-31 Thread Michael Beeson
Here I attempt to solve Pell's equation with d = 1621 following the method on page 93 of Stein's book. But the solution produced is instead a solution of the negative Pell equation x^2-y^2 = -1 (instead of 1). Actually, the example on page 93 (after correcting the typo "v" to "u") has the same

Re: [sage-support] after infinite loop in sage notebook it stops working as expected

2014-10-31 Thread Jakob Kroeker
oops, I was just irritated Now I understand, what happens, how to recover, and what may be improved to not irritate the user. > so could you be more precise? > 1. pasted 1 st block. 2. evaluates 1st block 3. pasted block 2 4 clicked on evaluate of block 2 Since I was able to click on 'e

Re: [sage-support] after infinite loop in sage notebook it stops working as expected

2014-10-31 Thread William Stein
On Fri, Oct 31, 2014 at 6:36 AM, Jakob Kroeker wrote: > Hello, > > we experience that after evaluating an infinite loop (with or without > truncated output) > the notebook stops working correctly. Example: It's impossible to ever "evaluate an infinite loop", so could you be more precise? I'm gues

[sage-support] Boot sage in virtualbox and... shutdown?

2014-10-31 Thread NezumiWriter
Well, basically that's my problem. I need sage in windows, so I downloaded virtualbox (4.3.18) and the image of sage 0.63 from the webpage. I installed virtualbox and after that I imported the sage-0.63.ova file to virtualbox. When I press "Run" in virtualbox all seems to be alright, but when i

Re: [sage-support] Secure connection fails using Firefox 33

2014-10-31 Thread kcrisman
> > > Would you recommend putting this somewhere in the sagenb documentation? > I > > wasn't even aware of this .sage/notebook/ directory, since I'm not an > admin. > > Hmm... Where? Maybe > > http://www.sagemath.org/doc/reference/notebook/sagenb/notebook/notebook_object.html > > could hav

[sage-support] after infinite loop in sage notebook it stops working as expected

2014-10-31 Thread Jakob Kroeker
Hello, we experience that after evaluating an infinite loop (with or without truncated output) the notebook stops working correctly. Example: first evaluate block: i = 100 while i>1: print 5 or i = 100 while i>1: pass second evaluate block i = 5 print i # i is not printed Is t

[sage-support] Re: How to install wxPython in Sage?

2014-10-31 Thread João Alberto Ferreira
Hi, Nils! thank you for the suggestion! I tried to install the experimental package: (sage-sh) joao@Hades:~$ sage -i wxPython but it stopped at: ... checking for GTK+ - version >= 2.0.0... no *** Could not run GTK+ test program, checking why... *** The test program failed to compile or link. See

Re: [sage-support] Secure connection fails using Firefox 33

2014-10-31 Thread Jori Mantysalo
On Thu, 30 Oct 2014, kcrisman wrote: Would you recommend putting this somewhere in the sagenb documentation?  I wasn't even aware of this .sage/notebook/ directory, since I'm not an admin. Hmm... Where? Maybe http://www.sagemath.org/doc/reference/notebook/sagenb/notebook/notebook_object.html

Re: [sage-support] Why is this Value Error raised?

2014-10-31 Thread Nils Bruin
On Thursday, October 30, 2014 10:57:53 PM UTC-7, smoha...@gmail.com wrote: > > def Sch(t,y): > return [ -i*sum(f[j,k]*y[j] for k in range(2^L)) for j in > range(2^L)] > Your error is here sage: Sch(1,[1,2,3,4]) [-6*t, 0, 9/2*t - 9/2, -24*t] as you can see, you're returning a vector that