[sage-support] Unrecognized linestyle

2009-08-03 Thread cesarnda
): File "", line 1, in File "/Users/cesarnda/.sage/sage_notebook/worksheets/admin/9/code/ 120.py", line 7, in show(p1 + p2 + p3 + p4 + t1 + t2 + t3, xmin=-_sage_const_0p5 , xmax=_sage_const_3p5 , ymin=-_sage_const_0p5 , ymax=_sage_const_3p5 ) File "", line

[sage-support] how to cite Cython

2008-12-31 Thread cesarnda
I would like to cite cython in a paper. I have decided to take the sage example and do something like this: @manual{cython, Author = {Stefan Behnel and Robert Bradshaw}, Title = {Cython: C-Extensions for Python}, note = {{\tt http://www.cython.org}}, year = {2008} } I would like to know if you h

[sage-support] Re: Computing a sum

2008-11-10 Thread cesarnda
ote: > On Mon, Nov 10, 2008 at 5:36 PM, cesarnda <[EMAIL PROTECTED]> wrote: > > > Actually this sum can't be done by Maxima, but Derive can do it (even > > an old version of derive). do you have an idea of how this problem is > > planning to be solved? > > Is t

[sage-support] Re: Computing a sum

2008-11-10 Thread cesarnda
Actually this sum can't be done by Maxima, but Derive can do it (even an old version of derive). do you have an idea of how this problem is planning to be solved? On 10 nov, 19:30, "William Stein" <[EMAIL PROTECTED]> wrote: > On Mon, Nov 10, 2008 at 5:29 PM, cesarnda &

[sage-support] Computing a sum

2008-11-10 Thread cesarnda
how could I compute this: sum_{ x = 1}^{\infty} 1/x - 1/(x+1) or sum(1/x-1/(x+1),x,1, infinity) directly in Sage, without calling maxima or sympy? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this g

[sage-support] error with animate

2008-11-10 Thread cesarnda
I get the following error while I was trying one of the examples about animate sage: a.show() dyld: Symbol not found: __cg_png_create_info_struct Referenced from: /System/Library/Frameworks/ ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/ Versions/A/ImageIO Expected in

[sage-support] like prolog

2008-11-08 Thread cesarnda
can I program stuff in Sage, like the stuff I can program in prolog? I have programmed several prolog programs and I wish I could code them in Sage, for example, a program that having an input: P -> (Q -> P) its output is true. --~--~-~--~~~---~--~~ To post to

[sage-support] Error with LinearCode()

2008-11-05 Thread cesarnda
I do the following: sage: MS = MatrixSpace(GF(2), 4,7) sage: G = MS([[1,1,1,0,0,0,0], [1,0,0,1,1,0,0], [0,1,0,1,0,1,0], [1,1,0,1,0,0,1]]) sage: C = LinearCode(G) and I get: /home/carlos/sage-3.0.2-ubuntu32-intel-i686-Linux/local/bin/sage-sage: line 348: 1703 Instrucción ilegal python "$@"

[sage-support] Re: Project Euler

2008-10-27 Thread cesarnda
is there a way to do that in a fancy way in pure cython? On Oct 26, 4:02 pm, Georg <[EMAIL PROTECTED]> wrote: > Hi Roland, > > > 2.      Is there a more elegant way for: > > for k1 in range(-2,3): > >  for k2 in range(-2,3): > >   for k3 in range(-2,3): > >    for k4 in range(-2,3): > >     for k

[sage-support] Re: Cython editor

2008-10-08 Thread cesarnda
learer questions the next time I post something here. On 8 oct, 20:20, "Joel B. Mohler" <[EMAIL PROTECTED]> wrote: > On Wednesday 08 October 2008 06:10:16 pm cesarnda wrote: > > > but usually they give 5 spaces instead of 4 > > That's not the "usually&q

[sage-support] Re: Cython editor

2008-10-08 Thread cesarnda
but usually they give 5 spaces instead of 4 On 8 oct, 17:06, "Joel B. Mohler" <[EMAIL PROTECTED]> wrote: > On Wednesday 08 October 2008 01:37:40 pm Carlo Hamalainen wrote: > > > On Wed, Oct 8, 2008 at 7:31 PM, Simon King <[EMAIL PROTECTED]> > wrote: > > > I'm using XEmacs in Python mode. Indentat

[sage-support] Re: Cython editor

2008-10-08 Thread cesarnda
Nevermind, I have already found out On 8 oct, 16:44, cesarnda <[EMAIL PROTECTED]> wrote: > I have vim for mac os, what do you mean by << and >>? > > On 8 oct, 12:37, "Carlo Hamalainen" <[EMAIL PROTECTED]> > wrote: > > > On Wed, Oct 8

[sage-support] Re: Cython editor

2008-10-08 Thread cesarnda
I have vim for mac os, what do you mean by << and >>? On 8 oct, 12:37, "Carlo Hamalainen" <[EMAIL PROTECTED]> wrote: > On Wed, Oct 8, 2008 at 7:31 PM, Simon King <[EMAIL PROTECTED]> wrote: > > I'm using XEmacs in Python mode. Indentation is then automatic. > > I think the question is about changi

[sage-support] Re: Cython editor

2008-10-08 Thread cesarnda
actually for python, there is a plugin for eclipse, but if you open a pyx file it does not work On 8 oct, 12:37, "Carlo Hamalainen" <[EMAIL PROTECTED]> wrote: > On Wed, Oct 8, 2008 at 7:31 PM, Simon King <[EMAIL PROTECTED]> wrote: > > I'm using XEmacs in Python mode. Indentation is then automatic

[sage-support] Cython editor

2008-10-08 Thread cesarnda
what do you usually use as a cython editor? I have a problem, if I have a very long function, and later I want this function in a class, I will have to indent every line, is there a way to avoid doing this? --~--~-~--~~~---~--~~ To post to this group, send email to

[sage-support] Re: lists in cython

2008-09-26 Thread cesarnda
Actually I wanted it less yellow, if I do that or only codeSet = [] or codeSet = ([]) the result is the same. On Sep 26, 1:43 pm, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > On Sep 26, 2008, at 8:21 AM, cesarnda wrote: > > > > > > > I already did that an

[sage-support] Re: lists in cython

2008-09-26 Thread cesarnda
ep 26, 2:55 am, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > On Sep 26, 2008, at 12:09 AM, Simon King wrote: > > > > > > > On Sep 25, 6:45 pm, cesarnda <[EMAIL PROTECTED]> wrote: > > ... > >>   result = [] > > ... > >>       result.

[sage-support] Re: from lists to sets

2008-09-25 Thread cesarnda
I am using the "set([])" function, and is a set of vectors, I want to convert it to a set because I want to use the methods for sets On Sep 25, 9:09 pm, Jason Grout <[EMAIL PROTECTED]> wrote: > cesarnda wrote: > > is there a function that can convert a list to a set

[sage-support] from lists to sets

2008-09-25 Thread cesarnda
is there a function that can convert a list to a set without verifying if there are equal elements?, i.e., I am creating a large set (cardinality = 9^5) of vectors, so the constructions takes too long ( around 25 seconds), but I know all the vectors are distinct, so is there a way to add an elemen

[sage-support] Re: lists in cython

2008-09-25 Thread cesarnda
why the line: def primes(int kmax): is in yellow? On Sep 25, 8:03 pm, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > On Sep 25, 2008, at 3:45 PM, cesarnda wrote: > > > > > > > inhttp://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/there is > > the followin

[sage-support] lists in cython

2008-09-25 Thread cesarnda
in http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ there is the following example: def primes(int kmax): cdef int n, k, i cdef int p[1000] result = [] if kmax > 1000: kmax = 1000 k = 0 n = 2 while k < kmax: i = 0 while i < k and n % p[i] <> 0: i = i + 1

[sage-support] Re: a problem starting the notebook

2008-09-25 Thread cesarnda
I am using Kubuntu 8.04 On 25 sep, 07:39, cesarnda <[EMAIL PROTECTED]> wrote: > -- > | SAGE Version 3.1.2, Release Date: 2008-09-19                       | > | Typenotebook() for the GUI, and license()

[sage-support] Re: a problem starting the notebook

2008-09-25 Thread cesarnda
: notebook() The notebook files are stored in: /home/cesarnda/.sage//sage_notebook ** ** * Open your web browser to http://localhost:8000

[sage-support] Re: a problem starting the notebook

2008-09-24 Thread cesarnda
so? On 23 sep, 01:35, cesarnda <[EMAIL PROTECTED]> wrote: > I start sage and I type notebook and firefox is open to the following > address: > > http://localhost:8000/?startup_token=1af26f2b14cac678ab97c121c9cca7c5 > > which is not found, so I have to cut it just tohtt

[sage-support] Re: working with rings

2008-09-23 Thread cesarnda
Actually sage: G.base_ring().order() is what I wanted, thank you so much. On Sep 23, 1:42 am, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > On Sep 22, 2008, at 11:37 PM, Mike Hansen wrote: > > > > > > > Hello, > > On Mon, Sep 22, 2008 at 11:34 PM, cesarnda &l

[sage-support] a problem starting the notebook

2008-09-22 Thread cesarnda
I start sage and I type notebook and firefox is open to the following address: http://localhost:8000/?startup_token=1af26f2b14cac678ab97c121c9cca7c5 which is not found, so I have to cut it just to http://localhost:8000, is there a way to solve this problem? --~--~-~--~~~-

[sage-support] working with rings

2008-09-22 Thread cesarnda
If I do: sage: MS = MatrixSpace(IntegerModRing(9), 5,5) sage: G = MS([[5, 0, 0, 0, 4],[4, 5, 0, 0, 0],[0, 4, 5, 0, 0],[0, 0,4, 5, 0], [0, 0, 0, 4, 5]]) sage: G.base_ring() Ring of integers modulo 9 is there a way to get the base ring as an integer?, i.e. I want to know the base ring to work with

[sage-support] Re: Cython Programming Guide

2008-07-22 Thread cesarnda
now I have the following error message: sage: time Xi = relajacion(mat1, bi, 2.0) --- TypeError Traceback (most recent call last) /home/cesarnda/Documents/SageProg

[sage-support] Cython Programming Guide

2008-07-22 Thread cesarnda
I have already written a script that works perfect in Sage (relaxation.py) but when I rename it (relaxation.spyx) to make it faster it doesn't work because I got a message: sage: attach relajacion.spyx Compiling /home/cesarnda/Documents/SageProg/ servicioSocialCienciaTusManos/relajacion

[sage-support] How do I create a Matrices Set

2008-06-10 Thread cesarnda
I want to create a matrices set but I get the following error if I use the Set command: sage: setMat = Set(m) --- TypeError Traceback (most recent call last) /home/cesarnda/ in () /home