Monday, January 4, 2010

Vectors and matrices

My Research is found at: http://www.devmaster.net/wiki/Vectors_and_matrices

This research explains how to use matrices in 3-dimensional space and that could be explained by explaining vectors that we already started earlier today in class, it shows us how to add or subtract two vectors which is just like ordinary numbers, and how to multiply a vector product by a scalar.

Here are two examples how to add or subtract two vectors.
  • You can add two vectors by adding their coordinates. Geometrically, thinking of vectors as arrows, this corresponds to taking the tail of one arrow and putting it at the head of the other arrow. So if the vector a points from P to Q, and b points from Q to R, then the combined vector a + b points from P to R.
Image:vector_add.gif
  • You can also subtract two vectors, by subtracting their coordinates. Geometrically, this corresponds to moving both vectors so that they start at the same point, and drawing the vector that connects their end points. So if a points from P to Q, and b points from P to R, then b - a points from Q to R.
Image:vector_subtract.gif
What did i learn:

i learned how to use the matrix library in the bottom of the article, that i could use in my C++ courses.

Jose

3 comments:

  1. Jose,

    Very nice post! Thanks! i like at the end when you asked the question: "What did I learn?"

    BUT please, include the link where you got the material and your full name.

    Thanks, Zeina

    ReplyDelete
  2. it's amazing to know that matrices can be used in geomtry and vectors, and in jose's comment he is saying that can be used in c++ corses that talks about programming!!!
    i'm thinking to make a petition and send it to the minister of education to make " linear algebra" a corse in high school..don't u agree dr. zeina??

    ReplyDelete
  3. it's an excellent job...I like the relation between the geometry and matrices.

    ReplyDelete