LING 408/508: Programming for Linguists Lecture 25 December 2 nd.

Slides:



Advertisements
Similar presentations
IS660Z Programming Games Using Visual Basic Overview of Cannonball.
Advertisements

Kinematics in Two Dimensions
Projectile Motion Chapter 3.
Department of Physics and Applied Physics , F2010, Lecture 5 Physics I LECTURE 5 9/20/10.
Projectile Motion Neglecting air resistance, what happens when you throw a ball up from the back of a moving truck? Front? Behind? In?
Today in Precalculus Go over homework Notes: Simulating Projectile Motion Day 2 Homework.
1 Projectile Motion. 2 Projectile An object that moves through the air only under the influence of gravity after an initial thrust For simplicity, we’ll.
Section 2 Extra Questions
Lesson Thread I Full Projectile Motion 12/1/20131Intellectual Property of Mr. Gary.
Projectile Motion. 2 components of all projectile motion: Horizontal component (vx) is constant. Vertical component (vy) is affected by gravity.
Projectile Motion And Centripetal acceleration
Chapter Assessment Questions
Motion in 2-Dimensions. Projectile Motion A projectile is given an initial force and is then (assuming no air resistance) is only acted on by gravity.
Projectiles in 2-D - x and y-components are perpendicular and therefore totally independent. The only value that can ever be used on both sides is time.
Velocity and Acceleration. Definitions of Velocity and Acceleration.
Chapter 10 Classes. Review of basic OOP concepts  Objects: comprised of associated DATA and ACTIONS (methods) which manipulate that data.  Instance:
Projectile Motion Neglecting air resistance, what happens when you throw a ball up from the back of a moving truck? Front? Behind? In? GBS Physics Demo.
Projectile Motion Physics 12. Motion in 2D  We are now going to investigate projectile motion where an object is free to move in both the x and y direction.
Projectile Motion Projectiles launched at an angle.
Objectives: Analyze the motion of an object in free fall. Solve two-dimensional problems. Calculate the range of a projectile.
Usage of PhET Simulations. Problem Teaching Projectile Motion to High School Juniors and Seniors on a Trig Based Level.
2-D Examples Questions on Homework
Solving Inequalities Algebraically Section P.6 – the last section of the chapter!!!
PHYS 20 LESSONS Unit 2: 2-D Kinematics Projectiles Lesson 5: 2-D Projectiles.
Projectiles (2D) A projectile is any object that is in a state of freefall, or in other words an object that is only acted upon by the force of gravity.
Goal: To projectile motions Objectives: 1)To understand freefall motions in 1 D 2)To understand freefall motions in 2D 3)To understand air drag and terminal.
Regents Physics Projectile Motion.
Projectile Motion Practice Problems #1:  A ball is fired from a launcher with an initial velocity of 20.0 m·s -1 at an angle of 30.0° to the horizontal.
Motion in Two Dimensions Chapter 6. Motion in Two Dimensions  In this chapter we’ll use what we learned about resolving vectors into their x- and y-components.
Vectors Review. 1) Which of the following projectiles would reach the highest height? 25 40° 29 30° 40 25°
Quadratics Review y = x 2. Quadratics Review This graph opens upwards y = x 2.
Motion in Two Dimensions Chapter 7.2 Projectile Motion What is the path of a projectile as it moves through the air? Parabolic? Straight up and down?
LING 408/508: Programming for Linguists Lecture 27 December 9 th.
Acceleration due to Gravity A special case study of uniform acceleration.
IB Physics 11 Mechanics 2.1 Projectiles 1 Mr. Jean.
2D Projectile Practice #1 If a golf ball is launched at an angle of 35 ○ with a speed of 40 m/s, 1.how long will it take to reach its highest point? 2.How.
6.2 General projectile motion
(Constant acceleration)
Motion in Two Dimensions EQ: What is a projectile?
A ball is rolling along a flat, level desk. The speed of the ball is 0
Projectile Review.
Projectile Motion.
9.8: Modeling Motion Using Parametric Equations
Equations of Kinematics in One Dimension
y = B t - 1, x = t - 9 are the parametric equations of the curve
Aim: How do we solve complicated projectile motion problems?
9-4 Quadratic Equations and Projectiles
Bellringer What is the difference between the words vertical and horizontal? What does the word projectile mean? How is one dimensional (1D), two dimensional.
Vertical Motion Problems
Projectile Motion.
Motion in Two Dimensions EQ: What is a projectile?
Two Dimensional Motion
Next we’ll talk about what this all has to do with…
Projectile motion Chapter 3 part 2
Chapter 3 problems : Projectile
Chapter 3 Jeopardy Review
Energy, Work & Power Energy Problems Day #1.
Frog What angle is the frog jumping at? Why does this make sense?
Projectiles Launched at an Angle
Aim: How do we solve complicated projectile motion problems?
Projectile Motion Thank you Physics Classroom:
y = C t - 1, x = t - 6 are the parametric equations of the curve
9.8: Modeling Motion Using Parametric Equations
What is Projectile Motion?
Projectile Motion Chapter
Projectiles A projectile is any object that, once projected, continues in motion by its own inertia and is influenced only by the downward force of gravity.
Projectile motion.
Motion in Two Dimensions
Software Engineering Lecture #28
PROJECTILE MOTION.
Presentation transcript:

LING 408/508: Programming for Linguists Lecture 25 December 2 nd

Last Time Monte Carlo Simulation Player A has an unfair advantage!

100,000 games

1,000,000 games

rball2.py Let's make it fair:

rball2.py Let's make it fair: swap serves

100,000 games

1,000,000 games

Chapter 10: Defining Classes

Chapter 10: MSDie Multi-Sided Die: self is just a conventional name for the implicit 1 st argument to all methods inside the class: could call it anything …

Chapter 10: MSDie From last lecture: – library module random

Chapter 10: Projectile Cannonball example: – how far does a cannonball fly? – parameters: launch angle height above ground initial velocity – gravity: 9.8 ms -2 – (without calculus) simulation: time interval

Chapter 10: Projectile

Object-oriented style: – assume a Projectile class: method update()

Documentation Triple quoted documentation strings – can span multiple lines help(module) help(module.method) print module.method.__doc__

Documentation

Chapter 10: Projectile

projectile2.py sys.argv list of command line arguments sys.exit(1) quit with exit code 1