好看的函数图

1. 鸡蛋型

解析式:

x = 0.7*cos(t/4)*sin(t)

y = cos(t)

图像:

python程序:

import numpy as np
import matplotlib.pyplot as plt

t = np.linspace(-np.pi, np.pi, 100)
x = 0.7 * np.cos(t/4) * np.sin(t)
y = -np.cos(t)
plt.plot(x,y)
plt.xlim(-1,1)
plt.ylim(-1,1)
plt.show()

 

未完待续

posted on 2013-09-16 19:01  赛欧拉  阅读(1631)  评论(0编辑  收藏  举报