Wednesday, April 20, 2011

Pre-Calc: Vector Angle

You have two 2D vectors and you want the angle on the plane between them.

-- Vector Angle --
:Input "X1: ",A
:Input "Y1: ",B
:Input "X2: ",C
:Input "Y2: ",D
:Degree
:cos-1(((AC)+(BD))/((A2+B2)(C2+D2)))M
:Disp M

No comments:

Post a Comment