Menu

#970 plot2d(sum(1/i,i,1,n),[n,1,10]) produces stack overflow

closed
nobody
5
2022-03-07
2006-08-03
Anonymous
No

Executing "plot2d(sum(1/i,i,1,n), [n,1,10])" fails
with "Unrecoverable error: bind stack overflow".

Discussion

  • Robert Dodier

    Robert Dodier - 2006-08-06

    Logged In: YES
    user_id=501686

    plot2d assumes (unless told otherwise) that the expression
    to be plotted can be evaluated at any point within [1, 10].
    However sum(1/i,i,1,n) is only well-defined for integer n.
    Perhaps you meant

    L1 : makelist (n, n, 1, 10);
    L2 : makelist (sum(1/i, i, 1, n), n, 1, 10);
    L2 : L2, numer;
    plot2d ([discrete, L1, L2]);

    Although "plot2d(sum(1/i,i,1,n), [n,1,10]); isn't valid,
    plot2d should try to do something smarter than stack
    overflow in that case.

     
  • Robert Dodier

    Robert Dodier - 2006-08-26
    • labels: 460522 --> Lisp Core - Plotting
     
  • Dieter Kaiser

    Dieter Kaiser - 2009-11-29

    I think the problem has gone. I have no problems to get the plot with Maxima 5.19post.

    Settting the status to pending and "works for me".

    Dieter Kaiser

     
  • Dieter Kaiser

    Dieter Kaiser - 2009-11-29
    • status: open --> pending
     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • Robert Dodier

    Robert Dodier - 2022-03-07
    • Labels: Lisp Core - Plotting --> Lisp Core - Plotting, plotting
     

Log in to post a comment.