#1049 Strange interaction of plot2d and remvalue.

closed
nobody
5
2012-12-04
2007-01-01
Anonymous
No

Plot2d behaves very strangely.

(%i1) g(s):=block([s__],s__:s,remvalue(s),s__)$
(%i2) g(2);
(%o2) 2
(%i3) plot2d(g,[t,1,2]);
Warning: Illegal `remvalue' attempt:
s
Warning: Illegal `remvalue' attempt:
s

etc...

The plot however is fine.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Follow up on the mailing list by Robert Dodier.

    On 1/1/07, Michel Van den Bergh <michel.vandenbergh@uhasselt.be> wrote:

    > But look at the example. g(2) does *not* give a warning but g within
    > plot2d does give warnings.

    Michel, it turns out the strangeness is indeed within plot2d.

    I've made 2 mistakes here.

    (1) plot2d calls g in a nonstandard way (not via MFUNCALL).
    So that's the origin of this bit of strangeness. For the record,
    the bit to repair is COERCE-FLOAT-FUN in src/plot.lisp.

    (2) When a Maxima function is called via MFUNCALL, the arguments
    do indeed appear on the values list (therefore REMVALUE is happy).

    best,
    Robert

     
  • Robert Dodier

    Robert Dodier - 2007-03-03

    Logged In: YES
    user_id=501686
    Originator: NO

    I think I fixed this in COERCE-FLOAT-FUN in src/plot.lisp. Marking this for follow-up to verify.

     
  • Robert Dodier

    Robert Dodier - 2007-03-03
    • labels: --> Lisp Core - Plotting
    • milestone: --> To_be_reviewed
     
  • Robert Dodier

    Robert Dodier - 2008-05-15

    Logged In: YES
    user_id=501686
    Originator: NO

    Appears to be fixed after testing w/ GCL, CMUCL, and Clisp. Closing this report as fixed.

     
  • Robert Dodier

    Robert Dodier - 2008-05-15
    • 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