gpt-3.5-turbo-0301· openai
Suzhen/CodeChat
用Mathematica作出各种标准二次曲面的图形。
- User
用Mathematica作出各种标准二次曲面的图形。
- Assistant
- 平面:
ParametricPlot3D[{u, v, 0}, {u, -1, 1}, {v, -1, 1}, PlotStyle -> Directive[Opacity[0.5], Yellow], Axes -> None, Boxed -> False]- 椭球面:
ContourPlot3D[x^2/2 + y^2/4 + z^2/5 == 1, {x, -3, 3}, {y, -3, 3}, {z, -3, 3}, Mesh -> None, PlotPoints -> 50, ContourStyle -> Directive[Opacity[0.5], Blue]]- 双曲面:
ContourPlot3D[x^2/3 - y^2/2 - z^2/5 == 1, {x, -3, 3}, {y, -3, 3}, {z, -3, 3}, Mesh -> None, PlotPoints -> 50, ContourStyle -> Directive[Opacity[0.5], Orange]]- 椭圆抛物面:
ContourPlot3D[y == x^2/2 + z^2/5, {x, -3, 3}, {y, -3, 3}, {z, -3, 3}, Mesh -> None, PlotPoints -> 50, ContourStyle -> Directive[Opacity[0.5], Red]]- 椭圆锥面:
ContourPlot3D[x^2/3 + y^2/4 - z^2/9 == 1, {x, -3, 3}, {y, -3, 3}, {z, -3, 3}, Mesh -> None, PlotPoints -> 50, ContourStyle -> Directive[Opacity[0.5], Green]]- 双曲抛物面:
ContourPlot3D[z == x^2/2 - y^2/2, {x, -3, 3}, {y, -3, 3}, {z, -3, 3}, Mesh -> None, PlotPoints -> 50, ContourStyle -> Directive[Opacity[0.5], Purple]] - User
用Mathematica作出各种标准二次曲面的图形,并给出图片
- Assistant
- 平面:
ParametricPlot3D[{u, v, 0}, {u, -1, 1}, {v, -1, 1}, PlotStyle -> Directive[Opacity[0.5], Yellow], Axes -> None, Boxed -> False]- 椭球面:
ContourPlot3D[x^2/2 + y^2/4 + z^2/5 == 1, {x, -3, 3}, {y, -3, 3}, {z, -3, 3}, Mesh -> None, PlotPoints -> 50, ContourStyle -> Directive[Opacity[0.5], Blue]]- 双曲面:
ContourPlot3D[x^2/3 - y^2/2 - z^2/5 == 1, {x, -3, 3}, {y, -3, 3}, {z, -3, 3}, Mesh -> None, PlotPoints -> 50, ContourStyle -> Directive[Opacity[0.5], Orange]]- 椭圆抛物面:
ContourPlot3D[y == x^2/2 + z^2/5, {x, -3, 3}, {y, -3, 3}, {z, -3, 3}, Mesh -> None, PlotPoints -> 50, ContourStyle -> Directive[Opacity[0.5], Red]]- 椭圆锥面:
ContourPlot3D[x^2/3 + y^2/4 - z^2/9 == 1, {x, -3, 3}, {y, -3, 3}, {z, -3, 3}, Mesh -> None, PlotPoints -> 50, ContourStyle -> Directive[Opacity[0.5], Green]]