#570 integrate(x^n,x,0,inf) => sinrx error

closed
nobody
Lisp Core (471)
5
2006-03-13
2004-05-19
No

integrate(x^n,x,0,inf);
Is n positive, negative, or zero? neg;
Is n + 1 positive, negative, or zero? neg;
Is n an integer? y;
Error: |$x| is not of type LIST.
Error signalled by SINRX.

The integral is of course divergent, but it should not be
getting an internal error. Why does it even ask whether
n is integral? Strangely, with n non-integer, it correctly
diverges.

Discussion

  • Barton Willis

    Barton Willis - 2004-10-05

    Logged In: YES
    user_id=895922

    It seems that this bug has been fixed.

    (%i2) integrate(x^n,x,0,inf);
    Is n positive, negative, or zero?

    neg;Is n + 1 positive, negative, or zero?

    neg;Is n an integer?

    yes;Integral is divergent
    -- an error. Quitting. To debug this try DEBUGMODE(TRUE);
    (%i3) build_info();

    Maxima version: 5.9.1.1cvs
    Maxima build date: 9:34 10/4/2004
    host type: i686-pc-mingw32
    lisp-implementation-type: Kyoto Common Lisp
    lisp-implementation-version: GCL 2.6.5

     
  • Robert Dodier

    Robert Dodier - 2005-08-22

    Logged In: YES
    user_id=501686

    Looks to me like it's been fixed (verified result on
    5.9.1cvs / GCL 2.6.6 and clisp 2.33, both on Linux). Closing
    this report.

     
  • Robert Dodier

    Robert Dodier - 2005-08-22
    • labels: --> Lisp Core
     
  • Raymond Toy

    Raymond Toy - 2006-03-13
    • status: open --> closed
     
  • Raymond Toy

    Raymond Toy - 2006-03-13

    Logged In: YES
    user_id=28849

    Hmm. Let's actually close this bug.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks