INT_TABULATED Errors [message #18657] |
Fri, 21 January 2000 00:00 |
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
|
|
|