ファイル:Inverted pendulum oscillatory base.svg
提供: testwiki
ナビゲーションに移動
検索に移動
元のファイル (SVG ファイル、1,070 × 431 ピクセル、ファイルサイズ: 60キロバイト)
このファイルはウィキメディア・コモンズのものであり、他のプロジェクトで使用されている可能性があります。 ウィキメディア・コモンズでのファイル解説ページにある説明を以下に示します。
概要
| 解説Inverted pendulum oscillatory base.svg |
English: Plots illustrating the behaviour of an inverted pendulum mounted on an oscillatory base. The first plot shows the response of the pendulum on a slow oscillation (), the second the response on a fast oscillation ().
The motion of the pendulum is given by the the following differential equation |
| 日付 | |
| 原典 | 投稿者自身による著作物 |
| 作者 | Nicoguaro |
| SVG 開発 InfoField | |
| ソースコード InfoField | Python codefrom __future__ import division
import numpy as np
from numpy import sin, cos, pi
from scipy.integrate import odeint
import matplotlib.pyplot as plt
from matplotlib import rcParams
rcParams['font.size'] = 14
rcParams['legend.handlelength'] = 0
def pend(x, t, grav=9.81, length=1, amplitude=0.05, omega=10):
theta, dtheta = x
dxdt = [dtheta,
sin(theta)/length*(grav - amplitude*omega**2 * sin(omega*t))]
return dxdt
plt.figure(figsize=(14, 5))
plt.subplot(121)
time = np.linspace(0, 1.5, 101)
sol = odeint(pend, [0.1, 0], time, args=(9.81, 1, 0.05, 10))
theta, _ = sol.T
plt.plot(time, theta*180/pi, color="#e41a1c", lw=2)
plt.xlim(0, 1.5)
plt.ylim(0, 100)
plt.xlabel(r"$t$ (s)")
plt.ylabel(r"$\theta$ (deg)")
plt.legend([r"$\omega=10$"], numpoints=1, framealpha=0)
plt.subplot(122)
time = np.linspace(0, 3, 1001)
sol = odeint(pend, [0.05, 0], time, args=(9.81, 1, 0.05, 200))
theta, omega = sol.T
plt.plot(time, theta*180/pi, color="#e41a1c", lw=2)
plt.xlim(0, 2.5)
plt.xlabel(r"$t$ (s)")
plt.ylabel(r"$\theta$ (deg)")
plt.legend([r"$\omega=200$"], numpoints=1, framealpha=0)
plt.savefig("inverted_pendulum_oscillatory_base.svg", bbox_inches="tight")
plt.show()
|
ライセンス
この作品の著作権者である私は、この作品を以下のライセンスで提供します。
このファイルはクリエイティブ・コモンズ 表示 4.0 国際ライセンスのもとに利用を許諾されています。
- あなたは以下の条件に従う場合に限り、自由に
- 共有 – 本作品を複製、頒布、展示、実演できます。
- 再構成 – 二次的著作物を作成できます。
- あなたの従うべき条件は以下の通りです。
- 表示 – あなたは適切なクレジットを表示し、ライセンスへのリンクを提供し、変更があったらその旨を示さなければなりません。これらは合理的であればどのような方法で行っても構いませんが、許諾者があなたやあなたの利用行為を支持していると示唆するような方法は除きます。
キャプション
このファイルの内容を1行で記述してください
このファイルに描写されている項目
題材
ウィキデータ項目がない値
4 7 2016
ファイルの履歴
過去の版のファイルを表示するには、その版の日時をクリックしてください。
| 日時 | サムネイル | 寸法 | 利用者 | コメント | |
|---|---|---|---|---|---|
| 現在の版 | 2016年7月5日 (火) 05:53 | 1,070 × 431 (60キロバイト) | wikimediacommons>Nicoguaro | User created page with UploadWizard |
ファイルの使用状況
このファイルを使用しているページはありません。