nerdamer icon indicating copy to clipboard operation
nerdamer copied to clipboard

7-dimensional cross products

Open Happypig375 opened this issue 6 years ago • 3 comments

Right now, the cross function returns 0 for all non-three-dimensional vectors. The cross product is defined for 0-dimensional vectors (returns the zero vector), 1-dimensional vectors (returns the zero vector), 3-dimensional vectors (returns a 3-dimensional vector) and 7-dimensional vectors (returns a 7-dimensional vector). The 7-dimensional cross product is missing.

Happypig375 avatar Nov 07 '17 13:11 Happypig375

Any examples for this one?

jiggzson avatar Nov 23 '17 03:11 jiggzson

@Happypig375 Suggestions? Examples? Anything?

jiggzson avatar Nov 29 '17 21:11 jiggzson

Ref: https://en.wikipedia.org/wiki/Seven-dimensional_cross_product

  1. Set an setting for the basis vector (product of [1, 0, 0, 0, 0, 0, 0] and [0, 1, 0, 0, 0, 0, 0, 0] Something like a setting called BASIS_VECTOR, like [0, 0, 1, 0, 0, 0, 0]
  2. Generate multiplication table

Now if BASIS_VECTOR is [0, 0, 1, 0, 0, 0, 0], cross([0, 1, 0, 0, 0, 0, 0],[0, 0, 0, 0, 0, 0, 1]) => [0, 0, 0, 0, -1, 0, 0]

Happypig375 avatar Nov 30 '17 02:11 Happypig375