Results 1 to 11 of 11

Thread: vector cross product

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004

    vector cross product

    Could you do a cross product on two vectors in which each vector contains more than 3 elements?
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  2. #2
    Lively Member
    Join Date
    Oct 2003
    Location
    Guildford, UK
    Posts
    91
    Yes, you can. Supposing you have two 3d vectors,

    (a1,a2,a3)
    (b1,b2,b3)

    The cross product is given by the determinant,

    Code:
    | i     j     k |
    | a1    a2    a3 |
    | b1    b2    b3 |
    In three spatial dimensions, any point can be described by a linear combination of the vectors i, j, and k, which are defined,

    i x j = k
    j x k = i
    k x i = j

    If in four dimensions you had an extra unit vector l and defined the four of them as,

    i x j = k
    j x k = l
    k x l = i
    l x i = j

    Then you could probably represent a cross product of the vectors,

    (a1,a2,a3,a4)
    (b1,b2,b3,b4)
    (c1,c2,c3,c4)

    By the determinant,

    Code:
    | i     j     k     l |
    | a1    a2    a3    a4 |
    | b1    b2    b3    b4 |
    | c1    c2    c3    c4 |
    By definition the 3d cross product returns a vector orthogonal to both the vectors it's applied to. Since the four unit dimension vectors we defined are mutually orthogonal, it is necessary to apply the 4d cross product to three vectors in order to find a vector orthogonal to all three.

    There you go I've just made all of that up. That's how I would imagine a 4d cross product working.

  3. #3
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    I've never done one in four, but I'll help you out with one in 3D.

    Let's say you have this:
    Code:
    | i  j  k  |
    | a  b  c  |
    | d  e  f  |
    then the product would be:
    i(bf-ec)-j(af-dc)+k(ae-db)
    Have I helped you? Please Rate my posts.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    So is there a defined way of handling the cross product of 4D vectors?
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Ok, I think I got it. The cross product of vectors is basically vector multiplication. So, I just have to multiply them as such:

    http://www.ma.umist.ac.uk/servicemat...torproduct.pdf

    Or is cross product something special?
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  6. #6
    New Member
    Join Date
    Jul 2004
    Posts
    11
    Um, probably silly question, but how do you get 4d vectors?

    (I just can't visualise it)

  7. #7
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    no-one can visualise 4 dimensions, but you can still calculate it in. you can calulate in 264 dimensions if you want.
    Have I helped you? Please Rate my posts.

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    I am trying to create a general Vector class (no, not the container type.) In order to do so, I need to know how to do a cross product for an n-dimension vector.

    I found something on vector multiplication, which is different from matrix multiplication. There is no real visualization involved. I am just trying to get the basic mathematical rules about vector multiplication.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  9. #9
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    well. I've never done it wit ha 4D vector. So I cant help, sorry.
    Have I helped you? Please Rate my posts.

  10. #10
    Fanatic Member
    Join Date
    Dec 2003
    Posts
    703
    For a 4-d (on N-d) cross product just extend the determinant as required.
    an ending

  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    So for vectors with dimensions larger than 3, we will need to do the cross product over several vectors?
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width