Re: [sage-support] Re: memory error

2011-04-15 Thread D. S. McNeil
>> TypeError: list indices must be integers, not >> FiniteField_ext_pariElement > > I see this problem on Mac OS X, so it's not specific to one type of system.   > It may be due to a change in the way finite fields are handled as the size > grows, but I'm not familiar with that code. > > Can anyon

[sage-support] Re: assumptions so that x^n -> 0?

2011-04-15 Thread achrzesz
One can discuss if in limits of f(x,n) as n-->oo x may depend on n or not but in the following version: sage: assume(x>-0.99,x<0.99) sage: n=var('n') sage: sage: limit(x^(n+1)/(1-x), n=infinity) -limit(x^(n + 1), n, +Infinity)/(x - 1) sage: assume(x>0) sage: sage: limit(x^(n+1)/(1-x), n=infinit

Re: [sage-support] Re: memory error

2011-04-15 Thread Justin C. Walker
On Apr 15, 2011, at 13:07 , Foad Khoshnam wrote: > Hi > I don't know why the function "A=H.point()" at the following program > for the finite field with size 101^5 does not work with this error as below. > But for the finite field with size 101^2 there is no problem. > By the way, I use this PC:

[sage-support] extracing terms from expressions

2011-04-15 Thread tvn
given an expression f of the form c1*t1 + c2*t2 + .. +cn*tn, I want to extract from f the list of 'terms' [t1..tn] .. is there some Sage function that can help do this ? Thanks , For example 3/5*x*y + 5*y + 3*z > [x*y,y,z] 3*x^2 -> [x^2] x*y -> [x*y] -- To post to this group,

Re: [sage-support] numpy divide by zero warnings are annoying

2011-04-15 Thread D. S. McNeil
> I'm not turning off warnings in numpy, though, since we use it under the hood > only > here. I'm confused. I was going to recommend numpy.seterr(all='ignore') before I read this, maybe wrapping plot to restore the original state after the call.. but now I'm not sure what kind of solution you

[sage-support] Re: assumptions so that x^n -> 0?

2011-04-15 Thread ancienthart
(Respectfully) Then why does splitting the range of values for x into positive, zero and negative ranges work? Joal Heagney -- 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 opt

[sage-support] error in documentation

2011-04-15 Thread andres.ordonez
Hi, there's an error in http://www.sagemath.org/doc/numerical_sage/numpy.html at the part where says "You can see that numpy.meshgrid() produces a pair of matrices, here denoted xx and yy, such that (xx[i,j],yy[i,j]) has coordinates (x[i],y[j])." (It's just after the meshgrid() example). (xx[i,

[sage-support] numpy divide by zero warnings are annoying

2011-04-15 Thread kcrisman
I want to get rid of them. I am pretty sure I'm not dividing by zero anywhere; 1/sqrt(f**2+1) really shouldn't ever be zero here. Any ideas? y = var('y') g = 1 P=plot_slope_field(g,(x,3,4),(y,-1,1)) P And when I say "get rid of", I mean by tomorrow morning in a talk I'm giving. This is almost

[sage-support] Re: Removing installed spkgs

2011-04-15 Thread kcrisman
In this case, you can reinstall the sagenb spkg, I think. Let us know if that works. The Jmol upgrade is still experimental, though definitely wending its way toward completion... On Apr 15, 9:51 pm, ObsessiveMathsFreak wrote: > How can installed optional spkgs be removed from the current sage

[sage-support] Removing installed spkgs

2011-04-15 Thread ObsessiveMathsFreak
How can installed optional spkgs be removed from the current sage installation. I have installed an jmol upgrade package which has failed to work and now I'd like to revert to whatever the previous version was. Is this possible? -- To post to this group, send email to sage-support@googlegroups.co

[sage-support] error with point() function at the hyperelliptic curves subject

2011-04-15 Thread Foad Khoshnam
Hi I don't know why the function "A=H.point()" at the following program for the finite field with size 101^5 does not work with this error as below. But for the finite field with size 101^2 there is no problem. By the way, I use this PC: OS: LINUX VERSION: ubunto 10.4-64bit. Also I have not downloa

[sage-support] Re: memory error

2011-04-15 Thread Foad Khoshnam
Hi I don't know why the function "A=H.point()" at the following program for the finite field with size 101^5 does not work with this error as below. But for the finite field with size 101^2 there is no problem. By the way, I use this PC: OS: LINUX VERSION: ubunto 10.4-64bit. Also I have not downloa

[sage-support] Re: Integrals of trigonometric functions

2011-04-15 Thread kcrisman
> >> -- > >> | Sage Version 4.6.1, Release Date: 2011-01-11                       | > >> | Type notebook() for the GUI, and license() for information.        | > >> -

Re: [sage-support] Re: Integrals of trigonometric functions

2011-04-15 Thread Michael Orlitzky
On 04/15/2011 12:39 PM, kcrisman wrote: > > > On Apr 15, 8:03 am, Laurent wrote: >> Le 15/04/2011 02:39, Michael Orlitzky a crit :> Am I going crazy? >> >>>sage: integrate(cos(2*x)*cos(x), x, 0, pi) >>>4/3 >> >> Actually Sage seems not to get the correct primitive : >> >> ---

[sage-support] visualizing Sato-Tate for sums of twelve squares

2011-04-15 Thread kcrisman
On Monday or Wed., I think I'd like to show my intro number theory course a cool new result we would have no hope of actually examining, but whose result they can understand - the Barnet-Lamb/Geraghty/Harris/ Taylor result on number of ways to write a prime as a sum of twelve squares, which relies

[sage-support] Re: Integrals of trigonometric functions

2011-04-15 Thread kcrisman
On Apr 15, 8:03 am, Laurent wrote: > Le 15/04/2011 02:39, Michael Orlitzky a crit :> Am I going crazy? > > >    sage: integrate(cos(2*x)*cos(x), x, 0, pi) > >    4/3 > > Actually Sage seems not to get the correct primitive : > > ---

Re: [sage-support] Integrals of trigonometric functions

2011-04-15 Thread Laurent
Le 15/04/2011 02:39, Michael Orlitzky a écrit : Am I going crazy? sage: integrate(cos(2*x)*cos(x), x, 0, pi) 4/3 Actually Sage seems not to get the correct primitive : -- | Sage Version 4.6.1, Release Date: 2011-01-11

Re: [sage-support] Install problem Ubuntu 10.10

2011-04-15 Thread David Kirkby
On 12 April 2011 17:55, H wrote: > Hi- > I have been trying to install Sage on my laptop running Ubuntu 10.10. > I downloaded the binary tar files and extracted them. I ran Sage in a > terminal, after it is done resetting paths there is ImportError > Traceback (most recent call last) and then it s

[sage-support] Re: assumptions so that x^n -> 0?

2011-04-15 Thread achrzesz
Without additional assumption that x is constant the limit is not zero (take for example x=(1/2)^(1/(n+1)) (W... alpha: Assuming[x=const,x<1,x>0];Limit[x^(n+1)/(1-x),n->+Infinity] 0 OK, Assuming[x<1,x>0];Limit[x^(n+1)/(1-x),n->+Infinity] unevaluated OK) On 15 Kwi, 06:00, Dan Drake wrote: > Why d