Question: Simpson's rule using the SUM command.

Let's say I do this:

points:=[[285,0],[290,0],[300,0],[315,0],[325,0],[330,0],[335,0]]

 

The syntax example that my professor gave to get the sum of the points of the x-coordinate is as follows:

sum('points [k,1]', 'k'=1..7);

 

Now here's my question: how do I use the sum command to define a function that uses the Simpson's rule. I know I can't use the simpson's command since I'm dealing with a bunch of points and not a function.

The actual problem that my professor gave is getting an approximation of the area of Virginia. He gave us a bunch of points and we need to use simpson's rule.

 

Any help would be very very very greatly appreciated.

Please Wait...