1.圆的参数方程表示形式

Python利用参数方程画圆

Python利用参数方程画圆

Python利用参数方程画圆

Python代码:

import numpy as np
import matplotlib.pyplot as plt

# 1.圆半径
r = 2.0
# 2.圆心坐标
a, b = (0., 0.)
# 参数方程
theta = np.arange(0, 2*np.pi, 0.01)
x = a + r * np.cos(theta)
y = b + r * np.sin(theta)
#绘图
fig = plt.figure()
axes = fig.add_subplot(111)
axes.plot(x, y)
axes.axis('equal')
plt.show()

 

绘图结果:

Python利用参数方程画圆

相关文章:

  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2021-07-25
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2021-05-21
  • 2022-02-11
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
相关资源
相似解决方案