simpson - SIMPSON'S RULE NAME: Instructions: Read this...

This preview shows pages 1–3. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: SIMPSON'S RULE NAME: Instructions: Read this section and complete the exercise in the next section. This time we will approximate the area under a curve using a "parabola shaped" region. Let the equation of the parabola be = y + + a x 2 b x c . We define the function = ( ) p x + + a x 2 b x c > p:= x -> a*x^2 + b*x + c; := p → x + + a x 2 b x c NOTE: In maple the prompt is ">". Commands are typed after the prompt and end with a semi-colon of colon. To execute a command press ENTER or RETURN. The assignment operator is ":=". The name of our function is assign the name "p". Here "->" is the MINUS sign followed by the GREATER THAN sign. > p(0); c > p(h); + + a h 2 b h c > p(2*h); + + 4 a h 2 2 b h c We wish to solve the equations = ( ) p 0 y = ( ) p h y 1 = ( ) p 2 h y 2 for a, b and c. > S := {p(0)=y0, p(h)=y1, p(2*h)=y2}; := S { } , , = c y0 = + + a h 2 b h c y1 = + + 4 a h 2 2 b h c y2 > SOL:=solve(S,{a,b,c}); := SOL { } , , = c y0 = a 1 2- + y0 2 y1 y2 h 2 = b- 1 2- + 3 y0 4 y1 y2 h...
View Full Document

This note was uploaded on 06/04/2011 for the course MAC 3473 taught by Professor Block during the Fall '08 term at University of Florida.

Page1 / 5

simpson - SIMPSON'S RULE NAME: Instructions: Read this...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online