[sage-support] Re: Error inserting new cell

2009-02-05 Thread Jason Grout
John H Palmieri wrote: > On Feb 5, 5:37 pm, kcrisman wrote: > > [snip] > >> 2. Open a TinyMCE cell. Try any math expression ending in > instance, $a> it bold. E.g., "I like the inequality $a> then make 'because' bold. Save this, and click the Edit button. >> Save. Note that > school tag.

[sage-support] Re: Error inserting new cell

2009-02-05 Thread John H Palmieri
On Feb 5, 5:37 pm, kcrisman wrote: [snip] > 2. Open a TinyMCE cell.  Try any math expression ending in instance, $a it bold.  E.g., "I like the inequality $a then make 'because' bold.  Save this, and click the Edit button. > Save.  Note that school tag.  This persists throughout the whole pa

[sage-support] Re: Error inserting new cell

2009-02-05 Thread kcrisman
> > After using the sage notebook for a few days with TinyMCE I got the > > impression > > that the Sage notebook is almost pointless without it :-). > Yes. > Yeah, it is one of those features where once you have it you cannot > understand why we ever though we didn't need it, so a big giant t

[sage-support] Re: How can I import a .py -file to Sage?

2009-02-05 Thread Fall In Love with Sage
Thank you both! On Feb 6, 12:55 am, Minh Nguyen wrote: > Hi, > > On Fri, Feb 6, 2009 at 9:45 AM, Fall In Love with Sage > > wrote: > > > I tried the code unsuccessfully: > >   a = open([x.replace(',',' ').split() for x in open('/Applications/ > > sage/test.py').readlines()] > >   a > > > Simila

[sage-support] Re: Which Version of Sage to Use?

2009-02-05 Thread mabshoff
On Feb 5, 12:26 pm, mrotsliah wrote: > The machine is a server, and I am now the one that takes care of it. > I kind of just got handed the job.  A few users wanted an updated > version of Sage for research purposes.   Out of curiosity a followup: Which Sage release are you running since Sage

[sage-support] Re: Error inserting new cell

2009-02-05 Thread mabshoff
On Feb 5, 2:03 pm, William Stein wrote: > >> > I discovered this bug on sagenb.org which is running Sage 3.3.alpha3 > > > I am more than a little surprised that sagenb.org is running 3.3.a3, > > but I guess TinyMCE is too much motivation to not run 3.2.3 :) > > After using the sage notebook

[sage-support] Re: How can I import a .py -file to Sage?

2009-02-05 Thread Minh Nguyen
Hi, On Fri, Feb 6, 2009 at 9:45 AM, Fall In Love with Sage wrote: > > I tried the code unsuccessfully: > a = open([x.replace(',',' ').split() for x in open('/Applications/ > sage/test.py').readlines()] > a > > Similarly, the next code too: > a = open(for x in open('/Applications/sage/test.

[sage-support] Re: How can I import a .py -file to Sage?

2009-02-05 Thread Mike Hansen
Hello, On Thu, Feb 5, 2009 at 2:45 PM, Fall In Love with Sage wrote: > I tried the code unsuccessfully: > a = open([x.replace(',',' ').split() for x in open('/Applications/ > sage/test.py').readlines()] > a You can do the following to load a .py file into a Sage session: sage: load /Applic

[sage-support] How can I import a .py -file to Sage?

2009-02-05 Thread Fall In Love with Sage
I tried the code unsuccessfully: a = open([x.replace(',',' ').split() for x in open('/Applications/ sage/test.py').readlines()] a Similarly, the next code too: a = open(for x in open('/Applications/sage/test.py').readlines() a --~--~-~--~~~---~--~~ To p

[sage-support] Re: Error inserting new cell

2009-02-05 Thread William Stein
On Thu, Feb 5, 2009 at 1:59 PM, mabshoff wrote: > > > > On Feb 5, 1:50 pm, William Stein wrote: > > Hi, > >> On Thu, Feb 5, 2009 at 1:44 PM, Timothy Clemans >> >> wrote: >> >> > "Problem inserting new input cell after current input cell. undefined" >> >> > I discovered this bug on sagenb.org wh

[sage-support] Re: Error inserting new cell

2009-02-05 Thread mabshoff
On Feb 5, 1:50 pm, William Stein wrote: Hi, > On Thu, Feb 5, 2009 at 1:44 PM, Timothy Clemans > > wrote: > > > "Problem inserting new input cell after current input cell. undefined" > > > I discovered this bug on sagenb.org which is running Sage 3.3.alpha3 I am more than a little surprised

[sage-support] Re: Error inserting new cell

2009-02-05 Thread William Stein
On Thu, Feb 5, 2009 at 1:44 PM, Timothy Clemans wrote: > > "Problem inserting new input cell after current input cell. undefined" > > I discovered this bug on sagenb.org which is running Sage 3.3.alpha3 > > To reproduce this error do: > > 1. Create new worksheet > 2. Create text cell and save > 3

[sage-support] Error inserting new cell

2009-02-05 Thread Timothy Clemans
"Problem inserting new input cell after current input cell. undefined" I discovered this bug on sagenb.org which is running Sage 3.3.alpha3 To reproduce this error do: 1. Create new worksheet 2. Create text cell and save 3. Delete computation cell 4. Click on the blue under the text cell --~--

[sage-support] Re: does Sage work for finfing Groebner basis for a very large system?

2009-02-05 Thread mabshoff
On Feb 5, 6:07 am, Martin Albrecht wrote: > On Thursday 05 February 2009, Adela wrote: > > As you said, the computations should not take so long because I work > > in the ring Z / 2 so I have as solutions only 1 and 0 (they represent > > bits). > > Well since you have 61 variables not so lon

[sage-support] Re: Which Version of Sage to Use?

2009-02-05 Thread mabshoff
On Feb 5, 12:26 pm, mrotsliah wrote: Hi, > The machine is a server, and I am now the one that takes care of it. > I kind of just got handed the job. Ok, I used to maintain some HPUX 10 systems and it was a scary experience to touch anything since it just broke existing stuff, so I can see a

[sage-support] Re: Which Version of Sage to Use?

2009-02-05 Thread mrotsliah
The machine is a server, and I am now the one that takes care of it. I kind of just got handed the job. A few users wanted an updated version of Sage for research purposes. I can look into updating gcc. So, if I update gcc, do you think there will be other problems? Thanks On Feb 5, 1:43 pm,

[sage-support] Re: How can you read a .txt/csv file in Sage?

2009-02-05 Thread Fall In Love with Sage
Thank you! It works now :) On Feb 5, 9:54 pm, David Joyner wrote: > On Thu, Feb 5, 2009 at 2:48 PM, Fall In Love with Sage > > > > wrote: > > > Thank you for your response! > > > The problem is now in the following codes: > > 1. > >   f = open("list2.txt") > >   l1 = f.readline() > >   ls1 = l1

[sage-support] Re: How can you read a .txt/csv file in Sage?

2009-02-05 Thread David Joyner
On Thu, Feb 5, 2009 at 2:48 PM, Fall In Love with Sage wrote: > > Thank you for your response! > > The problem is now in the following codes: > 1. > f = open("list2.txt") > l1 = f.readline() > ls1 = l1.split(" ") > l1 > > gives: > Traceback (click to the left for traceback) > ... >

[sage-support] Re: How can you read a .txt/csv file in Sage?

2009-02-05 Thread Fall In Love with Sage
Thank you for your response! The problem is now in the following codes: 1. f = open("list2.txt") l1 = f.readline() ls1 = l1.split(" ") l1 gives: Traceback (click to the left for traceback) ... IOError: [Errno 2] No such file or directory: 'list2.txt' Similarly, the eval fu

[sage-support] Re: How can you read a .txt/csv file in Sage?

2009-02-05 Thread David Joyner
Possibly I'm not understanding your English. Python can read in any text file, for example csv. So, the answer to your question seems to be in the thread you cited. Also, if you want to know which directory Sageroot is, type SAGE_ROOT. For example: sage: SAGE_ROOT '/home/wdj/sagefiles/sage-3.3.a

[sage-support] How can you read a .txt/csv file in Sage?

2009-02-05 Thread Fall In Love with Sage
My .txt/csv -file looks like in Vim: 1,4 2,5 3,6 I can have both filetypes. I am not sure, which one Sage supports. Open two columns in Sage: - I know that the file needs be at Sageroot. My Sage is installed at ~/ apps/Sage in Mac. Where in ~/apps/Sage do I need to put the file? This question is

[sage-support] Re: Which Version of Sage to Use?

2009-02-05 Thread mabshoff
On Feb 5, 8:30 am, mrotsliah wrote: > Here is the end of the output that make produced: > > make[3]: *** [periods_n.o] Error 1 > make[3]: Leaving directory `/usr/local/sage-3.2.3/spkg/build/ > eclib-20080310.p7/src/g0n' > make[2]: *** [all] Error 2 > make[2]: Leaving directory `/usr/local/sa

[sage-support] Re: constructing polynomials via coefficient vectors?

2009-02-05 Thread David Joyner
You can use dictionaries, like this: sage: R. = PolynomialRing(GF(2),2,'xy') sage: coeffs = {(1, 0): 1, (1, 1): 1} sage: R(coeffs) x*y + x On Thu, Feb 5, 2009 at 12:31 PM, Christophe Oosterlynck wrote: > > Hi, > > is there a way to construct a polynomial using a coefficient vector? > If I cons

[sage-support] constructing polynomials via coefficient vectors?

2009-02-05 Thread Christophe Oosterlynck
Hi, is there a way to construct a polynomial using a coefficient vector? If I construct a polynomial ring ( R = BooleanPolynomialRing(5,'x') ), I want to be able to construct, for example, a polynomial "x0 +x0*x1" by using the coefficients vector [0,1,0,0,0,0,1,0,0,0,0 ... ] thanks --~--~--

[sage-support] Re: Which Version of Sage to Use?

2009-02-05 Thread mrotsliah
Here is the end of the output that make produced: periods.cc: In constructor `periods_via_lfchi::periods_via_lfchi(const level*, const newform*)': periods.cc:382: error: call of overloaded `log(int)' is ambiguous /usr/include/bits/mathcalls.h:110: error: candidates are: double log (double) /us

[sage-support] Re: does Sage work for finfing Groebner basis for a very large system?

2009-02-05 Thread Martin Albrecht
On Thursday 05 February 2009, Adela wrote: > Thanks to everyone for your support! > > I already tried to do the big computation leaving the computer all > night long to work but I still don't know if it finished.. I still > don't understand Sage very well because I don't see any feedback from > it

[sage-support] Re: does Sage work for finfing Groebner basis for a very large system?

2009-02-05 Thread mabshoff
On Feb 5, 1:26 am, Simon King wrote: > On Feb 5, 10:20 am, Simon King wrote: > > > In some application, I had to compute a Gröbner basis for a system of > > about 3 non-homogenous polynomials of degree 3 with 42 variables > > and with rational coefficients. But Singular (which does the Grö

[sage-support] Re: does Sage work for finfing Groebner basis for a very large system?

2009-02-05 Thread Simon King
On Feb 5, 10:20 am, Simon King wrote: > In some application, I had to compute a Gröbner basis for a system of > about 3 non-homogenous polynomials of degree 3 with 42 variables > and with rational coefficients. But Singular (which does the Gröbner > basis computation in Sage) only needed a fe

[sage-support] Re: does Sage work for finfing Groebner basis for a very large system?

2009-02-05 Thread Simon King
Dear Adela, On Feb 4, 11:46 pm, Adela wrote: > I need to solve a big system of nonlinear equations(it consists of 114 > equations, with 61 indeterminates, all of them can be only 0 and 1 and > I work modulo 2). > > I solve it using Groebner bases. So, my problem coms to finding the > reduced Gro

[sage-support] installing optional R package without Internet connection

2009-02-05 Thread Minh Nguyen
Hi folks, I want to install an optional R package from source that I've downloaded from CRAN, say the package /home/mvngu/sna_1.5.tar.gz. Here's my first attempt on Sage 3.2.3: sage: r.install_packages("/home/mvngu/sna_1.5.tar.gz") R version 2.6.1 (2007-11-26) Copyright (C) 2007 The R Foundat