Cat in Sagemath

Have fun with sage. Do concentrate on image and you will get an image of cat.

Here is Sage Code:

G=plot(-cos(x), -2, 2, thickness=5, rgbcolor=(0.5,1,0.5))
P = polygon([[1,2], [5,6], [5,0]], rgbcolor=(1,0,0))
Q = polygon([(-x,y) for x,y in P[0]], rgbcolor=(0,0,1))
show (G+ P + Q)   # show the plot

Output:

 

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