- 注册时间
- 2021-11-19
- 最后登录
- 1970-1-1
- 威望
- 星
- 金币
- 枚
- 贡献
- 分
- 经验
- 点
- 鲜花
- 朵
- 魅力
- 点
- 上传
- 次
- 下载
- 次
- 积分
- 8895
- 在线时间
- 小时
|
- Clear["Global`*"];(*mathematica11.2,win7(64bit)Clear all variables*)
- f=x+y+z+x1*(x^2+y^2+z^2-27)+x2*(x*y*z-8)
- ans=Chop@NSolve[GroebnerBasis@D[f,{{x,y,z,x1,x2}}]==0,{x,y,z,x1,x2}]
- Grid[ans,Alignment->Left](*列表显示*)
复制代码
\[\begin{array}{lllll}
z\to -5.47036 & y\to 0.\, -1.20931 i & x\to 0.\, -1.20931 i & \text{x1}\to 0.087143\, -0.0192643 i & \text{x2}\to 0.03186\, +0.14412 i \\
z\to -5.47036 & y\to 0.\, +1.20931 i & x\to 0.\, +1.20931 i & \text{x1}\to 0.087143\, +0.0192643 i & \text{x2}\to 0.03186\, -0.14412 i \\
z\to -3.64961 & y\to -3.64961 & x\to 0.600617 & \text{x1}\to 0.163989 & \text{x2}\to -0.0898665 \\
z\to -3.64961 & y\to 0.600617 & x\to -3.64961 & \text{x1}\to 0.163989 & \text{x2}\to -0.0898665 \\
z\to -1.28172 & y\to -1.28172 & x\to 4.86974 & \text{x1}\to -0.139352 & \text{x2}\to 0.217446 \\
z\to -1.28172 & y\to 4.86974 & x\to -1.28172 & \text{x1}\to -0.139352 & \text{x2}\to 0.217446 \\
z\to 0.\, -1.20931 i & y\to -5.47036 & x\to 0.\, -1.20931 i & \text{x1}\to 0.087143\, -0.0192643 i & \text{x2}\to 0.03186\, +0.14412 i \\
z\to 0.\, -1.20931 i & y\to 0.\, -1.20931 i & x\to -5.47036 & \text{x1}\to 0.087143\, -0.0192643 i & \text{x2}\to 0.03186\, +0.14412 i \\
z\to 0.\, +1.20931 i & y\to -5.47036 & x\to 0.\, +1.20931 i & \text{x1}\to 0.087143\, +0.0192643 i & \text{x2}\to 0.03186\, -0.14412 i \\
z\to 0.\, +1.20931 i & y\to 0.\, +1.20931 i & x\to -5.47036 & \text{x1}\to 0.087143\, +0.0192643 i & \text{x2}\to 0.03186\, -0.14412 i \\
z\to 0.600617 & y\to -3.64961 & x\to -3.64961 & \text{x1}\to 0.163989 & \text{x2}\to -0.0898665 \\
z\to 0.600617 & y\to 3.64961 & x\to 3.64961 & \text{x1}\to -0.117641 & \text{x2}\to -0.0644677 \\
z\to 1.28172 & y\to 1.28172 & x\to 4.86974 & \text{x1}\to -0.0812815 & \text{x2}\to -0.126832 \\
z\to 1.28172 & y\to 4.86974 & x\to 1.28172 & \text{x1}\to -0.0812815 & \text{x2}\to -0.126832 \\
z\to 3.64961 & y\to 0.600617 & x\to 3.64961 & \text{x1}\to -0.117641 & \text{x2}\to -0.0644677 \\
z\to 3.64961 & y\to 3.64961 & x\to 0.600617 & \text{x1}\to -0.117641 & \text{x2}\to -0.0644677 \\
z\to 4.86974 & y\to -1.28172 & x\to -1.28172 & \text{x1}\to -0.139352 & \text{x2}\to 0.217446 \\
z\to 4.86974 & y\to 1.28172 & x\to 1.28172 & \text{x1}\to -0.0812815 & \text{x2}\to -0.126832 \\
\end{array}\] |
|