Hi Thomas --<div><br></div><div>Thank you for the link. I'm not familiar with the mathematical notation used to represent the trapezoid rule function, but it resembles Scheme enough to give me some clue on how to go forward. </div>
<div><br></div><div>Here's my best effort at translation:</div><div><br></div><div>For this problem, argument "a" signifies the x-axis coordinate for the "left interval" and argument "b" signifies the x-axis coordinate for "right interval." </div>
<div><br></div><div>The length of each interval is equal to it's y-coordinate value, which can be derived by applying function f to it's x-coordinate. The length of each interval also equals the two base lengths of a trapezoid. The altitude of the trapezoid is equal to the difference between the x-coordinate values of a and b. So, if the area of a trapezoid = altitude * ((base1+ base2) / 2), then the formula for the area under the curve equals [(b - a) * ((f a) + (f b) / 2)].</div>
<div><br></div><div>To calculate the areas for two trapezoids, one needs only to divide the interval between a and b by 2, apply f to that value, and then use the result as base2 for the trapezoid with (f a) as base1, and base1 for the trapezoid with (f b) as base2. </div>
<div><br></div><div>Does that sound about right? If so, I'll translate it to Scheme. Perhaps that would make my thoughts easier to evaluate. </div><div><br></div><div>Thanks for the time!</div><div><br></div><div>Thanks, </div>
<div>Dave </div><div><br><div class="gmail_quote">On Mon, Feb 9, 2009 at 5:33 PM, Thomas Chust <span dir="ltr"><<a href="mailto:chust@web.de">chust@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2009/2/10 David Yrueta <<a href="mailto:dyrueta@gmail.com">dyrueta@gmail.com</a>>:<br>
> [...] Still don't really understand how this relates to the question of computing the<br>
> "area of each trapezoid," though. [...]<br>
<br>
Hello,<br>
<br>
<a href="http://en.wikipedia.org/wiki/Trapezoidal_rule" target="_blank">http://en.wikipedia.org/wiki/Trapezoidal_rule</a> has some figures that<br>
may make the idea behind this integration method more clear: The graph<br>
of the function is approximated by a polyline -- in the special case<br>
of Kepler's rule a very coarse one with only two edges; the<br>
approximation of the integral is the area of the polygon bounded by<br>
this polyline, the two integration interval boundaries and the<br>
coordinate axis of the integration variable.<br>
<br>
cu,<br>
Thomas<br>
<font color="#888888"><br>
<br>
--<br>
When C++ is your hammer, every problem looks like your thumb.<br>
</font></blockquote></div><br></div>