Skip to main content
1-Visitor
November 27, 2014
Solved

circular loop

  • November 27, 2014
  • 3 replies
  • 1910 views

hi

Good day.

I have 3 vectors, say L1, L2, L3. And now I want to get results for cross products of all possible combinations with two vectors (which is acctully L1xL2, L2xL3, L3xL1). How can I get it with programming or in a easy way avoiding making three formula seperately for three results. Is there any function which can do this circular loop or other easy ways.

Best Regards

Jahangir

Best answer by Fred_Kohlhepp

A starting point--

3 replies

23-Emerald I
November 27, 2014

A starting point--

jhossain1-VisitorAuthor
1-Visitor
November 28, 2014

Thanks Fred

25-Diamond I
November 27, 2014

Jahangir Hossain wrote:

hi

Good day.

I have 3 vectors, say L1, L2, L3. And now I want to get results for cross products of all possible combinations with two vectors (which is acctully L1xL2, L2xL3, L3xL1). How can I get it with programming or in a easy way avoiding making three formula seperately for three results. Is there any function which can do this circular loop or other easy ways.

Best Regards

Jahangir

Sure you can do it using Prime's programming facility, but in my opinion this would not be worth the effort. The direct way would be the easiest and most elegant one and it depends upon your needs in which way the result should be presented. Either a nested vector or a matrix:

1.png

If you intend to make the number of vectors variable and apply the routine to a larger number of vectors and not just three, a programming approch is needed. Again depends on your preference and need which dataformat for input and for output you'd like to chose. Here are some ways to do it.

2.png

3.png

jhossain1-VisitorAuthor
1-Visitor
November 28, 2014

Thanks Werner Exinger