CS 456
Math exercises

  1. Consider the line passing through the points (3,4) and (7,6).
    1. What is its equation?
    2. What is its slope?
    3. Where does it cross the y-axis? (its y-intercept)
    4. Where does it cross the x-axis? (its x-intercept)
  2. Where do the two SVG lines given by <line x1="-4" y1="4" x2="7" y2="-1" /> and <line x1="-3" y1="0" x2="7" y2="6" /> meet?
  3. Which of the following are true if and only if two lines (infinite and distinct) are parallel?
    1. they meet at exactly one point
    2. they have the same slope
    3. they have the same y-intercept
    4. their dot product is zero
  4. What is the matrix product M x N of the following:
    M =
    1 2
    3 4
    and N =
    1 -1
    2 -2

  5. Note that if  
    M=
    2 -1
    3 -2
    , then, M2 = MxM = 
    1 0
    0 1
    =I.
    1. Then what would be the values of M3, M4, M5 and M6 ?
    2. Find another 2x2 matrix, J, distinct from M, such that J2 = M2 . More points if the one you find is not the same as other students in the class (id est, working independently is a good idea).
    3. What is the special name of the matrix I that results from multiplying M x M?
    4. What is the primary and unique property of that matrix I?
  6. Find a 2 x 2 matrix Q (other than I) for which Q x Q = Q.More points if the one you find is not the same as other students in the class (id est, working independently is a good idea).
  7. What is the area of the triangle given by <path d="M 0,0 4,3 3,6 z" /> ?
  8. What are the three interior angles of the triangle specified by <path d="M 1,1 1,5 4,5 z" /> ?
  9. If T=document.getElementById("Triangle"), where the triangle is <path id="Triangle" d="M 1,1 1,5 4,5 z" /> then where will its vertices be (i.e, what will its coordinates be) following the command T.setAttribute("transform","translate(-10,-10) rotate(30) scale(2)") ?
  10. Start with the triangle drawn initially by opening the page at http://srufaculty.sru.edu/david.dailey/cs456/MTransform.html and immediately clicking "build".
    Document a sequence of transforms (scaling, translation, rotation, and arbitrary matrix transforms) which eventually moves the initial triangle so that it ends up in the lower right corner of the SVG with two of its edges nestled into, and parallel with the edges of that bottom corner, thusly:
    transformed triangle