HP71B Integral Questions
|
02-07-2020, 08:14 AM
(This post was last modified: 02-07-2020 11:09 PM by Albert Chan.)
Post: #14
|
|||
|
|||
RE: HP71B Integral Questions
(02-07-2020 03:49 AM)Wes Loewer Wrote: But the standard trapezoid method evaluates the endpoints while the rectangle midpoint method does not. As you said, the endpoints are not evaluated, which points to the midpoint method. The 50g definitely uses Romberg extrapolation of midpoints and gives very similar results as above. Setting the number format to FIX 5, you get: Sorry for the confusion. I thought 65535 sample points failed convergence is enough to show INTEGRAL uses trapezoids, not midpoint rectangles. Here are the actual numbers, and its extrapolations. Midpoint numbers, for g(u)=3/sqrt(4-u^2), u = -1 to 1, converged quickly. Note: table required 127 sample points, since previous iteration numbers cannot be reused. Note: we can get midpoint numbers from trapezoids: Mn = 2 T2n - Tn, even if T1 were wrong. Code: 1 3 Trapezoids, with assumption of T1 = 0, failed convergence. Last result = 3.141560455, matching HP71B INTEGRAL result. Code: 1 0 The reason for skipping end points is just an optimization, which work for most cases. If f(x) is finite at the end points, g(u) has end-points = 0, because of (1-u^2) factor. If f(x) is infinite at the end points, but grow slower than the shrinking (1-u^2), we still have 0 at the end-points. For other cases, well, at least it returned a negative IBOUND ... |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 7 Guest(s)