Classification of triangles

Vergelijkbare documenten
FOR DUTCH STUDENTS! ENGLISH VERSION NEXT PAGE. Toets Inleiding Kansrekening 1 8 februari 2010

Country recognition. Assignment

ALGORITMIEK: answers exercise class 7

The first line of the input contains an integer $t \in \mathbb{n}$. This is followed by $t$ lines of text. This text consists of:

Calculator spelling. Assignment

The genesis of the game is unclear. Possibly, dominoes originates from China and the stones were brought here by Marco Polo, but this is uncertain.

Add the standing fingers to get the tens and multiply the closed fingers to get the units.

SAMPLE 11 = + 11 = + + Exploring Combinations of Ten + + = = + + = + = = + = = 11. Step Up. Step Ahead

After that, the digits are written after each other: first the row numbers, followed by the column numbers.

Ontpopping. ORGACOM Thuis in het Museum

My Inspiration I got my inspiration from a lamp that I already had made 2 years ago. The lamp is the you can see on the right.

Meetkunde en Lineaire Algebra

MyDHL+ Van Non-Corporate naar Corporate

CHROMA STANDAARDREEKS

Four-card problem. Input

Meetkunde en Lineaire Algebra

Genetic code. Assignment

04/11/2013. Sluitersnelheid: 1/50 sec = 0.02 sec. Frameduur= 2 x sluitersnelheid= 2/50 = 1/25 = 0.04 sec. Framerate= 1/0.

Intermax backup exclusion files

Meetkunde en Lineaire Algebra

Luister alsjeblieft naar een opname als je de vragen beantwoordt of speel de stukken zelf!

TECHNISCHE UNIVERSITEIT EINDHOVEN Faculteit Wiskunde en Informatica. Examination 2DL04 Friday 16 november 2007, hours.

z x 1 x 2 x 3 x 4 s 1 s 2 s 3 rij rij rij rij

L.Net s88sd16-n aansluitingen en programmering.

Introductie in flowcharts

The colour of a pixel in a bit map picture can be presented in different ways. For this assignment, we distinguish two categories:

FOR DUTCH STUDENTS! ENGLISH VERSION NEXT PAGE

SnowStorm Blok 4. : 9x6 inch.

LONDEN MET 21 GEVARIEERDE STADSWANDELINGEN 480 PAGINAS WAARDEVOLE INFORMATIE RUIM 300 FOTOS KAARTEN EN PLATTEGRONDEN

Het is geen open boek tentamen. Wel mag gebruik gemaakt worden van een A4- tje met eigen aantekeningen.

Huiswerkopgave Inleiding Modelleren Hoofdstuk 7

Daylight saving time. Assignment

8+ 60 MIN Alleen te spelen in combinatie met het RIFUGIO basisspel. Only to be played in combination with the RIFUGIO basicgame.

Pure Bending. A beam satisfying above given requirements are shown below: Why this surface is called neutral will be explained later in the lecture.

L.Net s88sd16-n aansluitingen en programmering.

Map showing countries shaded by their position in the Happy Planet Index (2006). The highestranked countries are bright green, the lowest are brown.

i(i + 1) = xy + y = x + 1, y(1) = 2.

Quality requirements concerning the packaging of oak lumber of Houthandel Wijers vof ( )

I.S.T.C. Intelligent Saving Temperature Controler

TECHNISCHE UNIVERSITEIT EINDHOVEN Faculteit Wiskunde en Informatica. Tentamen Calculus B (2WBB1) op maandag 28 januari 2013, 14:00 17:00 uur

(1) De hoofdfunctie van ons gezelschap is het aanbieden van onderwijs. (2) Ons gezelschap is er om kunsteducatie te verbeteren

LDA Topic Modeling. Informa5ekunde als hulpwetenschap. 9 maart 2015

Chess board distance $\max( x_0-x_1, y_0-y_1 )$

FOR DUTCH STUDENTS! ENGLISH VERSION NEXT PAGE

TOEGANG VOOR NL / ENTRANCE FOR DUTCH : lator=c&camp=24759

Onbetwist-Toetsen Calculus

De Samenhang tussen Dagelijkse Stress en Depressieve Symptomen en de Mediërende Invloed van Controle en Zelfwaardering

1a. We werken het geval voor het tandenpoetsen uit. De concepten zijn (we gebruiken Engelse termen en afkortingen):

FOR DUTCH STUDENTS! ENGLISH VERSION NEXT PAGE. Toets Inleiding Kansrekening 1 7 februari 2011

Take Home Assignment. Introduction to Modeling. Week 7.

Installatie van Windows 10 op laptops. Windows 10 installation on laptops

Engels op Niveau A2 Workshops Woordkennis 1

BRUGPAKKET 8: VLAKKE FIGUREN

Handleiding Installatie ADS

Exercise P672 Lightweight Structures. A.P.H.W. Habraken. Report

Calculus I, 20/11/2017

Chromosomal crossover

ANGSTSTOORNISSEN EN HYPOCHONDRIE: DIAGNOSTIEK EN BEHANDELING (DUTCH EDITION) FROM BOHN STAFLEU VAN LOGHUM

FOR DUTCH STUDENTS! ENGLISH VERSION NEXT PAGE

Preschool Kindergarten

Opgave 2 Geef een korte uitleg van elk van de volgende concepten: De Yield-to-Maturity of a coupon bond.

4 cos. Intermediate exam: Mechanics for MWT: 8TB00. February 25, 2014, 13:45-14:30. Code 8TB00, MWT bachelor. Biomedical Engineering

RECEPTEERKUNDE: PRODUCTZORG EN BEREIDING VAN GENEESMIDDELEN (DUTCH EDITION) FROM BOHN STAFLEU VAN LOGHUM

NMOZTMKUDLVDKECVLKBVESBKHWIDKPDF-WWUS Page File Size 9,952 KB 29 May, 2016

Meetkunde en Lineaire Algebra

28/10/2012. Onderwerpen: Scherpstelling - Focusering Sluitersnelheid en framerate. Sluitersnelheid en belichting

The mitochondrial genome has bases and codes for 37 genes: 13 polypeptides, 22 trnas and 2 ribosomal RNAs.

CTI SUITE TSP DETAILS

Reynolds number. Laminar and turbulent flow in a cigarette's smoke.

AE1103 Statics. 25 January h h. Answer sheets. Last name and initials:

B1 Woordkennis: Spelling

Het handboek van KDE Screen Ruler. Lauri Watts Vertaling van het handboek: Niels Reedijk Vertaler/Nalezer: Alexander S. Koning

VOORSTEL TOT STATUTENWIJZIGING UNIQURE NV. Voorgesteld wordt om de artikelen 7.7.1, 8.6.1, en te wijzigen als volgt: Toelichting:

AN URBAN PLAYGROUND AFSTUDEERPROJECT

OUTDOOR HD BULLET IP CAMERA PRODUCT MANUAL

Concept of Feedback. P.S. Gandhi Mechanical Engineering IIT Bombay

Cambridge Assessment International Education Cambridge International General Certificate of Secondary Education. Published

S e v e n P h o t o s f o r O A S E. K r i j n d e K o n i n g

TRYPTICH PROPOSED AMENDMENT TO THE ARTICLES OF ASSOCIATION ("AMENDMENT 2") ALTICE N.V.

Eye Feature Detection Towards Automatic Strabismus Screening

Lijnenspel. Remco van Groesen ( ) & Ellen Houbiers ( )

Esther Lee-Varisco Matt Zhang

Ae Table 1: Aircraft data. In horizontal steady flight, the equations of motion are L = W and T = D.

Settings for the C100BRS4 MAC Address Spoofing with cable Internet.

Handleiding Zuludesk Parent

The upside down Louisa tutorial by Dorothée: Noortjeprullemie.blogspot.be Written for Compagnie M.: m.com

OUTDOOR HD DOME IP CAMERA PRODUCT MANUAL GB - NL

General info on using shopping carts with Ingenico epayments

FOR DUTCH STUDENTS! ENGLISH VERSION NEXT PAGE. Toets Inleiding Kansrekening 1 22 februari 2013

Effecten van een op MBSR gebaseerde training van. hospicemedewerkers op burnout, compassionele vermoeidheid en

0515 DUTCH (FOREIGN LANGUAGE)

Activant Prophet 21. Prophet 21 Version 12.0 Upgrade Information

Om te kijken of x, y, z samen een driehoek specificeren hoeven we alleen nog maar de driehoeksongelijkheid te controleren: x, y, z moeten voldoen

Academisch schrijven Inleiding

Bin packing and scheduling

Registratie- en activeringsproces voor de Factuurstatus Service NL 1 Registration and activation process for the Invoice Status Service EN 10

Het beheren van mijn Tungsten Network Portal account NL 1 Manage my Tungsten Network Portal account EN 14

Werkblad Cabri Jr. Hoeken van een driehoek

3e Mirror meeting pren April :00 Session T, NVvA Symposium

Transcriptie:

Classification of triangles A triangle is a geometrical shape that is formed when 3 non-collinear points are joined. The joining line segments are the sides of the triangle. The angles in between the sides on the inside of the triangle are the internal angles. Triangles can be classified according to the length of their sides: Equilateral triangle: all sides are equal Isosceles triangle: at least 2 sides are equal in length Scalene triangle: all sides are unequal Types of triangles based on the length of their sides. Triangles can also be classified according to their internal angles: Acute triangle: all interior angles measuring less than 90 Right triangle: one of its interior angles measures 90 Obtuse triangle: one interior angle measuring more than 90 Types of triangles based on internal angles. Length of sides between two points The length $l$ of a side that joins the internal angles $(x_1, y_1)$ and $(x_2, y_2)$, can be calculated as $$ l = \sqrt{(x_1 - x_2)^2 + (y_1 - y_2)^2} $$ Internal angle formed by 2 sides The size of an internal angle $\gamma$ formed by two sides of a triangle can be calculated using the law of cosines $$cos(\gamma) = \frac{a^2+b^2-c^2}{2ab}$. $, $a$ and $b$ represent the length of the sides that form the internal angle $\gamma$, $c$ represents the length of the side

right across the internal angle $\gamma$. Law of cosines Comparing floating point numbers For this assignment you have to compare the length of the sides with the size of the angles. Take into consideration that these figures are represented by floating point numbers. When inserted in a computer memory, minor mistakes in rounding off may occur. It is possible that a variable angle representing a 90 angle, has an actual value of 90.00000001. Therefore, testing an angle as follows is a bad idea: if angle == 90: print('right angle') Instead, the condition can be reformulated by stating that the size of the corner has to be "in a close range" from 90. In the code fragment below, an angle may not deviate from 90 by more than 0.000001: if abs(angle - 90) < 1e-6: print('right angle') Watch this video containing further explanation about working with floating point numbers. Assignment Determine the name of the triangle formed by three non-collinear points, based both on its sides as well as on its internal angles. Input Six real numbers, each on a separate line. Every pair of consecutive numbers represents the $(x, y)$ co-ordinate for an internal angle of a triangle. You may presume that these internal angles are non-collinear. Output The name of the triangle that is formed by three points of which the co-ordinates are stated in the input. Use the te mp l a te Triangle classification: classification_sides classification_angles. Here classification_sides is the term that represents a triangle classified according to the length of its sides. classification_angles is the term that represents a triangle classified according to the size of its internal angles. Always give the most specific term that applies to the triangle.

Example Input: -5.018651714882998 5.273815977515895-4.1327268984230505 5.7376448463677665-4.596555767274922 6.623569662827715 Output: Triangle classification: isosceles right Een driehoek is een meetkundige figuur die ontstaat door drie punten die niet op een rechte lijn liggen met elkaar te verbinden. De verbindende lijnstukken worden de zijden van de driehoek genoemd. De hoeken tussen de zijden aan de binnenkant van een driehoek worden de binnenhoeken van de driehoek genoemd. Driehoeken kunnen ingedeeld worden op basis van de lengtes van hun zijden: gelijkzijdige driehoek: alle zijden zijn even lang gelijkbenige driehoek: minstens twee zijden zijn even lang ongelijkzijdige driehoek: alle zijden hebben een verschillende lengte Indeling van driehoeken op basis van de zijden. Driehoeken kunnen ook ingedeeld worden op basis van hun binnenhoeken: scherpe driehoek: alle hoeken zijn kleiner dan 90 rechthoekige driehoek: één van de hoeken is gelijk aan 90 stompe driehoek: één van de hoeken is groter dan 90 Indeling van driehoeken op basis van de binnenhoeken.

Lengte van zijde tussen twee punten De lengte $l$ van een zijde die de hoekpunten $(x_1, y_1)$ en $(x_2, y_2)$ verbindt, kan berekend worden als $$ l = \sqrt{(x_1 - x_2)^2 + (y_1 - y_2)^2} $$ Binnenhoek gevormd door twee zijden De grootte van de binnenhoek $\gamma$ gevormd door twee zijden van een driehoek kan berekend worden op basis van de cosinusregel $$cos(\gamma) = \frac{a^2+b^2-c^2}{2ab}$$ Hierbij zijn $a$ en $b$ de lengten van de zijden die de binnenhoek $\gamma$ vormen, en is $c$ de lengte van de zijde die tegenover de binnenhoek $\gamma$ staat. De cosinusregel Vergelijken van floating point getallen Bij deze opgave moet je de lengte van zijden en de grootte van hoeken vergelijken. Let daarbij op het feit dat deze waarden voorgesteld worden als floating point getallen, waarbij kleine afrondingsfouten optreden als ze voorgesteld worden in een computergeheugen. Het kan dus voorvallen dat een variabele hoek die een hoek van 90 voorstelt, eigenlijk als waarde 90.00000001 heeft. Daardoor is het geen goed idee om op de volgende manier te testen of dit een rechte hoek voorstelt: if hoek == 90: print('rechte hoek') In plaats daarvan kan de voorwaarde geherformuleerd worden door te stellen dat de grootte van de hoek "dicht genoeg" bij 90 moet liggen. In het volgende codefragment stellen we bijvoorbeeld dat de hoek niet meer dan 0.000001 mag afwijken van 90 : if abs(hoek - 90) < 1e-6: print('rechte hoek') Bekijk deze video waarin extra uitleg wordt gegeven bij het werken met floating point getallen. Opgave Bepaal de indeling van de driehoek die gevormd wordt door drie gegeven punten die niet op een rechte lijn liggen, zowel op basis van de zijden als op basis van de binnenhoeken. Invoer Zes reële getallen, elk op een afzonderlijke regel. Elk paar opeenvolgende getallen stelt de $(x,

y)$-coördinaat voor van een hoekpunt van een driehoek. Je mag ervan uitgaan dat deze hoekpunten niet op eenzelfde lijn liggen. Uitvoer Een omschrijving van de indeling van de driehoek die gevormd wordt door de drie punten waarvan de coördinaten in de invoer gegeven worden. Gebruik voor de omschrijving de template Driehoek classificatie: indeling_zijden indeling_hoeken, waarbij indeling_zijden de term is die de indeling van de driehoek op basis van de zijden aangeeft en indeling_hoeken de term is die de indeling van de driehoek op basis van de hoeken aangeeft. Gebruik telkens de meest specifieke term die van toepassing is op de driehoek. Voorbeeld Invoer: -5.018651714882998 5.273815977515895-4.1327268984230505 5.7376448463677665-4.596555767274922 6.623569662827715 Uitvoer: Driehoek classificatie: rechthoekige driehoek