Menu

#86 INTERPOL does not support scalar third argument

Unstable (example)
closed-fixed
nobody
None
5
2016-10-20
2015-06-06
Kalith
No

Here is a patch to make INTERPOL support scalar third argument

1 Attachments

Discussion

  • giloo

    giloo - 2015-06-06

    Hi, thanks.
    Could you provide an example where the current version of interpol fails with a scalar 3rd argument?
    Because if I do:
    GDL> x=[findgen(360)/360]!PI2
    GDL> y=sin(x)
    GDL> plot,x,y
    GDL> u=4
    GDL> interp=interpol(y,x,u)
    GDL> print,interp
    -0.754710
    GDL> oplot,[4],[interp],psym=4

     
  • Kalith

    Kalith - 2015-06-13

    It currently fails if the scalar 3rd argument goes outside of the bounds of the 'x' array. Changing 'u=4' to 'u=8' will trigger the problem.

     
  • giloo

    giloo - 2015-06-13

    Indeed! Thanks, I've commited your patch in the cvs after test.

     
  • giloo

    giloo - 2016-10-20
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB