Skip to main content
deleted 28 characters in body
Source Link
ZaMoC
  • 6.8k
  • 13
  • 32

general solution

normalVecs[vec_] := 
Cross[vec, ## & @@Module[{l #]= &Length@vec}, 
Cross[vec,##&@@#]&/@ 
Subsets[IdentityMatrix[Length@vec]Subsets[IdentityMatrix@l, {Length@vec l- 2}] // 
DeleteCases@Table[0, Length@vec]   l]]  


normalVecs[{1, 0, 0, 0, 0, 0}]    

{{0,0,0,0,0,1},{0,0,0,0,-1,0},{0,0,0,1,0,0},{0,0,-1,0,0,0},{0,1,0,0,0,0}}

general solution

normalVecs[vec_] := 
Cross[vec, ## & @@ #] & /@ 
Subsets[IdentityMatrix[Length@vec], {Length@vec - 2}] // 
DeleteCases@Table[0, Length@vec]     


normalVecs[{1, 0, 0, 0, 0, 0}]    

{{0,0,0,0,0,1},{0,0,0,0,-1,0},{0,0,0,1,0,0},{0,0,-1,0,0,0},{0,1,0,0,0,0}}

general solution

normalVecs[vec_] := Module[{l = Length@vec}, 
Cross[vec,##&@@#]&/@ Subsets[IdentityMatrix@l,{l-2}] //DeleteCases@Table[0,l]]  


normalVecs[{1, 0, 0, 0, 0, 0}]    

{{0,0,0,0,0,1},{0,0,0,0,-1,0},{0,0,0,1,0,0},{0,0,-1,0,0,0},{0,1,0,0,0,0}}

added 151 characters in body
Source Link
ZaMoC
  • 6.8k
  • 13
  • 32

how is this for 4D?general solution

Cross[{1,0,0,0}normalVecs[vec_] := 
Cross[vec,##&@@#]& ## & @@ #] & /@ Subsets[IdentityMatrix@4
Subsets[IdentityMatrix[Length@vec], {Length@vec - 2}] // DeleteCases@
DeleteCases@Table[0, Length@vec]     


normalVecs[{1, 0, 0, 0, 0, 0}]    

{{0, 00, 00, 10,0,1},  {0, 00,  0,0,-1, 00},  {0, 10, 00, 01,0,0},{0,0,-1,0,0,0},{0,1,0,0,0,0}}

how is this for 4D?

Cross[{1,0,0,0},##&@@#]&/@ Subsets[IdentityMatrix@4,{2}]// DeleteCases@{0,0,0,0}    

{{0, 0, 0, 1},  {0, 0,  -1, 0},  {0, 1, 0, 0}}

general solution

normalVecs[vec_] := 
Cross[vec, ## & @@ #] & /@ 
Subsets[IdentityMatrix[Length@vec], {Length@vec - 2}] // 
DeleteCases@Table[0, Length@vec]     


normalVecs[{1, 0, 0, 0, 0, 0}]    

{{0,0,0,0,0,1},{0,0,0,0,-1,0},{0,0,0,1,0,0},{0,0,-1,0,0,0},{0,1,0,0,0,0}}

Source Link
ZaMoC
  • 6.8k
  • 13
  • 32

how is this for 4D?

Cross[{1,0,0,0},##&@@#]&/@ Subsets[IdentityMatrix@4,{2}]// DeleteCases@{0,0,0,0}    

{{0, 0, 0, 1}, {0, 0, -1, 0}, {0, 1, 0, 0}}