数学图形(1.49)Nephroid曲线

      昨天IPhone6在国内发售了,我就顺手发布个关于肾的图形。Nephroid中文意思是肾形的。但是这种曲线它看上去却不像个肾,当你看到它时,你觉得它像什么就是什么吧。

      The name nephroid (meaning 'kidney shaped') was used for the two-cusped epicycloid by Proctor in 1878. The nephroid is the epicycloid formed by a circle of radius a rolling externally on a fixed circle of radius 2a.The nephroid has length 24a and area 12π2.

     其数学公式为:

      x = a(3cos(t) - cos(3t))

      y = a(3sin(t) - sin(3t))

      相关软件参见:数学图形可视化工具,使用自己定义语法的脚本代码生成数学图形.该软件免费开源.QQ交流群: 367752815

脚本代码:

#http://www-gap.dcs.st-and.ac.uk/~history/Curves/Nephroid.html

vertices = 2000

t = from 0 to (2*PI)

a = 2

x = a*(3*cos(t) - cos(3*t))

y = a*(3*sin(t) - sin(3*t))

变异的Nephroid曲线:

#http://xahlee.info/SpecialPlaneCurves_dir/Nephroid_dir/nephroid.html

vertices = 200
t = from (0) to (50*PI)

x = 3*cos[t]-cos[3*t]
y = 3*sin[t]-sin[3*t]

将Nephroid曲线绕x轴旋转:

vertices = D1:100 D2:100

u = from 0 to (PI) D1
v = from 0 to (2*PI) D2

a = 2

x = a*(3*cos(u) - cos(3*u))

n = a*(3*sin(u) - sin(3*u))

y = n*cos(v)
z = n*sin(v)

将Nephroid曲线绕Y轴旋转:

vertices = D1:100 D2:100

u = from (-PI/2) to (PI/2) D1
v = from 0 to (2*PI) D2

a = 2

n = a*(3*cos(u) - cos(3*u))

y = a*(3*sin(u) - sin(3*u))

x = n*cos(v)
z = n*sin(v)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值