Geometry. Floating point math Avoid floating point when you can –If you are given a fixed number of digits after the decimal, multiply & use integers.

Slides:



Advertisements
Similar presentations
1 Programming Interest Group Tutorial Eight Computational Geometry.
Advertisements

Trigonometry Right Angled Triangle. Hypotenuse [H]
Scholar Higher Mathematics Homework Session
How did you use math (Geometry) during your spring break?
8 – 6 The Sine and Cosine Ratios. Sine and Cosine Suppose you want to fine the legs, x and y, in a triangle. You can’t find these values using the tangent.
Equations of parallel, perpendicular lines and perpendicular bisectors
Higher Outcome 1 Higher Unit 1 Distance Formula The Midpoint Formula Gradients Collinearity Gradients of Perpendicular.
Using properties of Midsegments Suppose you are given only the three midpoints of the sides of a triangle. Is it possible to draw the original triangle?
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry Trigonometric functions Defined using right triangle  x y h.
Forces in Two Dimensions Trig Review: Sin, Cos, and Tan only work in a RIGHT TRIANGLE. SOHCAHTOA,an ancient Hawaiian word.
Trigonometry Chapters Theorem.
Trigonometry and Vectors 1.Trigonometry, triangle measure, from Greek. 2.Mathematics that deals with the sides and angles of triangles, and their relationships.
Starter a 6 c A 53° 84° 1.Use Law of Sines to calculate side c of the triangle. 2.Use the Law of Cosines to calculate side a of the triangle. 3.Now find.
Co-ordinate Geometry Learning Outcome: Calculate the distance between 2 points. Calculate the midpoint of a line segment.
8.3 Solving Right Triangles
Geometry and Trigonometry Math 5. Learning Objectives for Unit.
4.2a: Right Triangle Trigonometry p GSE’s Covered Primary: M(G&M)–10–2 Makes and defends conjectures, constructs geometric arguments, uses geometric.
Geometry Notes Lesson 5.3A – Trigonometry T.2.G.6 Use trigonometric ratios (sine, cosine, tangent) to determine lengths of sides and measures of angles.
Mathematical Methods A review and much much more! 1.
Higher Unit 1 Distance Formula The Midpoint Formula Gradients
1 Mathematical Methods A review and much much more!
Unit 1 – Physics Math Algebra, Geometry and Trig..
Forces in 2D Chapter Vectors Both magnitude (size) and direction Magnitude always positive Can’t have a negative speed But can have a negative.
Parallel, Perpendicular, Horizontal, and Vertical Lines
Warm- Up 1. Find the sine, cosine and tangent of  A. 2. Find x. 12 x 51° A.
Geometry 8-2 Trigonometric Ratios. Vocabulary  A trigonometric ratio is a ratio of two sides of a right triangle.
 To add vectors you place the base of the second vector on the tip of the first vector  You make a path out of the arrows like you’re drawing a treasure.
Right Triangles & Trigonometry OBJECTIVES: Using Geometric mean Pythagorean Theorem 45°- 45°- 90° and 30°-60°-90° rt. Δ’s trig in solving Δ’s.
$100 $200 $300 $400 $500 $200 $300 $400 $500 Geometric mean Pythagorean Thm. Special Right Triangles Law of Sines and Cosines Trigonometry Angles of.
Geometry 8-2 Trigonometric Ratios A trigonometric (trig) ratio is a ratio of two sides of a right triangle. Use trig ratios when the right triangle only.
The Unit Circle Part II (With Trig!!) MSpencer. Multiples of 90°, 0°, 0 360°, 2  180°,  90°, 270°,
TRIGONOMETRY BASIC TRIANGLE STUDY: RATIOS: -SINE -COSINE -TANGENT -ANGLES / SIDES SINE LAW: AREA OF A TRIANGLE: - GENERAL -TRIGONOMETRY -HERO’S.
COORDINATE GEOMETRY Summary. Distance between two points. In general, x1x1 x2x2 y1y1 y2y2 A(x 1,y 1 ) B(x 2,y 2 ) Length = x 2 – x 1 Length = y 2 – y.
Higher Outcome 1 Higher Unit 1 Distance Formula The Midpoint Formula Gradients Collinearity Gradients of Perpendicular Lines The Equation of a Straight.
Right Triangle Trigonometry Digital Lesson. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 The six trigonometric functions of a.
An angle is formed by two rays that have a common endpoint. One ray is called the initial side and the other the terminal side.
SCHOLAR Higher Mathematics Homework Session Thursday 22 nd October 6 - 7pm You will need a pencil, paper and a calculator for some of the activities.
BASIC GEOMETRY Section 8.2: Trigonometric Ratios
Geometry Warm-Up 2/6/12 The perimeter of a square is 20 inches. Find the length of a side on the square and the diagonal.
Right Triangle Geometry “for physics students”. Right Triangles Right triangles are triangles in which one of the interior angles is 90 otrianglesangles.
Warm-Up Write the sin, cos, and tan of angle A. A BC
4-57.  To find out how high Juanisha climbed up stairs, you need to know more about the relationship between the ratios of the sides of a right triangle.
Resolution and Composition of Vectors. Working with Vectors Mathematically Given a single vector, you may need to break it down into its x and y components.
Warm up 1. Name the three trig ratios you learned last time. 2.Write the three trig functions as ratios. 3.What is sinA? cosA? tanB? A B C 4 m 3 m 5 m.
Honors Geometry Unit 7-B review By Narayan Prabhakar and Luke Horsburgh.
A Quick Review ► We already know two methods for calculating unknown sides in triangles. ► We are now going to learn a 3 rd, that will also allow us to.
Coordinate Geometry. Coordinate Plane The coordinate plane is a basic concept for coordinate geometry. It describes a two-dimensional plane in terms of.
Exact Values of Sines, Cosines, and Tangents  None.
HIGHER MATHEMATICS Unit 1 - Outcome 1 The Straight Line.
April 21, 2017 The Law of Sines Topic List for Test
Oblique Triangles and Vectors
Drawing a sketch is always worth the time and effort involved
Geometry Honors Bellwork
Skills for December Rounds
Co-ordinate Geometry Learning Outcome:
Geometry Lesson 5.4.
Pythagorean Theorem and Distance
7.4 - The Primary Trigonometric Ratios
Geometry Special Right Triangles, sin(90), cos(90),tan(90) Incenter vs Centroid FA: BB- Ms. Johnson 2017/2018.
Going the other direction – from a picture to the equation
PYTHAGOREAN THEOREM VOCABULARY.
Trigonometry and Vectors
PYTHAGOREAN THEOREM VOCABULARY.
Notes 3.4 Perpendicular Lines.
Geometry Section 7.7.
Trigonometry for Angle
Introduction to Trigonometric Functions
Trigonometric Ratios Geometry.
Example A certain part of a hiking trail slopes upward at about a 5° angle. After traveling a horizontal distance of 100 feet along this part of the trail,
Warm-Up 1.) Using the point slope formula find the equation of a line with slope -2 , passing through the point (1, 3) 2.) Graph the line y = 3x + 4.
Presentation transcript:

Geometry

Floating point math Avoid floating point when you can –If you are given a fixed number of digits after the decimal, multiply & use integers Be careful when you can’t –Create EPSILON, “small enough” distance based on precision –Two numbers are equal if |x-y| < EPSILON

Lines Any 2 points determine a line –Four coordinates in 2d: x1,y1, x2, y2 –(y-y1)/(x-x1) = (y2-y1)/(x2-x1) Slope-intercept form y= mx + b (except vertical line) M is slope (tangent of line’s angle)

General Form: ax+by+c=0 Works for all 2d lines, vertical & horizontal Need canonical form –Set b=1 or b=0 (textbook) –Set a*a+b*b =1 (more typical in mathematics) –If a*a+b*b=1, then a=sin(theta), b=cos(theta)

Angle between lines Angle of line with horizontal: Atan(m) Angle between 2 lines (slope-int) atan(m1)-atan(m2) (or that) Or: atan((m2-m1)/(1+m1m2)) Angle between 2 lines (ax+by+c) Atan((a1b2-a2b1) / (a1a2+b1b2))

Intersection of Lines Directly (formula on p. 293) By search –Given 2 lines in “general position” –The intersection is the point at which y2 switches from being above y1 to below y1 –Binary search x values to find this point. Special cases: lines with same slope –Same line if they share a point –Parallel otherwise

Perpendicular Lines Slope m vs. slope -1/m Good for finding “closest point” Slope = m Slope = -1/m (right angle, 90 degrees) Point p Closest point on L1 is intersection with perp line through p

Voronoi Diagram Start with a set of points Compute the perpendicular bisectors of the line segments between the points These bisectors form the boundaries of regions around each point A test point in a point’s region is closer to that point than any other point in the set Models cell towers and wireless base stations.

Triangles 3 angles add up to 180 degrees Right triangle has one right angle –Pythagorean Theorem (a*a+b*b=c*c) –Trig: sin = a/c, cos=b/c (a is opposite), tan = sin/cos or a/b a b c Theta (sin is a/c)

General Triangle Laws Law of sines –a/sin A = b/sin B = c/sin C Law of cosines –a*a = b*b+c*c - 2bc cosA –(If A = 90 degrees, last term is 0)

Triangle Inequality If a, b and c are sides of a triangle, a+b > c If a+b=c, then the 3 vertices are collinear This is a useful test for whether 3 points are collinear: dist(p1,p2) + dist(p2,p3) = dist(p1,p3) Dist(p1,p2) = sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))

Area of Polygon Given the coordinates of any polygon, the area is computed by the formula Total=0; For(int v=0;v<N;v++) Total += (x[v]-x[v-1])*(y[v]+y[v-1]); Special case for triangles on page 297

Circles Circle is locus of all points equidistant (radius) from a single point (center) Area = pi * r*r Circumference = 2*pi*r Pi = (and many more digits) Tangent: line touches circle at one point (perpendicular to radius at that point) Intersections: 0, 1 or 2 of 2 circles

Triangulation Knowing distance of 3 points from a query point Construct 3 circles of appropriate radius These circles will (approximately) intersect in one point This point is the query point