怎么用Mathematica绘制圆柱

本文,我要介绍一下,用Mathematica画圆柱体的几种方法。

340e4eb8b43ea8dbd1900286189c2cf7deb21673.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80

工具/原料

  • 电脑
  • Mathematica

方法/步骤

  1. 1

    一个尺度的圆柱的隐函数方程是 x^2+y^2==1:

    ContourPlot3D[x^2+y^2==1,{x,-2,2},{y,-2,2},{z,-2,2}]

    cfadcdd96975f2c47a43a1f78f0148fe1f420673.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  2. 2

    这个圆柱的参数方程是 {Cos[t],Sin[t],z}:

    ParametricPlot3D[{Cos[t],Sin[t],z},{t,0,2 Pi},{z,-2,2}]

    acfda02f4770461879001c8fb08602214e577673.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  3. 3

    RevolutionPlot3D [{1,t},{t,-2,2}]

    这三幅图虽然是统一个圆柱,可是图像质量纷歧样。

    54a89daee8d7592a543518cc9f31dfb6336c6773.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  4. 4

    也可以写为:

    RevolutionPlot3D[{1,0,t},{t,-2,2}]

    这现实上线段{1,0,t}绕z轴扭转而当作。

    e3d059e833e03972fbd9435eb586304860435673.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  5. 5

    曲线{Cos[t],Sin[t],t}绕z轴扭转一周,也是一个圆柱。

    75af02324b18512c592b2013ad334884cce34973.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  6. 6

    曲线{Cos[6*t],Sin[6*t],t}绕z轴扭转,外貌的网格线已经不清晰了。

    fdb4f00d3aceaad796b1f456eee7340f6578b873.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  7. 7

    {Cos[2*t],Sin[t],t}绕z轴扭转,获得的,就不再是圆柱。

    9b2098254193cee844deacaf5a0ff2260c9aa873.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  8. 8

    下图是{1,Sin[t],t}绕z轴扭转的图像。

    f0848bee41c1b727a888fe3c1a2ca5cadde89873.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_803761a73acd8920c532d47081568a59de44078873.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80
  9. 9

    {1,t*Sin[t],t}的扭转曲面。

    95bd4e8c9bcec7f8a9aca569034ce54a2e27fb73.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_auto%2Fquality%2Cq_80END
  • 发表于 2022-08-22 20:01
  • 阅读 ( 299 )
  • 分类:其他类型

相关问题

0 条评论

请先 登录 后评论