On 19-07-2013 08:15, Aleksas Domarkas wrote:
> You need to answer: n
> (%i1) integrate(x^k,x);
> "Is "k+1" zero or nonzero?"n;
> (%o1) x^(k+1)/(k+1)
>
> (%i2) integrate(x^k,x);
> "Is "k+1" zero or nonzero?"nonzero;
> (%o2) log(x)
>
> (%i3) wxbuild_info()$
> wxMaxima version: 13.4.0
> Maxima version: 5.30.0
> Maxima build date: 2013-06-01 21:29:43
> Host type: i686-pc-mingw32
> Lisp implementation type: GNU Common Lisp (GCL)
> Lisp implementation version: GCL 2.6.8
With a recent version from the git repository, the question asked is
different and it works fine:
Maxima branch_5_30_base_103_g0860c83_dirty http://maxima.sourceforge.net
using Lisp SBCL 1.1.1.0.debian
(%i2) integrate(x^k,x);
Is k equal to -1?
no;
(%o2) x^(k+1)/(k+1)
(%i3) integrate(x^k,x);
Is k equal to -1?
yes;
(%o3) log(x)
and the same results are obtained if the answers given are y or n.
Regards,
Jaime