):
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
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
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
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 &
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
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
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
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 "$@"
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
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
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
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
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
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
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
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
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.
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
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
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
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
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()
: notebook()
The notebook files are stored in: /home/cesarnda/.sage//sage_notebook
**
**
* Open your web browser to http://localhost:8000
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
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
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?
--~--~-~--~~~-
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
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
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
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
30 matches
Mail list logo