0% found this document useful (0 votes)
62 views3 pages

2011-04-05 Riemann Sums Program

This document contains a calculus worksheet asking the student to solve a Riemann sum problem calculating the area under the curve of y=x^2 on the interval [1,3] using 4 left-handed rectangles. It then introduces a calculator program to solve Riemann sums and explains the variables and for loop used. It asks the student to trace the values of the sum and area variables at each step of the for loop and explain what setting R=1 would do to calculate a right-handed Riemann sum instead.

Uploaded by

samjshah
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views3 pages

2011-04-05 Riemann Sums Program

This document contains a calculus worksheet asking the student to solve a Riemann sum problem calculating the area under the curve of y=x^2 on the interval [1,3] using 4 left-handed rectangles. It then introduces a calculator program to solve Riemann sums and explains the variables and for loop used. It asks the student to trace the values of the sum and area variables at each step of the for loop and explain what setting R=1 would do to calculate a right-handed Riemann sum instead.

Uploaded by

samjshah
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 3

Name:__________________________ Date:_________________________ Band:________

Calculus | Packer Collegiate Institute


Riemann Sum Program

Solve by hand (without your calculator program): y = x 2 on [1,3] with 4 LH rectangles


y

−2.0 −1.5 −1.0 −0.5 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 6.5 7.0 7.5 8.0

Program Letters Example: y = x 2 on [1,3]


with 4 LH
rectangles
A stands for ________________
What we enter as users
B stands for ________________ A is ________________

N stands for ________________ B is ________________

H stands for ________________ N is ________________

S stands for ________________ R is ________________

X stands for ________________ What the calculator


calculates
R stands for ________________
________________ H is ________________

S is ________________

1
Let’s go through the program and look at what it is doing, paying close attention to the
FOR LOOP:

Before the for loop starts running:

S= X=

When the for loop starts running, it will repeat _____ times.

At the end of each for loop

When I=1 S= X=
When I=2 S= X=
When I=3 S= X=
When I=4 S= X=

S represents the ___________________________________________________________________

___________________________________________________________________

___________________________________________________________________

X represents the ___________________________________________________________________

___________________________________________________________________

What does the line do in the program?

What does the line do in the program?

Assume we wanted to do right handed rectangles. We set R=1.

Before the for loop starts running:

S= X=

When the for loop starts running, it will repeat _____ times.

At the end of each for loop

When I=1 S= X=
When I=2 S= X=
When I=3 S= X=
When I=4 S= X=

What does setting R=1 do which makes the program calculate right handed rectangles?
________________
2
________________________________________________________________________________.

You might also like