- 注册时间
- 2008-11-26
- 最后登录
- 1970-1-1
- 威望
- 星
- 金币
- 枚
- 贡献
- 分
- 经验
- 点
- 鲜花
- 朵
- 魅力
- 点
- 上传
- 次
- 下载
- 次
- 积分
- 149507
- 在线时间
- 小时
|
楼主 |
发表于 2021-6-7 12:33:22
|
显示全部楼层
- Clear["Global`*"];(*mathematica11.2,win7(64bit)Clear all variables*)
- (*假设D(0,0),B(8,0)建立坐标系*)
- kk=(2*k)/(1-k^2)(*直线BC倾角的两倍*)
- k1=k (*直线BC的斜率*)
- k2=-kk (*直线AB的斜率*)
- k3=-(2*kk/(1-kk^2))//FullSimplify (*直线AC的斜率*)
- (*定义三条直线*)
- f1[x_,y_]:=k1*(x-8)-y (*直线BC的方程*)
- f2[x_,y_]:=k2*(x-8)-y (*直线AB的方程*)
- f3[x_,y_]:=k3*x+b3-y (*直线AC的方程*)
- ans=Solve[{
- f2[xa,ya]==0,(*A(xa,ya)在直线AB上*)
- f3[xa,ya]==0,(*A(xa,ya)在直线AC上*)
- f3[0,yc]==0,(*C点在AC直线上*)
- f1[0,yc]==0,(*C点在BC直线上*)
- (xa-0)^2+(ya-yc)^2==11^2,(*AC=11*)
- BC==Sqrt[8^2+yc^2](*求BC长度*)
- },{k,b3,xa,ya,yc,BC}]//FullSimplify
- Grid[ans,Alignment->Left]
复制代码
换一下坐标系,求解结果
\[\begin{array}{llllll}
k\to 0 & \text{b3}\to 0 & \text{xa}\to -11 & \text{ya}\to 0 & \text{yc}\to 0 & \text{BC}\to 8 \\
k\to 0 & \text{b3}\to 0 & \text{xa}\to 11 & \text{ya}\to 0 & \text{yc}\to 0 & \text{BC}\to 8 \\
k\to \frac{\sqrt{23}}{2} & \text{b3}\to -4 \sqrt{23} & \text{xa}\to -\frac{77}{729} & \text{ya}\to -\frac{1}{729} \left(1244 \sqrt{23}\right) & \text{yc}\to -4 \sqrt{23} & \text{BC}\to 12 \sqrt{3} \\
k\to -\frac{\sqrt{23}}{2} & \text{b3}\to 4 \sqrt{23} & \text{xa}\to -\frac{77}{729} & \text{ya}\to \frac{1244 \sqrt{23}}{729} & \text{yc}\to 4 \sqrt{23} & \text{BC}\to 12 \sqrt{3} \\
k\to \frac{1}{2} & \text{b3}\to -4 & \text{xa}\to \frac{77}{25} & \text{ya}\to \frac{164}{25} & \text{yc}\to -4 & \text{BC}\to 4 \sqrt{5} \\
k\to -\frac{1}{2} & \text{b3}\to 4 & \text{xa}\to \frac{77}{25} & \text{ya}\to -\frac{164}{25} & \text{yc}\to 4 & \text{BC}\to 4 \sqrt{5} \\
\end{array}\]
数值化
\[
\begin{array}{llllll}
k\to 0. & \text{b3}\to 0. & \text{xa}\to -11. & \text{ya}\to 0. & \text{yc}\to 0. & \text{BC}\to 8. \\
k\to 0. & \text{b3}\to 0. & \text{xa}\to 11. & \text{ya}\to 0. & \text{yc}\to 0. & \text{BC}\to 8. \\
k\to 2.39792 & \text{b3}\to -19.1833 & \text{xa}\to -0.105624 & \text{ya}\to -8.18383 & \text{yc}\to -19.1833 & \text{BC}\to 20.7846 \\
k\to -2.39792 & \text{b3}\to 19.1833 & \text{xa}\to -0.105624 & \text{ya}\to 8.18383 & \text{yc}\to 19.1833 & \text{BC}\to 20.7846 \\
k\to 0.5 & \text{b3}\to -4. & \text{xa}\to 3.08 & \text{ya}\to 6.56 & \text{yc}\to -4. & \text{BC}\to 8.94427 \\
k\to -0.5 & \text{b3}\to 4. & \text{xa}\to 3.08 & \text{ya}\to -6.56 & \text{yc}\to 4. & \text{BC}\to 8.94427 \\
\end{array}\] |
|