CS 1025 01 - Week #7 (Oct 06-08)


Tuesday, October 6th



VIP: TURTLE TRIG Assignment is due on Tuesday, Oct 13th, 2015...

Where is Waldo? What is Waldo's heading? What is the xcor? What is the ycor? SHOW ALL OF YOUR WORK!

Study the many example problems carefully. SOH, CAH, TOA - Sine, Cosine, Tangent.


  1. VIP: TURTLE TRIG Assignment is due on Tuesday, Oct 13th, 2015...

    Where is Waldo? What is Waldo's heading? What is the xcor? What is the ycor? SHOW ALL OF YOUR WORK!

    Study the many example problems carefully. SOH, CAH, TOA - Sine, Cosine, Tangent.

    NetLOGO graphics draws the two legs of one of the two right triangles.


  2. Detailed solution to October 6th, 2015 12 turtles heading, xcor, ycor problem.
    VIP: Turtle Trigonometry problem with 12 turtles. Where is turtle with WHO number 2?
    SOLVED IN CLASS on 10/06/2015

    VIP: Twelve Turtles One Triangle: Trigonometry and Turtle Graphics - SOH, CAH, TOA.

    A right triangle has two legs and one hypotenuse for its 3 sides.
    
    The side opposite the right or the 90 degree angle is called the hypotenuse.
     
    For any of the other two angles or corners in a right triangle,
                                         one leg is adjacent to it, and
                                                 the other leg is opposite it.
     
    SOH - The sine of an angle involves two sides - the opposite side (leg) and the hypotenuse.
     
    CAH - The cosine of an angle involves two sides - the adjacent leg or side and 
                                                      the hypotenuse (its other adjacent side,
                                                      that side is the HYP of the right triangle, right?).
       
    TOA - The tangent of an angle involves two sides - the two legs of the triangle, 
                                                       its opposite leg and its adjacent leg.
    
               Opp                      Adj                       Opp
      Sine = -------  SOH    Cosine = -------  CAH    Tangent = -------  TOA
               Hyp                      Hyp                       Adj
    

  3. In class handout and exercise: Twenty Four Turtles.
    SOLVED IN CLASS on 10/06/2015

    Where is Waldo? What is the xcor? What is the ycor? SHOW ALL OF YOUR WORK! Done as an in-class exercise and example on 10/06/2015.

  4. In-class paper/pencil exercise: SHOW THE NetLOGO OUTPUT on the patches grid.

    Note: only the first page, #1, where the turtles went a total distance of 2 + 3 + 2 = 7 was done in class.

    Then each student typed in the NetLOGO code to see if their prediction of the output matches what the actual output was.

    Did the 8 turtles form a perfect circle?
    Where were your ODD turtles at? Where is turtle #1, WHO number 1, first ODD turtle?
    Did you draw the ODD turtles at about the right location?

    NOTE: VERY FEW STUDENTS GET THIS RIGHT UNTIL the 2nd half of the SEMESTER! So, no worries! :-)

    Each slice of pie was 45 degrees. 360 divided by 8 = 45. 8 turtles. cro 8.
    fd 2 with pen up, fd 3 with pen down, fd 2 with pen up again.

    Problem: Where is turtle #1, the first odd turtle?

    Type in and try out the code from the problem #1 of the old SHOW THE NetLOGO OUTPUT exercise.


  5. One leg is length 3, one leg is length 4, and the hypotenuse is length 5. Its a right triangle - classic 3 by 4 by 5 for the length of the sides.
       What is the square root of (3 squared plus 4 squared)?
       
        2      2       2       Why do odd turtles travel FD square root of 128?
       5   =  3   +   4        If EVEN turtles travel FD 8, 
                               and 
                                  if   2              2     2
                                      8  =  64  and  8  +  8  = 128 ...
    
       What is the square root of 9 + 16?  What is the square root of 25?
       
       The square root of 25 is 5, which is the length of the hypotenuse
           if one leg has side length 3 and the other leg has side length 4,
         then the hyp has a length of 5.
    
       Which side are you on?  Tri it out.  
    

  6. SOH, CAH, TOA - Sine, Cosine, Tangent. Opposite, Adjacent, Hypotenuse. Tri to get an angle on SOH, CAH, TOA.


  7. 02/18/note: Email from Wednesday, February 18th about legs, hypotenuses, SOH, CAH, TOA, angles, etc.

Thursday, October 8th


  1. VIP: In-class exercise followup: Feb19th2015_Sine_Cosine.pdf - the turtle turned right 70 degrees and then stepped forward 8.

    Where is the turtle? (xcor, ycor) pair is the where, the exact location in 2D space of the NetLOGO grid.
    Trigonometry and right triangles. Its a SINE of the times.

  2. Eight turtles forming a SQUARE instead of outlining a circle: Followup to Tuesday's class...

  3. Adobe After Effects: AE fourteen questions and two video tutorials. Trigonometry applied to simulating a bouncing ball.
...
Twenty Turtles Trig resources.