[sage-support] Re: Reserved words (Sage + Cython)

2012-02-17 Thread Oleksandr Kazymyrov
Hi Simon, It is very strange. I use Ubuntu 11.10 and my parameters are: hamsin@hamsin-pc:~/bin/sage-5.0.beta4$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 11.10 Release: 11.10 Codename: oneiric hamsin@hamsin-pc:~/bin/sage-5.0.beta4$ gcc --version gcc (

[sage-support] sage won't compile on Arch Linux i686

2012-02-17 Thread Rob Steenburgh
Hello: I just began using sage and was very impressed with its capabilities. Unfortunately, almost as soon as I began using it, I found out the latest version won't compile on Arch Linux and some other distros. Details can be found at these links: http://trac.sagemath.org/sage_trac/ticket/11391

[sage-support] Re: Reserved words (Sage + Cython)

2012-02-17 Thread Simon King
Dear Oleksandr, On 17 Feb., 15:32, Oleksandr Kazymyrov wrote: > Or just run "Main.sage" from a shell (in this case, variable PATH should > has a path to the sage directory, like this one > "PATH=/home/user/bin/sage/:$PATH"). Then I can not reproduce it. I started a Sage shell, and did

[sage-support] Re: Simplification Issue Implicates Canonical Form

2012-02-17 Thread kcrisman
In some previous incarnation, where Sage used Maxima for things like this, your simplification happened. (%i1) 1/sqrt(5); 1 (%o1) --- sqrt(5) (%i2) sqrt(5)/5;

[sage-support] Simplification Issue Implicates Canonical Form

2012-02-17 Thread Mark Rahner
Hello sage-support, I'm a Sage newbie who just joined the group. Before I get to the meat of my post, I'd like to thank the open source math software community for all of your hard work! Nothing I say should be misinterpreted as a complaint. I have only admiration and gratitude. I ran into an

[sage-support] Re: Reserved words (Sage + Cython)

2012-02-17 Thread Oleksandr Kazymyrov
Dear Simon, >> But the only difference between the good and the bad version is that some function is called PC in the bad file and PCc in the good file Yes, exactly. >> However, Oleksandr: What is one supposed to do in order to reproduce the error? When I start a sage session and attach Main.sa

[sage-support] Re: How-to change the size of ticks ? ( use of graphs for presentations )

2012-02-17 Thread Jason Grout
On 2/17/12 7:40 AM, Goebbe wrote: Thank you very much Jason, your help is highly appreciated! It seems that the interaction with matplotlib is a bit more complicated than what I imagined. :-) Yes, a long-term project is to overhaul the graphics code so that it exposes more of the powerful mat

[sage-support] Re: Reserved words (Sage + Cython)

2012-02-17 Thread Simon King
Hi Dima, hi Oleksandr, On 17 Feb., 14:07, Dima Pasechnik wrote: > I imagine the behaviour is similar to Python's, where it's jolly possible > to do "list=2" and see stuff beginning to happen... But the only difference between the good and the bad version is that some function is called PC in the

[sage-support] Re: How-to change the size of ticks ? ( use of graphs for presentations )

2012-02-17 Thread Goebbe
Thank you very much Jason, your help is highly appreciated! It seems that the interaction with matplotlib is a bit more complicated than what I imagined. :-) I tried your code and it worked fine, but the xmin, xmax ... has been ignored. After experimenting I found the place, where I have to put th

[sage-support] Fastest Lattice Reduction

2012-02-17 Thread Santanu Sarkar
I need to reduce a lattice of dimension 200 with its entries sizes are of size like 3000 bit. I use LLL(algorithm="fpLLL:fast") for faster lattice reduction. But it seems there is a problem in the function. Reduction is very bad. Is there any way to reduce this size of matrix efficiently? -- To

[sage-support] Re: Reserved words (Sage + Cython)

2012-02-17 Thread Dima Pasechnik
In gmane.comp.mathematics.sage.support, you wrote: > After upgrading from version 4.7.2 to 4.8, one function of dozen is stopped > working. I use a combination of Sage + Cython. You can find examples in the > attachments. > > The main problem is: when you use "PC" as the function name in "*.c" fi

[sage-support] Re: Modular operation in multivariate polynomials

2012-02-17 Thread Simon King
Hi all, On 17 Feb., 10:53, Simon King wrote: > > No, I havn't. If this is not a problem for you then open. > > OK, I'll do so later today. I opened http://trac.sagemath.org/sage_trac/ticket/12529 Best regards, Simon -- To post to this group, send email to sage-support@googlegroups.com To unsu

[sage-support] Reserved words (Sage + Cython)

2012-02-17 Thread Oleksandr Kazymyrov
Hi All, After upgrading from version 4.7.2 to 4.8, one function of dozen is stopped working. I use a combination of Sage + Cython. You can find examples in the attachments. The main problem is: when you use "PC" as the function name in "*.c" file sage gives an error /home/hamsin/bin/sage/loca

[sage-support] Re: How-to change the size of ticks ? ( use of graphs for presentations )

2012-02-17 Thread Jason Grout
On 2/17/12 3:32 AM, Goebbe wrote: Hi, this is my first post. Please keep in mind that I have just started to use Sage. I use the sage notebook in order to prepare graphs for a introductory statistics class. Since I use the graphs in presentations (powerpoint) - I modified linewidth, fontsize in

Re: [sage-support] Normal Distribution

2012-02-17 Thread Santanu Sarkar
Thanks for the help. On 17 February 2012 16:00, Vegard Lima wrote: > On Fri, Feb 17, 2012 at 10:52 AM, Santanu Sarkar > wrote: >> How to generate 1000 random integers which follow normal >> distribution with mean 0 and variance 0.1? > > You can do this with numpy: > > sage: import numpy as np >

[sage-support] Re: Normal Distribution

2012-02-17 Thread Goebbe
Not sure what generating "integers" means, when drawing from a normal, but if you just want to draw random numbers, the following should do it: NV001 = RealDistribution('gaussian',sqrt(0.1)) #N(0,0.1) mean=0 std dev = sqrt(0.1) randomdraws = [NV001.get_random_element() for _ in range(1000)] --

[sage-support] How-to change the size of ticks ? ( use of graphs for presentations )

2012-02-17 Thread Goebbe
Hi, this is my first post. Please keep in mind that I have just started to use Sage. I use the sage notebook in order to prepare graphs for a introductory statistics class. Since I use the graphs in presentations (powerpoint) - I modified linewidth, fontsize in order to get a graph that is easily

Re: [sage-support] Normal Distribution

2012-02-17 Thread Vegard Lima
On Fri, Feb 17, 2012 at 10:52 AM, Santanu Sarkar wrote: > How to generate 1000 random integers which follow normal > distribution with mean 0 and variance 0.1? You can do this with numpy: sage: import numpy as np sage: mu, sigma = 0, sqrt(0.1) # mean and standard deviation sage: s = np.random.no

[sage-support] Re: Modular operation in multivariate polynomials

2012-02-17 Thread Oleksandr Kazymyrov
Hi Simon, I agree with you. My previous message is true only for GF(2^n). Best regards, Oleksandr -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at

[sage-support] Re: Modular operation in multivariate polynomials

2012-02-17 Thread Simon King
Hi Oleksandr, On 17 Feb., 10:33, Oleksandr Kazymyrov wrote: > No, I havn't. If this is not a problem for you then open. OK, I'll do so later today. > At the moment I use the following code: > > pol=sum([g.mod(P("y^{0}+y".format(1< = GF(3)[] sage: p = P.random_element() sage: p x^2 + x*y - 1

[sage-support] Normal Distribution

2012-02-17 Thread Santanu Sarkar
How to generate 1000 random integers which follow normal distribution with mean 0 and variance 0.1? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at

[sage-support] Re: Modular operation in multivariate polynomials

2012-02-17 Thread Oleksandr Kazymyrov
Hi Simon, >> Do you have a trac account, or shall I open a trac ticket myself? No, I havn't. If this is not a problem for you then open. At the moment I use the following code: pol=sum([g.mod(P("y^{0}+y".format(1