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.