comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » INT_TABULATED Errors
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
INT_TABULATED Errors [message #18657] Fri, 21 January 2000 00:00
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
From the manual...
CAUTION: Data that is highly oscillatory requires a sufficient
number of samples for an accurate integral approximation.

I guess this CAUTION is to be taken seriously...
my data points don't seem so "oscillatory".

; Compute the area under the curve using INT_TABULATED
;
; Example 1
x = [0.0, 0.3333, 0.985, 1.0]
y = [0.0, 0.529, 0.894, 1.0]
plot, x, y, psym=-2, title='Example 1'
print, ' Too small ==> ', INT_TABULATED(x, y)
;
; Example 2
x = [0.0, 0.10, 0.79, 1.0]
y = [0.0, 0.67, 0.96, 1.0]
plot, x, y, psym=-2, title='Example 2'
print, ' Too large ==> ', INT_TABULATED(x, y)


We are now giving POLY_AREA a try!

--------
Andrew F. Loughe email:loughe@fsl.noaa.gov phone:303-497-6211
[Message index]
 
Read Message
Previous Topic: contour plot at max z of surface in obj. graphics
Next Topic: Re: xyz triplet array to a "flat" 2D array?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 20:18:55 PDT 2025

Total time taken to generate the page: 0.72213 seconds