Vectors, Again

This is a discussion on Vectors, Again within the A Brief History of Cprogramming.com forums, part of the Community Boards category; A vector has both magnitude and direction wheras a scalar only magnitude. If you have given -a, where a is ...

  1. #1
    Set Apart -- jrahhali's Avatar
    Join Date
    Nov 2002
    Posts
    256

    Vectors, Again

    A vector has both magnitude and direction wheras a scalar only magnitude. If you have given -a, where a is a real number, it is a scalar because it has no direction, just magnitude. However if you deine direction as follows:

    - <-----------> +

    so that a

    --------> vector is possitive and and a
    <-------- vector is negative

    what then would you classify -a? a vector or scalar?
    Clear the mines from our Shazbot!
    Get the enemy Shazbot!

  2. #2

    Join Date
    May 2005
    Posts
    1,041
    any two vectors along the same geometric axis are considered 'in the same direction'...the vectors you have drawn form one geometric axis...however, there is a disctinction between parallel and anti parallel...parallel means you get one vector by multiplying another vector by a positive scalar...anti parallel means you get one vector by multiplying another vector by a negative scalar...but they're still both technically part of the same geometric axis.
    I'm not immature, I'm refined in the opposite direction.

  3. #3
    Fear the Reaper...
    Join Date
    Aug 2005
    Location
    Toronto, Ontario, Canada
    Posts
    625
    http://mathworld.wolfram.com/Vector.html

    My guess is that these things you define are vectors in R, I guess. Although there's very little distinction between these 1-dimensional vectors and the ordinary real number system...
    Teacher: "You connect with Internet Explorer, but what is your browser? You know, Yahoo, Webcrawler...?" It's great to see the educational system moving in the right direction

  4. #4
    Set Apart -- jrahhali's Avatar
    Join Date
    Nov 2002
    Posts
    256
    Well, thanks for the read Happy_Reaper, it was good review. And to BobMcGee123; I never knew what anti-parallel meant.

    >>what then would you classify -a? a vector or scalar?
    However, I can't seem to to pick out the subliminal answer you guys have given me.
    Last edited by jrahhali; 12-07-2005 at 03:55 PM.
    Clear the mines from our Shazbot!
    Get the enemy Shazbot!

  5. #5

    Join Date
    May 2005
    Posts
    1,041
    -a is a scalar that isn't useful in the context of vectors. You are incorrectly associating two ideas.

    In the context of vectors, your assertion was correct that the scalar is only magnitude, whereas a vector has both magnitude and direction.

    Subsequently, you are asking a question that doesn't make any sense. '-a' is, *strictly speaking* just a scalar, as you correctly mentioned, but when you try applying it to vectors it gets a little fuzzy.

    1 - This is vector P
    ---------->

    2 - This is vector P * 2
    -------------------->


    3 - This is the negative of vector P
    <----------

    4 - This is the negative of vector P, * 2
    <--------------------

    So far, I've broken this down into ideas that make sense. It is mathematically *correct* to say the vector in number 4 is just the vector in number 1 multiplied by negative 2, but intuitively that doesn't make any sense. Rather, it is only accepted to multiply a vector by a negative number when it's negative 1, and even then that's just equivalent to a 180 degree rotation.

    The kicker here, as I mentioned above, is that a vector and it's 'anti-parallel' (or, the vector you get when multiplying each component by negative 1) still lay on the same geometric axis

    This is a game of definitions. Once you see the ideas it's really not hard to grasp.
    Last edited by BobMcGee123; 12-07-2005 at 07:03 PM.
    I'm not immature, I'm refined in the opposite direction.

  6. #6
    Set Apart -- jrahhali's Avatar
    Join Date
    Nov 2002
    Posts
    256
    Actually, this morning, during my first period calculus class, it all came together! i feel so free! i wen't into physics and was adding two vectors, and my goodness! what a difference a comfort of a gut level understanding has on you!
    Thanks Bob, for your input.
    Clear the mines from our Shazbot!
    Get the enemy Shazbot!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Vectors
    By naseerhaider in forum C++ Programming
    Replies: 11
    Last Post: 05-09-2008, 08:21 AM
  2. How can i made vectors measuring program in DevC++
    By flame82 in forum C Programming
    Replies: 1
    Last Post: 05-07-2008, 02:05 PM
  3. How properly get data out of vectors of templates?
    By 6tr6tr in forum C++ Programming
    Replies: 4
    Last Post: 04-15-2008, 10:35 AM
  4. How to use Vector's in C++ !?!
    By IndioDoido in forum C++ Programming
    Replies: 3
    Last Post: 10-14-2007, 11:13 AM
  5. Points, vectors, matrices
    By subnet_rx in forum Game Programming
    Replies: 17
    Last Post: 01-11-2002, 01:29 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21