X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 12 Aug 2016 09:15 AM by  anon
arithmetic error when using errorplot and /xlog
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
12 Aug 2016 09:15 AM
    I have the problem that when I try to plot an errorplot and use /xlog, I keep getting an error no matter what dataset. I have tried to distil the problem down to the simplest program: pro test X=[2,3] Y=[2,4] E_Y=[1,2] p = errorPLOT(X,Y, E_Y,/xlog) end It will plot it, but at the same time give me: % Program caused arithmetic error: Floating divide by 0 Any ideas of what is the cause of the problem? I have IDL 8.3.0 for Mac

    Deleted User



    Basic Member


    Posts:143
    Basic Member


    --
    17 Aug 2016 03:32 PM
    This error indicates that there is an operation when generating the plot that is causing a floating point number to be divided by zero: IDL> print, 100.0/0 Inf % Program caused arithmetic error: Floating divide by 0 This is may occurring because of a rounding error. In this case, I do not think that this error is anything that should cause worry.
    You are not authorized to post a reply.