- UID
- 6238
- 积分
- 291
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-6-9
- 最后登录
- 1970-1-1
|
发表于 2020-2-4 10:05:27
|
显示全部楼层
%用MATLAB可以求解
A=acos((ab^2+ac^2-bc^2)/(2*ab*ac));
A1=acos((ab^2+pa^2-pb^2)/(2*ab*pa));
pc=(ac^2+pa^2-2*ac*pa*cos(A-A1))^(1/2);
d1=pa+bc;
d2=pb+ac;
d3=pc+ab;
f1=d1-d2;
f2=d1-d3;
[pa,pb]=solve(f1,f2,'pa','pb');
>> pa
pa =
(((ab + ac + bc)*(ab + ac - bc)^3*(ab - ac + bc)^3*(ac - ab + bc)^3)^(1/2) + ab*ac^4 + ab^4*ac - 3*ab*bc^4 + 6*ab^4*bc - 3*ac*bc^4 + 6*ac^4*bc - 3*ab^5 - 3*ac^5 + 2*bc^5 + 2*ab^2*ac^3 + 2*ab^3*ac^2 - 2*ab^3*bc^2 - 2*ac^3*bc^2 + 2*ab*ac^2*bc^2 + 2*ab^2*ac*bc^2 - 4*ab^2*ac^2*bc + 4*ab*ac*bc^3 - 4*ab*ac^3*bc - 4*ab^3*ac*bc)/(- 5*ab^4 + 4*ab^3*ac + 4*ab^3*bc + 2*ab^2*ac^2 - 4*ab^2*ac*bc + 2*ab^2*bc^2 + 4*ab*ac^3 - 4*ab*ac^2*bc - 4*ab*ac*bc^2 + 4*ab*bc^3 - 5*ac^4 + 4*ac^3*bc + 2*ac^2*bc^2 + 4*ac*bc^3 - 5*bc^4)
-(((ab + ac + bc)*(ab + ac - bc)^3*(ab - ac + bc)^3*(ac - ab + bc)^3)^(1/2) - ab*ac^4 - ab^4*ac + 3*ab*bc^4 - 6*ab^4*bc + 3*ac*bc^4 - 6*ac^4*bc + 3*ab^5 + 3*ac^5 - 2*bc^5 - 2*ab^2*ac^3 - 2*ab^3*ac^2 + 2*ab^3*bc^2 + 2*ac^3*bc^2 - 2*ab*ac^2*bc^2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