Seems like a bug in integrate



This is what I get with no packages opened and a blank maxima-init file.  The buid_info() is in the output line %o3.  I am using 
Windows XP.  I think I may try reinstalling.

Maxima 5.18.1 http://maxima.sourceforge.net
Using Lisp GNU Common Lisp (GCL) GCL 2.6.8 (aka GCL)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
The function bug_report() provides bug reporting information.
(%i1) integrate(1/(x^2+1)*exp(-%i*%pi*x*t),x,minf,inf);
Is  t  positive, negative, or zero?

p;
                                       - %pi t
(%o1)                            %pi %e
(%i2) integrate(%*exp(%i*%pi*x*t),x,minf,inf);
               - %pi t
             %e        (limit      sin(%pi t x))
                        x -> minf+
(%o2) %pi (- -----------------------------------
                            %pi t
     - %pi t
   %e        (limit     sin(%pi t x))
              x -> inf-
 + ---------------------------------- + %i
                 %pi t
    - %pi t                               - %pi t
  %e        (limit      cos(%pi t x))   %e        (limit     cos(%pi t x))
             x -> minf+                            x -> inf-
 (----------------------------------- - ----------------------------------))
                 %pi t                                %pi t
(%i3) build_info();

Maxima version: 5.18.1
Maxima build date: 20:57 4/19/2009
host type: i686-pc-mingw32
lisp-implementation-type: GNU Common Lisp (GCL)
lisp-implementation-version: GCL 2.6.8

(%o3)
(%i4) integrate(1/(x^2+1)*exp(-2*%i*%pi*x*t),x,minf,inf);
Is  t  positive, negative, or zero?

p;
                                      - 2 %pi t
(%o4)                           %pi %e
(%i5) integrate(%*exp(2*%i*%pi*x*t),t,minf,inf);

Maxima encountered a Lisp error:

 Unhandled kernel in tvar-lim

Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.
(%i6)


Rich


----- Original Message ----- 
From: "Dieter Kaiser" <drdieterkaiser at web.de>
To: "Richard Hennessy" <rich.hennessy at verizon.net>
Cc: <maxima at math.utexas.edu>
Sent: Friday, May 22, 2009 1:59 PM
Subject: Re: [Maxima] Seems like a bug in integrate


Am Freitag, den 22.05.2009, 13:10 -0400 schrieb Richard Hennessy:
> (in 5) integrate(1/(x^2+1)*exp(-%i*%pi*x*t),x,minf,inf);
> Is  t  positive, negative, or zero?
>
> p;
>                                                                      -
> %pi t
> (out5)                                                         %pi %e
> (in 6) integrate(%*exp(%i*%pi*x*t),t,minf,inf);
>
> Maxima encountered a Lisp error:
>
>  Unhandled kernel in tvar-lim
>
> Automatically continuing.
> To reenable the Lisp debugger set *debugger-hook* to nil.
> (in 7)

Hello Richard,

what version of Maxima your are using?

Your example works for me. I am using Maxima 5.18post.

(%i4) integrate(1/(x^2+1)*exp(-%i*%pi*x*t),x,minf,inf);
Is  t  positive, negative, or zero?

p;
(%o4) %pi*%e^-(%pi*t)
(%i5) integrate(%*exp(%i*%pi*x*t),t);
(%o5) %pi*%e^(%i*%pi*t*x-%pi*t)/(%i*%pi*x-%pi)

I have not checked if the result is correct.

Dieter Kaiser