Problem with integrate() (was: Re: What am I doing wrong with this cycle?)
Subject: Problem with integrate() (was: Re: What am I doing wrong with this cycle?)
From: Robert Dodier
Date: Thu, 18 Jul 2013 17:13:55 +0000 (UTC)
On 2013-07-18, Przemek Klosowski <przemek.klosowski at nist.gov> wrote:
> integrate(x^k,x);
> Is k + 1 zero or nonzero?
>
> nonzero;
> (%o15) log(x)
> (%i16) integrate(x^k,x);
> Is k + 1 zero or nonzero?
>
> zero;
> (%o16) log(x)
Hmm, I can't confirm that.
(%i2) integrate (x^k, x);
Is k equal to -1?
n;
(%o2) x^(k+1)/(k+1)
(%i3) integrate (x^k, x);
Is k equal to -1?
y;
(%o3) log(x)
using current (post-5.30) source code + Clisp + Linux.
best
Robert Dodier