#1191 integrate(integrate(x*cos(x*y),x,1,2),y,3,5)

closed
nobody
None
5
2007-05-24
2007-05-12
pvdg
No

The following command causes an endless sequence of questions which must be interrupted (Ctrl-C):

(%i6) integrate(integrate(x*cos(x*y),x,1,2),y,3,5);
Is y sin(y) positive, negative, or zero?

Is y sin(y) positive, negative, or zero?

.
.
.

Is y sin(y) positive, negative, or zero?
Maxima encountered a Lisp error:

Console interrupt.

Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.

This doesn't happen if you change the order of integration:

(%i7) integrate(integrate(x*cos(x*y),y,3,5),x,1,2);
cos(10) cos(6) cos(5) cos(3)
(%o7) - ------- + ------ + ------ - ------
5 3 5 3

Maxima version: 5.11.0
Maxima build date: 1:0 3/25/2007
host type: i686-pc-linux-gnu
lisp-implementation-type: GNU Common Lisp (GCL)
lisp-implementation-version: GCL 2.6.7

Discussion

  • Stavros Macrakis

    Logged In: YES
    user_id=588346
    Originator: NO

    I can't reproduce this in command-line Maxima 5.11.0cvs/clisp or Xmaxima 5.11.0/gcl.

    Is it possible that this is a front-end or pseudo-tty issue? If Maxima doesn't stop after each question to wait for an answer, perhaps the front end is sending an illegitimate answer invisible to the user?

    What happens with the command asksign(x) ? What is the front-end you're using to run Maxima? Is it running under Emacs or SAGE or over a telnet connection?

    -s

     
  • Stavros Macrakis

    Logged In: YES
    user_id=588346
    Originator: NO

    Though Maxima should be able to do better than this about asking questions, the "infinite question" problem probably comes from whatever front end is being used. Bug reporter has not answered query about this. Closing as "Works for me".

     
  • Stavros Macrakis

    • status: open --> closed
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks