| Author |
Comment/Response |
Eric Burling
|
07/21/04 3:40pm
A simple problem, I hope!
I want to compute the inner product of 2 complex vectors u and v in symbolic format, such that
u = {z1,z2} and v = {z3,z4}. I want to define the elements of each vectors as follows:-
z1 = a+Ib ; z2 = c+Id ; z3 = e+If and z4 = g+Ih
I tried :-
ComplexExpand[u.v] but obtained the answer
ae-bf+cg-dh+I(be+af+dg+ch)
which is incorrect since the answer should be
Conjugate[z1]*z3 + Conjugate[z2]*z4
Does Mathematica have a built-in function or an add-on package to cope with this.
URL: , |
|