首页 > 代码库 > 数学图形之鞍面
数学图形之鞍面
在这一节中,将展示几个鞍面图形,或与鞍面类似的图形,如马鞍面,猴鞍面,狗鞍面等.有点奇怪的是马鞍面是让人骑在马上的曲面, 而猴鞍面是让猴骑的曲面,狗鞍面是让狗骑的曲面.此外,还这一节提供了类似沙发,板凳之类的曲面.
使用自己定义语法的脚本代码生成鞍面图形.相关软件参见:数学图形可视化工具,该软件免费开源.QQ交流群: 367752815
(1)马鞍面
之前我发布过关于双曲抛物面的文章,见:数学图形之双曲抛物面
vertices = dimension1:320 dimension2:320a =0.7x = from (-a) to (a) dimension1z = from (-a) to (a) dimension2y = x*x - z*zs = 10x = s*xy = s*yz = s*z
(2)猴鞍面
#http://xuxzmail.blog.163.com/blog/static/25131916200961311531402/#猴鞍面 (Monkey saddle) 是数学家为猴子量身定做的一种鞍面vertices = dimension1:320 dimension2:320a = 1x = from (-a) to (a) dimension1z = from (-a) to (a) dimension2y = x*(x*x - 3*z*z)
(3)狗鞍面
#http://xuxzmail.blog.163.com/blog/static/25131916201232494954783/#狗鞍面的方程为:z=x*y^3-y*x^3。这是一个4次曲面。vertices = dimension1:320 dimension2:320x = from (-2) to (2) dimension1z = from (-2) to (2) dimension2y = x*(z^3)-z*(x^3)
(4)Shoe Surface
#http://mathworld.wolfram.com/MennsSurface.htmlvertices = D1:100 D2:100u = from -4 to 4 D1v = from -4 to 4 D2a = 0.1x = uz = vy = pow(u, 3)/3 - v*v/2
(5)Quartoid(板凳)
#http://mathworld.wolfram.com/Quartoid.htmlvertices = D1:100 D2:100u = from -10 to 10 D1v = from -10 to 10 D2x = uz = vy = 40 - pow(u*u + v*v, 2)*0.001
(6)Peninsula Surface(sofa)
#http://mathworld.wolfram.com/PeninsulaSurface.htmlvertices = D1:100 D2:100u = from -2 to 2 D1v = from -2 to 2 D2a = 0.1x = uz = vy = pow_sign(1 - u*u - pow(v, 5), 1/3)
(7)Peano Surface
#http://mathworld.wolfram.com/PeanoSurface.htmlvertices = D1:100 D2:100u = from -10 to 10 D1v = from -10 to 10 D2x = uz = vy = (2*u*u - v)*(v - u*u) * 0.001
(8)Menn‘s Surface
#http://mathworld.wolfram.com/MennsSurface.htmlvertices = D1:100 D2:100u = from -10 to 10 D1v = from -20 to 20 D2a = 0.1x = uz = vy = a*pow(u, 4) + u*u*v - v*vy = y/100
(9)Handkerchief Surface
#http://mathworld.wolfram.com/HandkerchiefSurface.htmlvertices = D1:100 D2:100u = from -4 to 4 D1v = from -4 to 4 D2a = 0.1x = uz = vy = pow(u, 3)/3 + u*v*v + 2*(u*u - v*v)y = y*0.1
数学图形之鞍面
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。