a=(.5+random())*sample([-1,1],1)[0]
b=randint(6,12); c=.001*randint(1,100)
col=['silver',Color([random() for i in range(3)])]
fx(t)=sin(t/6)-a*sin(b*t)*cos(t)-c*sin(16*b*t)
fy(t)=cos(t/6)-a*sin(b*t)*sin(t)-c*cos(16*b*t)
st='<p>a, b, c: %.3f, %d, %.3f</p>'
pretty_print(html(st%(a,b,c)))
[fx(t),fy(t)],(t,0,12*pi),axes=False,plot_points=400,
color=col[i],thickness=1.2-i,adaptive_recursion=100)
xy=[[fx(t),fy(t)] for t in [0,.003,..,12*pi+.01]]
list_plot(xy,color=col[1],axes=False,
size=1,aspect_ratio=1).show()
No comments:
Post a Comment