Computer Science 1 3.14 And he made a molten sea, ten cubits from the one brim to the other: it was round all about, and his height was five cubits: and.

Slides:



Advertisements
Similar presentations
CHAPTER 2 ANALYSIS OF ALGORITHMS Part 2. 2 Running time of Basic operations Basic operations do not depend on the size of input, their running time is.
Advertisements

Pi is a very old number. We know that the Egyptians and the Babylonians knew about the existence of the constant ratio pi, although they didn't know.
Objectives: Discover points of concurrency in triangles. Draw the inscribed and circumscribed circles of triangles. Warm-Up: How many times can you subtract.
Quit Pì The Radian Estimates of  Gabriel’s Horn.
Pi Day – 3.14 Tanya Khovanova. Definition  The mathematical constant Π is an irrational real number, approximately equal to , which is the ratio.
Multiply Decimals 1.Multiply as with whole numbers. 2.Count the total numbers in decimal place value for both factors 3.Place as many numbers of your FINAL.
Celebrating π – Trivia Quiz ANSWERS 1.Which letter of the Greek alphabet is π? the 16th 2.Which of the following is NOT true? a. There is a movie named.
PIPI Jill Keeve
Lesson 1-7: Perimeter,Circumference & Area Warmup A has coordinates (3, 8). B has coordinates (0, –4). C has coordinates (–5, –6). 1. Find the distance.
AREA OF A CIRCLE Lesson Parts of a Circle Finding the Area Area means the amount of space covered. The symbol is called pi and is approximately.
ESTIMATING PRODUCTS BY ROUNDING. 1)Round both factors to the greatest place value. 2)Multiply the front end digits of the rounded number. 3)Count your.
Computer Science I: Understand how to evaluate expressions with DIV and MOD Random Numbers Reading random code Writing random code Odds/evens/…
The Accumulator Pattern Summing: Add up (“accumulate”), e.g. 1 2 plus 2 2 plus 3 2 plus … plus Variation: Form a product (instead of sum), e.g.
PIPI Jill Keeve
© Hamilton Trust Keeping Up Term 3 Week 1 Day 3 Objective: Use rounding to estimate answers to calculations.
1008 : The Shortcut AP CALCULUS. Notation: The Derivative is notated by: NewtonL’Hopital Leibniz.
Expressions in Perimeter Problems. Suppose you are given the perimeter, and need to find the sides. Example: The perimeter of the rectangle is 66. –What.
Holt McDougal Geometry 1-5 Using Formulas in Geometry Apply formulas for perimeter, area, and circumference. Objective.
Knowledge of quantities / calculating areas Knowledge of technical information, quantaties and communicating with others.
STUDY LIST.
Objective - To factor trinomials in the form,
4 Chapter Chapter 2 Decimals.
Estimating Square Roots
Geometry 1-6 and 1-7 Notes August 22, 2016 or August 23, 2016.
AP Java 10/4/2016.
Surface Area and Volume
Calculating Circumference
Objective - To factor trinomials in the form,
Program Options: 10 Minutes online
PI Day Edition 1!.
1.5: Using Formulas in Geometry
Rounding Review Tens and Hundreds
Rounding Review Tens and Hundreds
Area of Irregular Figures
Spiral TAKS Review #2 6 MINUTES.
Knowledge of quantities / calculating areas
Equations of Circles Part a.
Review Finish program Graphics Programming
Truth tables: Ways to organize results of Boolean expressions.
Multiplying by 10, 100 & 1000 Maths Term 1.
Rounding Review Tens and Hundreds
Variables and Data Types
tape measure (for showing ratio) Pi book prize (for most pi digits)
Computer Science And he made a molten sea, ten cubits from the one brim to the other: it was round all about, and his height was five cubits: and.
Multiplying Decimals Lesson 13.2.
Dry run Fix Random Numbers
Truth tables: Ways to organize results of Boolean expressions.
Volume.
Objective Apply formulas for perimeter, area, and circumference.
Objective Apply formulas for perimeter, area, and circumference.
Understanding Number I can count forwards in the 100s.
Rational and Irrational Numbers
Graphing and Writing Equations of Circles
What do you do when you don’t know how to get started.
Computer Science 1 Online time for Graphics Program Random review
Happy Friday!!! Please take out some paper to take notes on today lesson. Be ready to begin class when the bell rings.
Computer Science 2 More Trees.
Computer Science 1 For..do loop Dry Run Take notes on the For loop
Going round in circles… Going round in circles…
Computer Science I: Get out your notes.
L.O.1 To be able to use known facts and place value to multiply and divide mentally.
Multiplying Decimals Lesson 1-7.
Dry Run Fix it Write a program
Counting to 100 Counting by ones
10/27/2016 Dry Run 2 Case Programs Fix it Second Case Program
Random Numbers while loop
Dry Run Fix it Write a program
Objective - To factor trinomials in the form,
Computer Science And he made a molten sea, ten cubits from the one brim to the other: it was round all about, and his height was five cubits: and.
Calculate the distance of this point from the origin
Presentation transcript:

Computer Science 1 3.14 And he made a molten sea, ten cubits from the one brim to the other: it was round all about, and his height was five cubits: and a line of thirty cubits did compass it about. (I Kings 7: 23) 950 BC

Dry run program sumthing; function sum (no : integer): integer; begin if (no = 1) then sum := 1 else sum:= no - sum (no - 1); end; var total : integer; total := sum(5); writeln(total); end. Dry run

PI Memorizers

How many digits of PI can you recite?

Today there are 3 PI themed options Describe each methods Give an example on how each works Online time to generate the code for one or more. At the end of class. A round bracelet to the person (team) that generates PI the most digits.

Write a program to approximate PI 1400 method (Madhana of Sangamagrama, and rediscovered by Leibniz in the 1600s) Use this method to estimate PI. What value do you get after 500 iterations, 1000, 10000, …? Push: How could you write a program to use this method to calculate PI to +/- 1/1000

Wallis Method (1655) Use this method to estimate PI. What value do you get after 500 iterations, 1000, 10000, …? Push: How could you write a program to use this method to calculate PI to +/- 1/1000

Random Circle Area Method Using a 100 pixel x100 pixel square with a circle inscribed with a 50 pixel radius. Generate random points (x, y) inside the square. ( 0 <=x <=100, 0<=y<=100). Count how many of these points are inside the circle and use this to estimate the value of PI. Try with 500 points, 1000 points, 10000 points … Push: Show graphically Push: Compare with Squares and Circles of different sizes to see if it makes a difference. (Dots in)/(total Dots) = (Circle Area)/(Total Area) = (PI*r2)/(2*r)2 = (PI*r2)/(4*r2) = PI/4 Multiplying both sides by 4 4*(Dots in)/(total Dots) = PI