rtoy / maxima

A Clone of Maxima's repo
Other
0 stars 0 forks source link

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

Closed rtoy closed 3 months ago

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-07 12:43:26 Created by macrakis on 2004-05-19 14:04:05 Original: https://sourceforge.net/p/maxima/bugs/570


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.

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-07 12:43:28 Created by willisbl on 2004-10-05 18:58:46 Original: https://sourceforge.net/p/maxima/bugs/570/#2b90


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

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-07 12:43:31 Created by robert_dodier on 2005-08-22 03:16:55 Original: https://sourceforge.net/p/maxima/bugs/570/#45c9


rtoy commented 3 months ago

Imported from SourceForge on 2024-07-07 12:43:35 Created by robert_dodier on 2005-08-22 03:16:55 Original: https://sourceforge.net/p/maxima/bugs/570/#3834


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.

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-07 12:43:38 Created by rtoy on 2006-03-13 15:36:04 Original: https://sourceforge.net/p/maxima/bugs/570/#fccd


Logged In: YES user_id=28849

Hmm. Let's actually close this bug.

rtoy commented 3 months ago

Imported from SourceForge on 2024-07-07 12:43:42 Created by rtoy on 2006-03-13 15:36:04 Original: https://sourceforge.net/p/maxima/bugs/570/#b5e6