How to make a beautiful butterfly in Sagemath?

Just use parametric equation for that and plot on it.

var('t,x,y,p')
x=2*sin(t)*(e^(cos(t))-2*cos(4*t)-(sin(t/12))^5)
y=2*cos(t)*(e^(cos(t))-2*cos(4*t)-(sin(t/12))^5)
p=parametric_plot((x,y),(t,-2*pi,2*pi),fill=True,fillcolor='yellow')
p.show()

Advertisements

About Priyanka Kapoor

Simple, Hardworking & friendly.....
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s