How can Simpson's Rule have a large margin of error?

  • Thread starter Thread starter mathew350z
  • Start date Start date
  • Tags Tags
    Error Margin
mathew350z
Messages
2
Reaction score
0
\int tan(x)dx

with the limits of 0 to 1.55, with n=10. Using Simpson's Rule, my answer was 4.923651704. But I don't understand why Simpson's Rule varies from my calculator's answer (TI-84 Plus) which is 3.873050987. I thought the higher N with Simpson's Rule would make your answer even more accurate?
 
Physics news on Phys.org
mathew350z said:
\int tan(x)dx

with the limits of 0 to 1.55, with n=10. Using Simpson's Rule, my answer was 4.923651704. But I don't understand why Simpson's Rule varies from my calculator's answer (TI-84 Plus) which is 3.873050987. I thought the higher N with Simpson's Rule would make your answer even more accurate?

The calculator seems to give you the exact answer, which is -Log[Cos(1.55)]. When you do numerical integration, you have to be careful when you are close to singularities. In this case 1.55 is close to pi/2 where tan diverges.
 
Count Iblis said:
The calculator seems to give you the exact answer, which is -Log[Cos(1.55)]. When you do numerical integration, you have to be careful when you are close to singularities. In this case 1.55 is close to pi/2 where tan diverges.

Yes, I understand that tan(pi/2) diverges but I still am having a little trouble as to why that Simpson's Rule over-estimates the actual answer.
 
mathew350z said:
Yes, I understand that tan(pi/2) diverges but I still am having a little trouble as to why that Simpson's Rule over-estimates the actual answer.

I guess you have to do a detailed investigation of the error term in Simpson's rule, study how it behaves near an 1/x -like singularity.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top