Is this mathematically correct?

This is a discussion on Is this mathematically correct? within the C++ Programming forums, part of the General Programming Boards category; Check out image....

  1. #1
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427

    Is this mathematically correct?

    Check out image.
    Attached Images Attached Images  
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  2. #2
    . Driveway's Avatar
    Join Date
    May 2002
    Posts
    469
    If variabkes a and b are 1, then yes

  3. #3
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    Basically I want to know how I would solve this.........(some 3d vector magnitude stuff).........
    Attached Images Attached Images  
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  4. #4
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    Is this code the same as.........

    |A|=sqrt(Ax^2+Ay^2+Az^2) ?


    /EDIT/
    Could I have written it this way?
    Last edited by incognito; 06-23-2002 at 08:56 PM.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  5. #5
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    I don't know what you were trying to do with the first slide.. but yeah, the magnitude of a vector is the squareroot of the sum of the squares of the components of the vector.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  6. #6
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    In the first one, I was just trying to make a point........So essentially just to make sure in the second image that I put is the same as this |A|=sqrt(Ax^2+Ay^2+Az^2)?


    /EDIT/ I am just trying to see how to work with subscripts and their meanings.
    Last edited by incognito; 06-23-2002 at 09:11 PM.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  7. #7
    Unregistered
    Guest
    Yeah but you know what? If it was higher math we could argue about it.

  8. #8
    Akilla
    Guest

    Ask me if it's math :)

    Well, Ax (A sub x) is in x direction..

    in your program, as long as Ax (AX or Ax) represents
    a magnitude in x direction, you can even name it
    as Akillax ... it's just naming.

    also, whenever you say Ax ^2 , it generally means (A sub x)^2
    [A sub x whole square]
    Squaring of x doesn't make sense as x (in this case) refers to a quantity along x axis.

    Mod A i.e.
    |A| = sqrt [(Qty along X)^2 + (Qty along y)^2 + (Qty along z)^2]

    So you have to square the magnitude (i.e. A) along x, y and z.

    in other words, You shouldn't square x, y and z but the different values of A along x, y and z axes.

    example:

    A = 7x+ 3y + 4z

    |A|= squarerootof (7^2 + 3^2 + 4^2)

    MY HOMEPAGE @ www.akilla.tk

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux for GNU/Linux is not correct?
    By password636 in forum Linux Programming
    Replies: 8
    Last Post: 03-31-2009, 09:30 PM
  2. Is this correct : passing strings?
    By socket in forum C Programming
    Replies: 15
    Last Post: 11-25-2008, 02:03 PM
  3. correct malloc use
    By s_siouris in forum C Programming
    Replies: 10
    Last Post: 05-28-2008, 11:49 PM
  4. Replies: 1
    Last Post: 05-26-2004, 01:58 AM
  5. Why I couldn't see the correct format of a file?
    By miketv in forum C Programming
    Replies: 2
    Last Post: 01-23-2002, 10:59 PM

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