Trapezoidal Rule

erroneum

Banned
Joined
Jul 6, 2012
Messages
6
First off: I own and use a TI-89 Titanium.

On my calculator, I have made a function to compute the trapezoidal rule on some function with n segments. One day I decided to test it, and so I was working with x2 and decided to use 1 segment, and got the expected 1/2. Following this I decided to see what would happen when I told it to use i segments and was given an answer of 1/6. I am wondering why this happened.

If it's helpful, the method my calculator is using to calculate it is (as entered into the calculator):
Σ((upper-lower)/num*((func|var=lower+i*((upper-lower)/num))+(func|var=lower+(i+1)*((upper-lower)/num)))/2,i,0,num-1)
 
You'll have to specify limits and why you were expecting 1/2.
 
x squared from 0 to 1

2 points) line: (0+1)/2 = 1/2
3 points) quadratic: (2*0 + 4*0.25 + 2*1)/6 = 1/3
 
Top