Giuseppe <caesar_539@hotmail.it> wrote in message <711823938.11516.1296251189039.JavaMail.root@gallium.mathforum.org>...
> I tried the code acos(dot (a, b). / (dot (a, A) * dot(b,b))) but I do not have the exact result I should have 138° but I have 1.5200, then 180 * 1:52 / pi = 87° ..
> How Could I do?
> if you want i can send you the 2 array!
> thanks
Good Morning Guiseppe I also tried the above equation and got similiar results when I google for phase difference this solution comes up time and time again.
I think you want to use
acos(dot(a,b)/(norm(a)*norm(b)))
--Marc
I just stated to work on this issue if I find out that I am incorrect I will eat humble pie and repost a better solution
> I tried the code acos(dot (a, b). / (dot (a, A) * dot(b,b))) but I do not have the exact result I should have 138° but I have 1.5200, then 180 * 1:52 / pi = 87° ..
> How Could I do?
> if you want i can send you the 2 array!
> thanks
Good Morning Guiseppe I also tried the above equation and got similiar results when I google for phase difference this solution comes up time and time again.
I think you want to use
acos(dot(a,b)/(norm(a)*norm(b)))
--Marc
I just stated to work on this issue if I find out that I am incorrect I will eat humble pie and repost a better solution