matlab中求解带字母的方程组
问题描述:
matlab中求解带字母的方程组
>> syms A a B b R x y L k c d
>> p=y-k*x-c;
>> q=(A-a)*(x-a)+(B-b)*(y-b)-R^2;
>> m=L/2/sqrt((A-x)^2+(B-y)^2)-sin(atan(abs((a-A)/(B-b)-k)/(1+(a-A)/(B-b)*k)));
>> n=(A-x+d/sqrt(1+k^2))^2+(B-y+d*k/sqrt(1+k^2))^2-L^2;
>> f=sqrt((A-x)^2+(B-y)^2)-d;
>> [A,B,x,y]=solve(p,q,m,n,f)
感觉matlab在运算,但几个小时都算不出来
答
Warning:Explicit solution could not be found.
> In solve at 81
In Untitled at 8
A =
[ empty sym ]
B =
[]
x =
[]
y =
[]