Re: [sage-support] Re: Number of CPUs?

2010-09-03 Thread didier deshommes
On Fri, Sep 3, 2010 at 8:01 PM, Simon King wrote: > Hi David, > > On 4 Sep., 01:53, "Dr. David Kirkby" wrote: >> Is SAGE_NCPUS used anywhere? > > Well, I was not suggesting to introduce an environment variable that > is used anywhere in Sage except to "tame" my test script. Of course, > if there

Re: [sage-support] Number of CPUs?

2010-09-03 Thread didier deshommes
On Fri, Sep 3, 2010 at 12:47 PM, Simon King wrote: > Hi! > > I have a list of computations (in fact, a test suite), and I'd like to > do them in parallel. Of course, I could use @parallel, but: >  1) each computation uses 3 processes (Sage, GAP, Singular) >  2) it is probably not nice to other use

Re: [sage-support] Number of CPUs?

2010-09-03 Thread didier deshommes
On Fri, Sep 3, 2010 at 12:47 PM, Simon King wrote: > Hi! > > I have a list of computations (in fact, a test suite), and I'd like to > do them in parallel. Of course, I could use @parallel, but: >  1) each computation uses 3 processes (Sage, GAP, Singular) >  2) it is probably not nice to other use

Re: [sage-support] Bad Request Maximum length of 102400 bytes exceeded.

2010-08-27 Thread didier deshommes
My guess is that the web server has a limit on the size of a POST request and that you have reached it. Typically this is 1024kb. The solution is to increase this limit. I'm not sure how to do that for a wsgi application (which I assume sage is). didier On Fri, Aug 27, 2010 at 8:09 AM, Stan Schym

[sage-support] Re: Cython editor

2008-10-08 Thread didier deshommes
On Thu, Oct 9, 2008 at 1:04 AM, cesarnda <[EMAIL PROTECTED]> wrote: > do this, also vi can do that. The reason I asked this question was > just to know standard editor you are using to program in cython. Maybe > I could have found out about another editor. I use emacs, which has a decent pyrex/cy

[sage-support] Re: Counting complex number in a Tuples

2008-05-09 Thread didier deshommes
much more > complicated function. You're right, John. I guess I was being a little selfish: sometimes I mix up symbolic and complex numbers and it usually catches up to me several lines down a computation (or gets really slow). didier > > John > > 2008/5/9 didier deshomm

[sage-support] Re: Counting complex number in a Tuples

2008-05-09 Thread didier deshommes
On Fri, May 9, 2008 at 1:59 PM, Rose <[EMAIL PROTECTED]> wrote: Hi Rose, > > Second, it becomes pretty long went there are complex numbers in my > Tuples (more than 30 secondes for 7 elements). This does take time, interestingly when the numbers are symbolic: {{{ sage: f=range(6) sage: %time T

[sage-support] Re: how to recompile sage pyx when using the binary

2008-04-15 Thread didier deshommes
On Tue, Apr 15, 2008 at 9:33 AM, Ondrej Certik <[EMAIL PROTECTED]> wrote: > > Hi, > > a very beginner question, if I change some .pyx files and want them to > be recompiled, I thought I need to do "sage -b", like this: > > $ ./sage -b > > --

[sage-support] Re: Bug converting real numbers to integers?

2008-03-09 Thread didier deshommes
On Fri, Mar 7, 2008 at 10:26 AM, Carl Witty <[EMAIL PROTECTED]> wrote: > > On Mar 7, 12:42 am, Nikos Apostolakis <[EMAIL PROTECTED]> wrote: > > > Carl Witty <[EMAIL PROTECTED]> writes: > > > Didier mentioned floor(); if you actually want to round, instead of > > > taking the floor, then this wo

[sage-support] Re: Bug converting real numbers to integers?

2008-03-06 Thread didier deshommes
On Thu, Mar 6, 2008 at 5:48 PM, Nikos Apostolakis <[EMAIL PROTECTED]> wrote: > > "didier deshommes" <[EMAIL PROTECTED]> writes: > > > On Thu, Mar 6, 2008 at 4:22 PM, Nikos Apostolakis <[EMAIL PROTECTED]> > wrote: > >> > >> He

[sage-support] Re: Bug converting real numbers to integers?

2008-03-06 Thread didier deshommes
On Thu, Mar 6, 2008 at 4:22 PM, Nikos Apostolakis <[EMAIL PROTECTED]> wrote: > > Hello group, > > Is the following behavior a bug, or am I missing some fundamental > understanding about how Integer works? > > , > | sage: num = RealField(12).random_element(1,9.99) > | sage: num > | 3.18

[sage-support] Re: SAGE chokes on French character

2008-03-05 Thread didier deshommes
On Wed, Mar 5, 2008 at 5:37 PM, Jason Grout <[EMAIL PROTECTED]> wrote: > > > didier deshommes wrote: > > On Wed, Mar 5, 2008 at 5:24 PM, Jason Grout <[EMAIL PROTECTED]> wrote: > >> > >> dean moore wrote: > >> > When I was

[sage-support] Re: SAGE chokes on French character

2008-03-05 Thread didier deshommes
On Wed, Mar 5, 2008 at 5:24 PM, Jason Grout <[EMAIL PROTECTED]> wrote: > > > dean moore wrote: > > When I was writing some other code this came out; finally decided to > > report it. Do the following > > in an online SAGE notebook: > > > > /1+1/ > > > > We get two. Now run the following:

[sage-support] Re: submatrix notation and method

2008-03-05 Thread didier deshommes
On Wed, Mar 5, 2008 at 10:21 AM, Dan Christensen <[EMAIL PROTECTED]> wrote: > > "didier deshommes" <[EMAIL PROTECTED]> writes: > > > SAGE now tries to support numpy (and matlab)-style indexing, by poking > > at its underlying __getitem__ and __getslic

[sage-support] Re: submatrix notation and method

2008-03-02 Thread didier deshommes
On Fri, Feb 29, 2008 at 12:24 PM, Dan Christensen <[EMAIL PROTECTED]> wrote: > In numpy: > > In [11]: A[2:4] > Out[11]: > array([[ 1, 1, 2, -1], >[ 2, -1, 1, -1]]) > > (Or A[2:4,0:4].) > > > >>> # a column > >>> sage: A.matrix_from_rows_and_columns([1..2],[0..0]) > >>> [14] >

[sage-support] Re: Subcontracting to Mathematica

2007-12-13 Thread didier deshommes
William, Would you mind making this a blog post? This is a great reference of how interfaces work in Sage. didier 2007/12/13, William Stein <[EMAIL PROTECTED]>: > I figured out a clean way to have this sort of notation work in > Mathematica etc. rom Sage when > I was hiking with my wife in Sedon

[sage-support] Re: problem installing SAGE 2.8.10

2007-11-02 Thread didier deshommes
On 11/2/07, Paul Zimmermann <[EMAIL PROTECTED]> wrote: > I take the opportunity to ask why the unknown 'x' is special in Sage: Mostly convenience since most people use x for a polynomial or the name of a variable. In earlier versions x was defined to be the polynomial x, now it's a symbolic varia

[sage-support] Re: testing the value of coefficients of a pollynomial

2007-09-26 Thread didier deshommes
2007/9/26, David Stahl <[EMAIL PROTECTED]>: > > I am trying to find what variables have zero as a coefficient and have > been unsuccessful. Here is what I tried: > > I2=I.groebner_basis() > f=SR(I2[0]) > g=f.coeff() > print g > 0 At first glance, g=='0' asks whether g is equal to 0 as a *s

[sage-support] Re: Memory management issues?

2007-08-10 Thread didier deshommes
2007/8/10, Justin <[EMAIL PROTECTED]>: > > Hi again everyone, > > I'm playing around with this project exploring Hasse's theorem for > Elliptic Curves over prime order field and playing with the > distributions that I get. The bottom line is that I execute alot of > lines like this: > > --

[sage-support] Re: preserving source on install

2007-07-12 Thread didier deshommes
2007/7/12, Marshall Hampton <[EMAIL PROTECTED]>: > > Is there a way to install sage so that no source files are deleted? I > am interested in hacking the cddlib source that is used in polymake, > but it looks like it gets deleted after compilation. Is there an Every .spkg file is bascially a t

[sage-support] Re: changing matrix entries

2007-06-20 Thread didier deshommes
On 6/20/07, Marshall Hampton <[EMAIL PROTECTED]> wrote: > I now want to do some loops and update certain entries of the matrix. > But the entries seem immutable, e.g. one can do: > > my_matrix[0][0] += 1 > > and the entry is still zero, although no exception seems to be raised. > > So my question

[sage-support] Re: Is it possible to use SAGE from regular python?

2007-04-29 Thread didier deshommes
On 4/29/07, Ondrej Certik <[EMAIL PROTECTED]> wrote: > and I would have a fully functional environment, I think that would be > awesome. Are you considering getting it into Debian? I am not sure if > it is a problem, that the binary package will be like 100MB. Recently there has been talk about m

[sage-support] Re: How do I extract submatrices from a matrix?

2007-04-23 Thread didier deshommes
On 4/23/07, David Joyner <[EMAIL PROTECTED]> wrote: > > On 4/23/07, didier deshommes <[EMAIL PROTECTED]> wrote: > matrix_from_rows_and_columns( ) Thanks, I knew there was something I was missing. Any chance of aliasing this function to "submatrix()"? Becaus

[sage-support] How do I extract submatrices from a matrix?

2007-04-23 Thread didier deshommes
Hi there, How do I make submatrices (or minors, or block submatrices) in SAGE? I have a 5x5 matrix {{{ [0 1 0 0 0] [0 0 0 0 1] [0 0 0 1 0] [ 5/3-2-1 2/3 5/3] [-17/3 1 4 4/3 1/3] }}} and I would like to extract fr

[sage-support] Re: generic arithmetic in python and sage

2007-04-16 Thread didier deshommes
On 4/16/07, Gary Bunting <[EMAIL PROTECTED]> wrote: > > I have been trying to use some of my python code in sage but > have been having problems, apparently because sage implements > generic arithmetic differently to python. Hi Gary, The SAGE preparser is your problem. If you run the preparser on

[sage-support] Re: upgrade problem

2007-03-31 Thread didier deshommes
On 3/28/07, Jonathan William Bober <[EMAIL PROTECTED]> wrote: > > Hi all. I just upgraded (by running sage -upgrade) and I am having the > problem shown down below. > > Some things that I have tried include running sage with the command > > LD_LIBRARY_PATH="/home/bober/sage-2.3/local/lib/" > SAGE

[sage-support] Re: Random sparse matrices over finite fields

2007-02-21 Thread didier deshommes
On 2/21/07, Iftikhar Burhanuddin <[EMAIL PROTECTED]> wrote: > > Hi folks, > > Random sparse matrices over finite fields generated by SAGE do not look > sparse to me. Bug? > > sage: Mat(GF(17), 10, sparse=True).random_element() Ifti, looking at the docs for random_element(), it looks like you nee

[sage-support] Re: fortran error on fedora

2007-02-10 Thread didier deshommes
On 2/9/07, carlM <[EMAIL PROTECTED]> wrote: > Latest update fails to build on fedora6, fortran compiler internal > error. tail of make output: > > Making install in fortran > make[2]: Entering directory `/mnt/extra/hcmeyer/sage/sage-1.5/spkg/ > build/quaddouble-2.2/src/fortran' > f95 -O2 -ffree-f

[sage-support] Re: Search and info include non-SAGE functions

2007-02-09 Thread didier deshommes
On 2/9/07, Timothy Clemans <[EMAIL PROTECTED]> wrote: > > I had a question about nth roots. I did not know about nth_root. I > tried searching for root, nth, and n using tab but did not find > nth_root. Also nth_root? gives me nothing. It is kind of confusing for > me. It's a function of associat

[sage-support] Re: Real points on elliptic curves

2007-02-07 Thread didier deshommes
On 2/8/07, William Stein <[EMAIL PROTECTED]> wrote: > Didier, > > Would RealLib, which still hasn't fully made its way into SAGE, be very > relevant > to this question? Can it somehow decide equality of some class of real > numbers > defined via an algorithm (e.g., sqrt(2) + 1 - 1 is defined by

[sage-support] Re: Real points on elliptic curves

2007-02-07 Thread didier deshommes
On 2/8/07, Luis Finotti <[EMAIL PROTECTED]> wrote: > Thanks! I could not find that in the Reference Manual... > > On the other hand, it seems that Sage (or Python) does not handle > equality of reals very well: Hi, this is most likey due to rounding errors. The equality holds for fractions: {{{

[sage-support] Re: bug in eigenspaces?

2007-01-30 Thread didier deshommes
On 1/30/07, David Joyner <[EMAIL PROTECTED]> wrote: > > Hello all: > > In trying to compute the eigenvalues and eigenvectors of the > discrete Fourier transformation for Z/5Z for a class I'm teaching, > I came across the following: > > sage: MS = MatrixSpace(CyclotomicField(5),5,5) > sage: z = Cyc