08-23-2005 08:42 AM
08-23-2005 09:23 AM
08-23-2005 10:43 AM
LabVIEW, C'est LabVIEW
08-23-2005 10:56 AM
08-23-2005 11:49 AM
08-23-2005 12:13 PM
johnsold a écrit:
Jean-Pierre,
Thank you. I suspected that a closed form solution might be possible, but I did not spend very much time seeking it out.
I get a sign difference when I derive the result. Cos(a-b) = cos(a)*cos(b) + sin (a)*sin(b).
Then tan(A) = (Y1*cos(X0) - Y0*cos(X1))/(-Y1*sin(X0) + Y0*cos(X1))
Lynn
Yeah exactly the formula in my math table that I looked twice into before deriving....
And an other error it should be:
tan(A) = (Y1*cos(X0) - Y0*cos(X1))/(-Y1*sin(X0) + Y0*sin(X1))
CC: numerical solutions are for the lazy...
LabVIEW, C'est LabVIEW
08-23-2005 12:38 PM
08-23-2005 12:46 PM
OK, I'll join in. here is what I get:
Start with Y1*cos(X0-A) = Y0*cos(X1-A) and the well known derivation cos(a-b) = cos(a)*cos(b) + sin(a)*sin(b)
then upon expanding: Y1*[cos(X0)*cos(A) + sin(X0)*sin(A)] = Y0*[cos(X1)*cos(A) + sin(X1)*sin(A)]
then getting rid of [ ]: Y1*cos(X0)*cos(A) + Y1*sin(X0)*sin(A) = Y0*cos(X1)*cos(A) + Y0*sin(X1)*sin(A)
then divide by cos(A): Y1*cos(X0) + Y1*sin(X0)*tan(A) = Y0*cos(X1) + Y0*sin(X1)*tan(A)
rearrange terms: Y1*sin(X0)*tan(A) - Y0*sin(X1)*tan(A) = Y0*cos(X1) - Y1*cos(X0)
tan(A) is common: tan(A)*[Y1*sin(X0) - Y0*sin(X1)] = Y0*cos(X1) - Y1*cos(X0)
solve for tan(A): tan(A) = [Y0*cos(X1) - Y1*cos(X0)] / [Y1*sin(X0) - Y0*sin(X1)]
08-23-2005 12:55 PM
LabVIEW, C'est LabVIEW
08-23-2005 01:09 PM