Re: [sage-support] Re: Inability to compute limit.

2013-11-08 Thread Dan Drake
On Fri, 08 Nov 2013 at 01:41PM -0800, kcrisman wrote: > Dan, I'm on a train with horrible internet - can you open a ticket, post to > the Maxima list, etc.? Thanks! This is now http://trac.sagemath.org/ticket/15386. Dan -- --- Dan Drake - www.math.wisc.edu/~ddrake/ --- signature.

Re: [sage-support] Re: Inability to compute limit.

2013-11-08 Thread kcrisman
Another interesting data point - in Maxima itself: (%i6) display2d:false; (%o6) false (%i7) limit(-(3*n^2 + 1)*(-1)^n/sqrt(n^5 + 8*n^3 + 8),n,inf); (%o7) -38*und*log(-1)^2/25 But in Sage sage: log(-1) I*pi which presumably leads to this. Dan, I'm on a train with horrible internet - can you o

Re: [sage-support] Re: Inability to compute limit.

2013-11-08 Thread Dan Drake
On Fri, 08 Nov 2013 at 01:03PM -0800, kcrisman wrote: > Note the "und" - undefined. Maxima is probably noticing the (-1)^n piece... I'm not sure it's the (-1)^n. I tried using cos(pi*n) instead and still get "und": sage: n = var('n') sage: assume(n>0) sage: series = -(3*n^2 + 1)*cos(pi*n)/sqrt(n

[sage-support] Re: Inability to compute limit.

2013-11-08 Thread PavelY
Looks like you are correct. When i took the absolute value of "series", it gave me the correct answer. (Although absolute value doesn't work 100% of the time.) I'm currently doing (limit((series^2).simplify_full(), n=infinity)) It serves its purpose for now since I only want to know if the limit

[sage-support] Re: Inability to compute limit.

2013-11-08 Thread kcrisman
On Friday, November 8, 2013 2:21:26 PM UTC-5, PavelY wrote: > > I am trying to compute a limit with sage, and I get incorrect answers. > > Here is an example which should produce the result of 0 but does not. > > reset() > n = var('n') > > assume(n>0) > series = -(3*n^2 + 1)*(-1)^n/sqrt(n^5 + 8