simpson's rule (1 Viewer)

red802

Member
Joined
Jan 25, 2006
Messages
101
Gender
Undisclosed
HSC
N/A
hey guys, is it just easier to use the complex simpson rule than the easier one because it works for large and small numbers
 

Mountain.Dew

Magician, and Lawyer.
Joined
Nov 6, 2005
Messages
825
Location
Sydney, Australia
Gender
Male
HSC
2005
use the shorter method. in any HSC level maths exam, they wont give u many intervals or ranges of values to do, that is painful. perhaps only 2 or 3 x-values is enough.

therefore, i advise u follow this equation:

Area ~ = 1/6(b-a)[f(a) + f(b) + 4([b+a]/2)], where b and a is the x-values of the interval.
 

Dreamerish*~

Love Addict - Nakashima
Joined
Jan 16, 2005
Messages
3,705
Gender
Female
HSC
2005
I always used the long method, because usually the question has many intervals.

If you use the short one, you'd have to keep repeating.
 
P

pLuvia

Guest
I use this one

b
∫ f(x) dx ≈ h/3 [f(a) + 4[f(x1) + f(x3) + f(x5)...] + 2[f(x2) + f(x4) + f(x6)....] + f(b)]
a

Where h=(b-a)/2

With my one in textbooks they usually expand the whole equation out making it really difficult to remember, but this way you can see a pattern in it. Hope that helped :)
 
Last edited by a moderator:

m0ofin

Member
Joined
Oct 5, 2005
Messages
932
Gender
Undisclosed
HSC
N/A
What exactly are the long and short methods? I always use Area ~ = h/3 [(First + Last) + 2(sum of odd ordinates) + 4(sum of even ordinates)] where h = (b-a)/n Which is pretty much the same as Pluvia's if you take y0 as y1.
 
Last edited:

Riviet

.
Joined
Oct 11, 2005
Messages
5,593
Gender
Undisclosed
HSC
N/A
I use pLuvia's method, easy way to remember it is:

Area=h/3.[first + last + 4x(odds) + 2x(evens)], where first and last refer to the first and last function values, odds and evens refer to the odd numbered functions and even numbered functions.

N.B the odd and even function values exclude the first and last function values, so for example: if 5,6,7,8,9 are your function values where 5 is the first and 9 is your last, 6 is your first odd function, 7 is your first even function, and 8 is your second odd function.
I'll clarify my point with an illustrration:

5|6|7|8|9|
F|O|E|O|L|
F|1|2|3|L| -> notice how 1 is odd, 2 is even 3 is odd.

5,6,7,8,9 are your function values, F is the first, L is last, O is odd, E is even.
 
Last edited:
P

pLuvia

Guest
m0ofin said:
What exactly are the long and short methods? I always use Area ~ = h/3 [(First + Last) + 2(sum of odd ordinates) + 4(sum of even ordinates)] where h = (b-a)/n Which is pretty much the same as Pluvia's
You got that wrong moofin :p

Area ~ = h/3 [(First + Last) + 2(sum of even ordinates) + 4(sum of odd ordinates)] where h = (b-a)/n

It should be this, careless mistakes
 
P

pLuvia

Guest
m0ofin said:
What exactly are the long and short methods? I always use Area ~ = h/3 [(First + Last) + 2(sum of odd ordinates) + 4(sum of even ordinates)] where h = (b-a)/n Which is pretty much the same as Pluvia's
You got that wrong moofin :p

Area ~ = h/3 [(First + Last) + 2(sum of even ordinates) + 4(sum of odd ordinates)] where h = (b-a)/n

It should be this, careless mistakes
 

m0ofin

Member
Joined
Oct 5, 2005
Messages
932
Gender
Undisclosed
HSC
N/A
No, I'm sure it works out to be the same as long as you take the first interval to be y1 instead of y0.

For example, if the intervals were 1, 2, 3, 4, 5 and 6:

(y0, y1, y2, y3, y4, y5) Using h/3[ F + L + 2(even) + 4 (odd)]
= h/3 [y0 + y5 + 2(y2 + y4) + 4(y1 + y3)]
=h/3 [1 + 6 + 2(3 + 5) + 4(2 + 4)]

(y1, y2, y3, y4, y5, y6) Using h/3[ F + L + 2(odd) + 4(even)]
= h/3 [y1 + y6 + 2(y3 + y5) + 4(y2 + y4)]
= h/3 [1 + 6 + 2(3 + 5) + 4(2 + 4)]
 

Riviet

.
Joined
Oct 11, 2005
Messages
5,593
Gender
Undisclosed
HSC
N/A
m0ofin said:
No, I'm sure it works out to be the same as long as you take the first interval to be y1 instead of y0.

For example, if the intervals were 1, 2, 3, 4, 5 and 6:

(y0, y1, y2, y3, y4, y5) Using h/3[ F + L + 2(even) + 4 (odd)]
= h/3 [y0 + y5 + 2(y2 + y4) + 4(y1 + y3)]
=h/3 [1 + 6 + 2(3 + 5) + 4(2 + 4)]
You haven't substituted the numbers in correctly, your last line should read:

h/3 [1 + 6 + 2(2 + 4) + 4(3 + 5)]
=/= h/3 [1 + 6 + 2(3 + 5) + 4(2 + 4)]

Hence it doesn't work both ways, it has to be 4xodds and 2xevens. :)
 

m0ofin

Member
Joined
Oct 5, 2005
Messages
932
Gender
Undisclosed
HSC
N/A
Riviet said:
You haven't substituted the numbers in correctly, your last line should read:

h/3 [1 + 6 + 2(2 + 4) + 4(3 + 5)]
=/= h/3 [1 + 6 + 2(3 + 5) + 4(2 + 4)]

Hence it doesn't work both ways, it has to be 4xodds and 2xevens. :)
No, it was substituted correctly and both ways work, depending on whether you use y0 or y1 first. Clicky.
1 | 2 | 3 | 4 | 5 | 6
y0 | y1 | y2 | y3 | y4 | y5 - 2 even and 4 odd
y1 | y2 | y3 | y4 | y5 | y6 - 2 odd and 4 even
 
P

pLuvia

Guest
What do you mean if you use y0 or y1 first, if you are using the formula

Area ~ = h/3 [(First + Last) + 2(sum of even ordinates) + 4(sum of odd ordinates)] where h = (b-a)/n

As long as you know the first number is y0 or something equivalent, the second number, y1 should go with the 4(sum of odd ordinates) and the next, y2, should go with the 2(sum of even ordinates) then it should be fine

BUT y0 is always the first number in the equation, why would you change it to y1 that just contradicts the y0 since that one is the initial, and y1 is the number after it
 

webby234

Member
Joined
Nov 14, 2005
Messages
361
Gender
Undisclosed
HSC
N/A
I find it easier to use the table and just do them in groups of three

eg
x 1 2 3 4 5
y 1 4 9 16 25
...1 4 1
.........1 4 1

so then multiply by h/3

= 1/3 ((1 + 4*4 + 9) + (9 + 4*16 + 25))


100 posts :)
 

Riviet

.
Joined
Oct 11, 2005
Messages
5,593
Gender
Undisclosed
HSC
N/A
Alright fair enough with the 4 even and 2 odd version, but there's no point in knowing both, sooner or later, one day, you will get confused and get it wrong. So stick to the formula you personally prefer, and learn that one.
 

SoulSearcher

Active Member
Joined
Oct 13, 2005
Messages
6,757
Location
Entangled in the fabric of space-time ...
Gender
Male
HSC
2007
Riviet said:
Alright fair enough with the 4 even and 2 odd version, but there's no point in knowing both, sooner or later, one day, you will get confused and get it wrong. So stick to the formula you personally prefer, and learn that one.
Agreed. And thats why I'll continue to use the long version
 

m0ofin

Member
Joined
Oct 5, 2005
Messages
932
Gender
Undisclosed
HSC
N/A
Riviet said:
Alright fair enough with the 4 even and 2 odd version, but there's no point in knowing both, sooner or later, one day, you will get confused and get it wrong. So stick to the formula you personally prefer, and learn that one.
It does help to skim through both to see which one works for you but of course, it is much easier to just stick to what you knew first. Thanks for the tip though :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top