<?xml version="1.0" encoding="ISO-8859-1" ?>
  <resource>
  <id>4863</id>
  <path>/www/nrich/html/content/id/4863/</path>
  <resourceTypeID>3</resourceTypeID>
  <last_published>2011-02-01T00:00:01</last_published>
  <indexXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
&lt;table border=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;mdo:image alt=&quot;triangle illusion&quot; height=&quot;260&quot; src=&quot;triangle-illusion.gif&quot; width=&quot;320&quot;&gt;&lt;/mdo:image&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;We shall use Logo to throw some mathematical light on the Muggles Magic problem. How can the same four pieces in the jigsaws on the left be placed as shown and leave an extra square hole in the lower arrangement? Go to the &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=782&amp;amp;part=index&quot;&gt;Muggles Magic Problem&lt;/a&gt; , move the pieces in the Muggles jigsaw interactivity, try to
explain the &amp;#39;magic&amp;#39; mathematically for yourself, and then read on.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;The Logo programs below show you very accurately the difference in the gradients of the longest sides of the two right angled traingles.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;&lt;a href=&quot;https://nrich.maths.org/8045&quot;&gt;First Forward into Logo&lt;/a&gt; is a twelve part introduction to Logo for beginners.&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;Copy the Logo programs you see below on the right, try them out and see what happens.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;If you work with the free MSWLogo you can simply copy and paste these programs into the program editor and the same will apply to some other versions of Logo. The lines in the programs starting with a semicolon (;) simply give commentary explaining the programs and they are not an essential part of the programs.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;p&gt;The line joining the point $(0,0)$ to the point $(x,y)$ has slope or gradient $y/x$.&lt;br&gt;&lt;/br&gt;
The larger the number $y/x$ the steeper the slope.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If $y/x=1$ then the angle of the slope is $45^\circ$.&lt;br&gt;&lt;/br&gt;
If &lt;span class=&quot;math&quot;&gt;y/x &amp;lt; 1&lt;/span&gt; then the angle of the slope is less than $45^\circ$.&lt;br&gt;&lt;/br&gt;
If $y/x &amp;gt; 1$ then the angle of the slope is greater than $45^\circ$.&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;
&lt;table border=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;br&gt;&lt;/br&gt;
Type the commands below into the Logo command line:&lt;br&gt;&lt;/br&gt;
SHOW ARCTAN 1&lt;br&gt;&lt;/br&gt;
SHOW ARCTAN 5/13&lt;br&gt;&lt;/br&gt;
SHOW [ARCTAN 13 5]&lt;br&gt;&lt;/br&gt;
The first should give $45^\circ$ and the&lt;br&gt;&lt;/br&gt;
second and third should both give the&lt;br&gt;&lt;/br&gt;
same angle (a little over $21.8^\circ$).&lt;br&gt;&lt;/br&gt;
If you have learnt some trigonometry&lt;br&gt;&lt;/br&gt;
you will recognise the function ARCTAN&lt;br&gt;&lt;/br&gt;
(often called $tan^{-1}$) which is used&lt;br&gt;&lt;/br&gt;
here to give the angle of the slope.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If you load the programs shown on the right and type:
&lt;div&gt;MUGGLES&lt;/div&gt;
&lt;div&gt;SLOPE1&lt;/div&gt;
&lt;div&gt;what happens?&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;Yes you get a right angled triangle&lt;/div&gt;
&lt;div&gt;with angle of slope ARCTAN 5/13,&lt;/div&gt;
&lt;div&gt;because the sides are 650 across and 250 up&lt;/div&gt;
&lt;div&gt;(the triangle with sides 13 and 5 enlarged).&lt;/div&gt;
&lt;div&gt;Can you see what the scale factor is?&lt;/div&gt;
&lt;div&gt;To draw the hypotenuse, the SLOPE1 program&lt;/div&gt;
&lt;div&gt;uses Pythagoras Theorem to work out the&lt;/div&gt;
&lt;div&gt;length and then multiplies it by the scale factor.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;The programs SLOPE2 and SLOPE3&lt;/div&gt;
&lt;div&gt;draw the hypotenuses of the two small triangles&lt;/div&gt;
&lt;div&gt;in the Muggles jigsaw.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;The angles in these triangles are shown by:&lt;/div&gt;
&lt;div&gt;SHOW ARCTAN 3/8&lt;/div&gt;
&lt;div&gt;SHOW ARC TAN 2/3&lt;/div&gt;
&lt;div&gt;and the angle in the large triangle is shown by:&lt;/div&gt;
&lt;div&gt;SHOW ARCTAN 5/13&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;The gradients of the sloping lines are&lt;/div&gt;
&lt;div&gt;0.375, 0.4 and 0.385 (to 3 decimal places).&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;The sequence of programs&lt;/div&gt;
&lt;div&gt;MUGGLES&lt;/div&gt;
&lt;div&gt;SLOPE1&lt;/div&gt;
&lt;div&gt;SLOPE2&lt;/div&gt;
&lt;div&gt;SLOPE3&lt;/div&gt;
&lt;div&gt;shows the sloping sides of the triangles as&lt;/div&gt;
&lt;div&gt;arranged as in the upper jigsaw&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;and MUGGLES&lt;/div&gt;
&lt;div&gt;SLOPE1&lt;/div&gt;
&lt;div&gt;SLOPE3&lt;/div&gt;
&lt;div&gt;SLOPE2&lt;/div&gt;
&lt;div&gt;shows the sloping sides of the triangles as&lt;/div&gt;
&lt;div&gt;arranged as in the lower jigsaw.&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;mdo:image alt=&quot;turtle&quot; height=&quot;37&quot; src=&quot;turtle.gif&quot; width=&quot;44&quot;&gt;&lt;/mdo:image&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;TO MUGGLES&lt;/div&gt;
&lt;div&gt;CS&lt;/div&gt;
&lt;div&gt;;SETPOS places the cursor using coordinates&lt;/div&gt;
&lt;div&gt;SETPOS[-200 0]&lt;/div&gt;
&lt;div&gt;RT 90&lt;/div&gt;
&lt;div&gt;FD 650&lt;/div&gt;
&lt;div&gt;LT 90&lt;/div&gt;
&lt;div&gt;FD 250&lt;/div&gt;
&lt;div&gt;END&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;TO SLOPE1&lt;/div&gt;
&lt;div&gt;;MAKE &amp;quot;A gives a value to the variable :A&lt;/div&gt;
&lt;div&gt;MAKE &amp;quot;A 13*13+5*5&lt;/div&gt;
&lt;div&gt;MAKE &amp;quot;B SQRT :A&lt;/div&gt;
&lt;div&gt;;note the use of Pythagoras Theorem here&lt;/div&gt;
&lt;div&gt;PU&lt;/div&gt;
&lt;div&gt;SETPOS[-200 0]&lt;/div&gt;
&lt;div&gt;PD&lt;/div&gt;
&lt;div&gt;RT 90&lt;/div&gt;
&lt;div&gt;;(ARCTAN x y) gives the angle whose tangent is y/x&lt;/div&gt;
&lt;div&gt;LT (ARCTAN 13 5)&lt;/div&gt;
&lt;div&gt;FD 50*:B&lt;/div&gt;
&lt;div&gt;;the turtle draws a line with slope y/x&lt;/div&gt;
&lt;div&gt;PU&lt;/div&gt;
&lt;div&gt;SETPOS[-200 0]&lt;/div&gt;
&lt;div&gt;PD&lt;/div&gt;
&lt;div&gt;RT (ARCTAN 13 5)&lt;/div&gt;
&lt;div&gt;;now the turtle points in the x direction&lt;/div&gt;
&lt;div&gt;END&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;TO SLOPE2&lt;/div&gt;
&lt;div&gt;MAKE &amp;quot;A 3*3+8*8&lt;/div&gt;
&lt;div&gt;MAKE &amp;quot;B SQRT :A&lt;/div&gt;
&lt;div&gt;LT (ARCTAN 8 3)&lt;/div&gt;
&lt;div&gt;FD 50*:B&lt;/div&gt;
&lt;div&gt;RT (ARCTAN 8 3)&lt;/div&gt;
&lt;div&gt;END&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;TO SLOPE3&lt;/div&gt;
&lt;div&gt;MAKE &amp;quot;A 2*2+5*5&lt;/div&gt;
&lt;div&gt;MAKE &amp;quot;B SQRT :A&lt;/div&gt;
&lt;div&gt;LT (ARCTAN 5 2)&lt;/div&gt;
&lt;div&gt;FD 50*:B&lt;/div&gt;
&lt;div&gt;RT (ARCTAN 5 2)&lt;/div&gt;
&lt;div&gt;END&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;The Logo drawings show you that, what at first sight look like two right-angled triangles with sides $13$ and $5$, are in fact two quadrilaterals. One is just half a unit in area smaller than the triangle and the other one is just half a unit in area bigger. The Logo program shows you how close these two quadrilaterals are to the right-angled triangle.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML/>
  <noteXML/>
  <clueXML/>
  <canonXML>&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
 
&lt;table border=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;mdo:image height=&quot;260&quot; width=&quot;320&quot; alt=&quot;triangle illusion&quot; src=&quot;triangle-illusion.gif&quot;&gt;&lt;/mdo:image&gt;&lt;/td&gt;
&lt;td&gt;
&lt;div&gt;We shall use Logo to throw some mathematical light on the
Muggles Magic problem. How can the same four pieces in the jigsaws
on the left be placed as shown and leave an extra square hole in
the lower arrangement? Try to explain this for yourself, then look
at the &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=782&amp;amp;part=index&quot;&gt;
Muggles Magic Problem&lt;/a&gt; and then read on.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;The Logo programs below show you very accurately the
difference in the gradients of the longest sides of the two right
angled traingles.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;&lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=4852&amp;amp;part=index&quot;&gt;
First Forward into Logo&lt;/a&gt; is a ten part introduction to Logo for
beginners.&lt;/div&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;Copy the Logo programs you see below on the right, try them
out and see what happens.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;If you work with the free MSWLogo you can simply copy and
paste these programs into the program editor and the same will
apply to some other versions of Logo. The lines in the programs
starting with a semicolon (;) simply give commentary explaining the
programs and they are not an essential part of the programs.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
The line joining the point $(0,0)$ to the point $(x,y)$ has slope
or gradient $y/x$.&lt;br&gt;&lt;/br&gt;
The larger the number $y/x$ the steeper the slope.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If $y/x=1$ then the angle of the slope is $45^\circ$.&lt;br&gt;&lt;/br&gt;
If &lt;span class=&quot;math&quot;&gt;y/x &amp;lt; 1&lt;/span&gt; then the angle of the slope
is less than $45^\circ$.&lt;br&gt;&lt;/br&gt;
If $y/x&amp;gt; 1$ then the angle of the slope is greater than
$45^\circ$.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
 
&lt;table border=&quot;0&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;br&gt;&lt;/br&gt;
Type the commands below into the Logo command line:&lt;br&gt;&lt;/br&gt;
SHOW ARCTAN 1&lt;br&gt;&lt;/br&gt;
SHOW ARCTAN 5/13&lt;br&gt;&lt;/br&gt;
SHOW [ARCTAN 13 5]&lt;br&gt;&lt;/br&gt;
The first should give $45^\circ$ and the&lt;br&gt;&lt;/br&gt;
second and third should both give the&lt;br&gt;&lt;/br&gt;
same angle (a little over $21.8^\circ$).&lt;br&gt;&lt;/br&gt;
If you have learnt some trigonometry&lt;br&gt;&lt;/br&gt;
you will recognise the function ARCTAN&lt;br&gt;&lt;/br&gt;
(often called $tan^{-1}$) which is used&lt;br&gt;&lt;/br&gt;
here to give the angle of the slope.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
If you load the programs shown on the right and type: 
&lt;div&gt;MUGGLES&lt;/div&gt;
&lt;div&gt;SLOPE1&lt;/div&gt;
&lt;div&gt;what happens?&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;Yes you get a right angled triangle&lt;/div&gt;
&lt;div&gt;with angle of slope ARCTAN 5/13,&lt;/div&gt;
&lt;div&gt;because the sides are 650 across and 250 up&lt;/div&gt;
&lt;div&gt;(the triangle with sides 13 and 5 enlarged).&lt;/div&gt;
&lt;div&gt;Can you see what the scale factor is?&lt;/div&gt;
&lt;div&gt;To draw the hypotenuse, the SLOPE1 program&lt;/div&gt;
&lt;div&gt;uses Pythagoras Theorem to work out the&lt;/div&gt;
&lt;div&gt;length and then multiplies it by the scale factor.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;The programs SLOPE2 and SLOPE3&lt;/div&gt;
&lt;div&gt;draw the hypotenuses of the two small triangles&lt;/div&gt;
&lt;div&gt;in the Muggles jigsaw.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;The angles in these triangles are shown by:&lt;/div&gt;
&lt;div&gt;SHOW ARCTAN 3/8&lt;/div&gt;
&lt;div&gt;SHOW ARC TAN 2/3&lt;/div&gt;
&lt;div&gt;and the angle in the large triangle is shown by:&lt;/div&gt;
&lt;div&gt;SHOW ARCTAN 5/13&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;The gradients of the sloping lines are&lt;/div&gt;
&lt;div&gt;0.375, 0.4 and 0.385 (to 3 decimal places).&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;The sequence of programs&lt;/div&gt;
&lt;div&gt;MUGGLES&lt;/div&gt;
&lt;div&gt;SLOPE1&lt;/div&gt;
&lt;div&gt;SLOPE2&lt;/div&gt;
&lt;div&gt;SLOPE3&lt;/div&gt;
&lt;div&gt;gives the triangles arranged as in the upper jigsaw&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;and MUGGLES&lt;/div&gt;
&lt;div&gt;SLOPE1&lt;/div&gt;
&lt;div&gt;SLOPE3&lt;/div&gt;
&lt;div&gt;SLOPE2&lt;/div&gt;
&lt;div&gt;gives the triangles arranged as in the lower jigsaw.&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;mdo:image height=&quot;37&quot; width=&quot;44&quot; alt=&quot;turtle&quot; src=&quot;turtle.gif&quot;&gt;&lt;/mdo:image&gt;&lt;/td&gt;
&lt;td&gt;
&lt;h3&gt;Figure 1&lt;/h3&gt;
&lt;pre&gt;
TO MUGGLES
CS
;SETPOS places the cursor using coordinates
SETPOS[-200 0]
RT 90
FD 650
LT 90
FD 250
END
&lt;/pre&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;

&lt;h3&gt;Figure 2&lt;/h3&gt;
&lt;pre&gt;
TO SLOPE1
;MAKE &amp;quot;A gives a value to the variable :A
MAKE &amp;quot;A 13*13+5*5
MAKE &amp;quot;B SQRT :A
;note the use of Pythagoras Theorem here
PU
SETPOS[-200 0]
PD
RT 90
;(ARCTAN x y) gives the angle whose tangent is y/x
LT (ARCTAN 13 5)
FD 50*:B
;the turtle draws a line with slope y/x
PU
SETPOS[-200 0]
PD
RT (ARCTAN 13 5)
;now the turtle points in the x direction
END
&lt;/pre&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;

&lt;h3&gt;Figure 3&lt;/h3&gt;
&lt;pre&gt;
TO SLOPE2
MAKE &amp;quot;A 3*3+8*8
MAKE &amp;quot;B SQRT :A
LT (ARCTAN 8 3)
FD 50*:B
RT (ARCTAN 8 3)
END
&lt;/pre&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;

&lt;h3&gt;Figure 4&lt;/h3&gt;
&lt;pre&gt;
TO SLOPE3
MAKE &amp;quot;A 2*2+5*5
MAKE &amp;quot;B SQRT :A
LT (ARCTAN 5 2)
FD 50*:B
RT (ARCTAN 5 2)
END
&lt;/pre&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;&lt;/br&gt;

&lt;div&gt;The Logo drawings show you that, what at first sight look like
two right angled triangles with sides 13 and 5, are in fact two
quadrilaterals. One is just half a unit in area smaller than the
triangle and one is just half a unit in area bigger. The Logo
program show you how close these two quadrilaterals are to the
right angled triangle.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</canonXML>
  <end_user_role>2</end_user_role>
  <difficulty>3</difficulty>
  <keystage1>0</keystage1>
  <keystage2>0</keystage2>
  <keystage3>1</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>Muggles, Logo and Gradients</title>
  <description>
Logo helps us to understand gradients of lines and why Muggles Magic is not magic but mathematics. See the problem Muggles magic.

</description>
  <spec_group>Information and Communications Technology
    <specifier>Logo</specifier>
  </spec_group>
  <spec_group>Trigonometry
    <specifier>Tangent</specifier>
  </spec_group>
  <spec_group>Sequences, Functions and Graphs
    <specifier>Gradients</specifier>
  </spec_group>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Practical Activity</specifier>
  </spec_group>
</resource>