数学图形(1.17)蝴蝶形线

使用数学公式,画出类似蝴蝶轮廓的曲线。

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

1:

vertices = 1000

t = from 0 to (2*PI)
a = 10

p = pow(E, cos(t)) - 2*cos(4*t) + pow(sin(t/2), 5)

x = p*sin(t)
y = p*cos(t)

2:

vertices = 1000

t = from 0 to (2*PI)
a = 10

p = pow(E, cos(t)) - 2*cos(4*t)

x = p*sin(t)
y = p*cos(t)

3:

vertices = 1000

t = from (-PI) to (PI)
a = 10

p = sin(t*5) + sign(t)*3*cos(t)

x = p*cos(t)
y = p*sin(t)

4:

vertices = 1000

t = from (-PI) to (PI)
a = 10

p = -3*cos(2*t) + sin(7*t) - 1

x = p*cos(t)
y = p*sin(t)

原文地址:https://www.cnblogs.com/WhyEngine/p/3830970.html