xxxxxxxxxx
def _(n=[4,5,..,8]):
f(u,v)=exp(-(u^n+v^n)/n)
s1(u,t)=(u,-.1*t,.1*t)
s2(v,t)=(v,-.1*t,.1*t)
pvf=sum([plot_vector_field(
f(u,v).gradient(),s1(u,i),s2(v,i),
color=hue(i/3)) for i in [1..3]])
pvf.show(figsize=(5,5),frame=False)
No comments:
Post a Comment