摘要:
二阶非线性自治系统绘制相平面图。假设我们有一个简单的阻尼摆系统,其状态方程可以表示为: \[ dx1/dt = x2 \\ dx2/dt = -cx2 - gsin(x1) \] import numpy as np import matplotlib.pyplot as plt from scip 阅读全文
posted @ 2024-10-04 19:51
redufa
阅读(97)
评论(0)
推荐(0)
摘要:
start_points 和 end_points 数组分别表示向量的起点和终点。 使用 plt.quiver 函数绘制向量(箭头)。 plt.scatter 用于绘制起点和终点(可选)。 plt.legend 添加图例。 plt.title、plt.xlabel 和 plt.ylabel 添加标题 阅读全文
posted @ 2024-10-04 19:37
redufa
阅读(312)
评论(0)
推荐(0)
浙公网安备 33010602011771号