码迷,mamicode.com
首页 > 其他好文 > 详细

数学图形之Kuen Surface

时间:2014-08-08 17:43:26      阅读:284      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   使用   os   io   for   

 

Kuen Surface应该又是一个以数学家名字命名的曲面.
本文将展示几种Kuen Surface的生成算法和切图,其中有的是标准的,有的只是相似.使用自己定义语法的脚本代码生成数学图形.相关软件参见:数学图形可视化工具,该软件免费开源.QQ交流群: 367752815

公式1

#http://jalape.no/math/kuentxt

vertices = D1:100 D2:100

u = from  (-4.5) to (4.5) D1
v = from (PI*0.01) to (PI*0.99) D2

x=2*(cos(u)+u*sin(u))*sin(v)/(1+u*u*sin(v)*sin(v))
z=2*(sin(u)-u*cos(u))*sin(v)/(1+u*u*sin(v)*sin(v))
y=log(tan(v/2))+2*cos(v)/(1+u*u*sin(v)*sin(v)) 

bubuko.com,布布扣

公式2

bubuko.com,布布扣.

#http://www.mathcurve.com/surfaces/kuen/kuen.shtml

vertices = D1:100 D2:100

u = from  (-4.5) to (4.5) D1
v = from (PI*0.01) to (PI*0.99) D2

x=2*(cos(u)+u*sin(u))*sin(v)/(1+u*u*sin(v))
z=2*(sin(u)-u*cos(u))*sin(v)/(1+u*u*sin(v))
y=ln(tan(v/2))+2*cos(v)/(1+u*u*sin(v)) 

bubuko.com,布布扣

公式3

bubuko.com,布布扣. 

#http://www.mathcurve.com/surfaces/kuen/kuen.shtml

vertices = D1:100 D2:100

u = from  (-4.5) to (4.5) D1
v = from (-PI*1.5) to (PI*1.5) D2

t = u*u+ch(v)*ch(v)

x=2*(cos(u)+u*sin(u))*ch(v)/t
z=2*(sin(u)-u*cos(u))*ch(v)/t
y=v - sh(2*v)/t

bubuko.com,布布扣

公式4

bubuko.com,布布扣 bubuko.com,布布扣 bubuko.com,布布扣
(1)
bubuko.com,布布扣 bubuko.com,布布扣 bubuko.com,布布扣
(2)
bubuko.com,布布扣 bubuko.com,布布扣 bubuko.com,布布扣
(3)
bubuko.com,布布扣 bubuko.com,布布扣 bubuko.com,布布扣
(4)
bubuko.com,布布扣 bubuko.com,布布扣 bubuko.com,布布扣
#http://mathworld.wolfram.com/KuenSurface.html

vertices = D1:100 D2:100

u = from  (-PI*1.6) to (PI*1.6) D1
v = from (PI*0.01) to (PI*0.99) D2

a = sin(u)
b = cos(u)
c = sin(v)
d = cos(v)

t = 1 + u*u*c*c

x = 2*(b + u*a)*c/t
z = 2*(a + u*b)*c/t
y = ln[tan(v/2)] + 2*d/t

y = limit(y, -50, 50)

bubuko.com,布布扣

 

数学图形之Kuen Surface,布布扣,bubuko.com

数学图形之Kuen Surface

标签:style   blog   http   color   使用   os   io   for   

原文地址:http://www.cnblogs.com/WhyEngine/p/3899623.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!