1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
clc
% Parametres :
w1 = 1;
w2 = 2;
a1 = 8;
a2 = 4;
b1 = 10;
b2 = 6;
% Resolution :
S = solve(sprintf('(%d-%d)*r1+(u-v)*(r1^2)+(%d-%d)*r2+(u-v)*(r2^2)+(u-v)*(r3^2)',a1,b1,a2,b2),...
sprintf('(%d-%d+ (u-v)*r1)^2+(%d-%d+(u-v)*r2)^2+((u-v)*r3)^2 - a^2',a1,b1,a2,b2),...
sprintf('(%d-%d)*r1+u*(r1^2)+(%d-%d)*r2+u*(r2^2)+u*(r3^2)',a1,w1,a2,w2),...
sprintf('(%d-%d+u*r1)^2+(%d-%d+u*r2)^2+(u*r3)^2-a^2',a1,w1,a2,w2),...
sprintf('(%d-%d)*r1+v*(r1^2)+(%d-%d)*r2+v*(r2^2)+v*(r3^2)',b1,w1,b2,w2),...
sprintf('(%d-%d+v*r1)^2+(%d-%d+v*r2)^2+(v*r3)^2-a^2',b1,w1,b2,w2))
%S.a
%S.r1
%S.r2
%S.r3
%S.u % Alpha
%S.v % Beta |
Partager