数学图形(1.32) 鸡蛋

鸡蛋的数学图形实现

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

egg

#http://www.mathcurve.com/courbes2d/oeuf/oeufgranville.shtml
vertices = 10000
t = from 0 to (2*PI)
a = 3
b = 2
c = 0.25
y = a*cos(t) + c*cos(2*t)
x = b*sin(t)

Granville egg

#http://www.mathcurve.com/courbes2d/oeuf/oeufgranville.shtml
vertices = 10000
t = from 0 to (2*PI)
a = rand2(0.1, 10)
b = rand2(0.1, 10)
r = 1.0
y = b+r*cos(t)
x = a*r*sin(t)/y

Hugelschaffer egg

#http://www.mathcurve.com/courbes2d/oeuf/oeuf.shtml
vertices = 10000
t = from 0 to (2*PI)

a = 6
b = 4
d = 1

s = sin(t)
c = cos(t)

y = (sqrt(a*a - d*d*s*s) + d*c)*c
x = b*s

Hugelschaffer egg(随机)

#http://www.mathcurve.com/courbes2d/oeuf/oeuf.shtml
vertices = 10000
t = from 0 to (2*PI)

a = rand2(0.1, 10)
b = rand2(0.1, 10)
d = rand2(0.1, 10)

s = sin(t)
c = cos(t)

y = (sqrt(a*a - d*d*s*s) + d*c)*c
x = b*s

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值