You are on page 1of 1

x1=15;

l1=12;
l2=10;
y1=5;
y2=5;
s=30;
x2=15;
H=((x2-s)^2+(y2)^2-(l1)^2-(l2)^2)/(2*l1*l2);
A=-2*x2*l1+2*s*l1;
B=-2*y2*l1;
C= (x2)^2+(y2)^2+(l1)^2-(l2)^2+(s)^2-2*x2*s;
N=(B)^2-(C)^2+(A)^2;
f1=(-B+sqrt(N))/(C-A);
f2=(-B-sqrt(N))/(C-A);
a=-2*x1*l1;
b=-2*y1*l1;
c=(x1)^2+(y1)^2+(l1)^2-(l2)^2;
D=(b)^2-(c)^2+(a)^2;
h=((x1)^2+(y1)^2-(l1)^2-(l2)^2)/(2*l1*l2);
t1=(-b+sqrt(D))/(c-a);
t2=(-b-sqrt(D))/(c-a);
teta1=2*atan(t2)*180/pi
teta2=acos(h)*180/pi
alfa1=2*atan(f2)*180/pi
alfa2=acos(H)*180/pi

You might also like