MHB Trapezoid & Simpson's Rule with their respective errors.

  • Thread starter Thread starter Jboeding
  • Start date Start date
  • Tags Tags
    Errors Trapezoid
Click For Summary
The discussion focuses on calculating the integral of (5/x)dx from 1 to e using the Trapezoid and Simpson's rules with n=4 and n=8. The user initially struggles with obtaining correct values, specifically getting 5.46027 instead of the expected 5.065195 for the Trapezoid rule. After receiving feedback, the user realizes the importance of calculating values step-by-step and adjusting the decimal precision on their calculator. The conversation also touches on the significance of the error margins provided in the online work. Ultimately, the user resolves their confusion with the calculations.
Jboeding
Messages
9
Reaction score
0
Hey Everyone,

I know I just posted yesterday, but I have another problem from the first chapter of my Calc 2 summer course that I would like to iron out.

Integral of (5/x)dx from 1 to e
with n=4, 8 finding both Trapezoid rule and Simpson's rule approximations, and their errors.

I know how to do both trapezoid rule and the Simpson's rule, but I never get the correct values for this problem, for an unknown reason.

So, from 1 to e, with n=4, I get these values:
∆x = (b-a)/n = (e-1)/4
Values: 1, ((e/4) + (3/4)), ((e/2) + (1/2)), ((3e/4) + (1/4)), e

Plug into the formula:
∆x[(1/2)f(x1) + f(x2) + f(x3) +... + (1/2)f(xn)]

I get: 5.46027, but the answer is different below.

What am I doing wrong?
What is with the +/- at the end of each problem (it is online work).
Is there a way to input this into your calculator for when the n values are up there? (I have a TI-89)

Answer:
Trapezoid(4) = 5.06195 +/- .000004 -OR- 5.065192 +/- .000004
Trapezoid(8) = 5.01635 +/- .000004 -OR- 5.016532 +/- .000004
Simpson's(8) = 5.00315 +/- .000004 -OR- 5.00312 +/- .000004
T(Error) = .016535
S(Error) = .000315

Thanks everyone,
- Jacob
 
Physics news on Phys.org
Jboeding said:
Plug into the formula:
∆x[(1/2)f(x1) + f(x2) + f(x3) +... + (1/2)f(xn)]

I get: 5.46027, but the answer is different below.
I get 5.065195. Perhaps you can post your values for $x_1,\dots,x_5$, $f(x_1),\dots,f(x_5)$ and $\Delta x$ so that we can check.

Jboeding said:
What is with the +/- at the end of each problem (it is online work).
I am not sure what you mean.
 
Evgeny.Makarov said:
I get 5.065195. Perhaps you can post your values for $x_1,\dots,x_5$, $f(x_1),\dots,f(x_5)$ and $\Delta x$ so that we can check.

I am not sure what you mean.

I got it now, thanks for your help.
I think I was just clumping them all together when I should've done it piece by piece. I also changed my float number to include more decimals.

- Jacob
 
Thread 'Problem with calculating projections of curl using rotation of contour'
Hello! I tried to calculate projections of curl using rotation of coordinate system but I encountered with following problem. Given: ##rot_xA=\frac{\partial A_z}{\partial y}-\frac{\partial A_y}{\partial z}=0## ##rot_yA=\frac{\partial A_x}{\partial z}-\frac{\partial A_z}{\partial x}=1## ##rot_zA=\frac{\partial A_y}{\partial x}-\frac{\partial A_x}{\partial y}=0## I rotated ##yz##-plane of this coordinate system by an angle ##45## degrees about ##x##-axis and used rotation matrix to...

Similar threads

Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
1
Views
6K