0

I have some vectors such as :

a={{0}, {0}, {0}};
b={{1}, {1}, {1}};
c={{1}, {1}, {0}};

I wanted to product a by a with the result 1, also the product of b and b must be 1, but the product of c and b (c and a) must yield 0, and so on. As a matter of fact, the desire result is as Kronecker delta, but I do not know how I can define a function with this characterization.

However, Jens' answer how-to-define-an-orthogonal-basis-in-the-right-way could help, but it is different in details, because, in my calculation any vector does not have a specified name same as x, y, z. In my large calculation, any vector acts with their component in any iteration and they do not have a name in every time. For example in how-to-define-an-orthogonal-basis-in-the-right-way output you can write:

tensorExpand[Dot[x, y]]
0

tensorExpand[Dot[x, x]]
1

But directly:

tensorExpand[Dot[{{1}, {1}, {1}}, {{0}, {0}, {0}}]] 

can't manipulate.

Unbelievable
  • 4,847
  • 1
  • 20
  • 46

0 Answers0