CS 456
Math exercises
- Consider the line passing through the points (3,4) and
(7,6).
- What is its equation?
- What is its slope?
- Where does it cross the y-axis? (its y-intercept)
- Where does it cross the x-axis? (its x-intercept)
- 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?
- Which of the following are true if and only if two lines
(infinite and distinct) are parallel?
- they meet at exactly one point
- they have the same slope
- they have the same y-intercept
- their dot product is zero
- What is the matrix product M x N of the following:
- Note that if
| M= |
|
, then, M2 = MxM = |
|
=I. |
- Then what would be the values of M3,
M4, M5 and M6
?
- 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).
- What is the special name of the matrix I that results from multiplying M x M?
- What is the primary and unique property of that matrix I?
- 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).
- What is the area of the triangle given by <path
d="M 0,0 4,3 3,6 z" /> ?
- What are the three interior angles of the triangle
specified by <path d="M 1,1 1,5 4,5 z" /> ?
- 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)") ?
- 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:
