vault backup: 2024-09-09 14:00:35
This commit is contained in:
parent
de27435792
commit
ebe53a2ecf
14
.obsidian/workspace.json
vendored
14
.obsidian/workspace.json
vendored
@ -25,7 +25,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "image",
|
"type": "image",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09/ex2.png"
|
"file": "300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09/ex3.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -97,7 +97,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "backlink",
|
"type": "backlink",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09/ex2.png",
|
"file": "300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09/ex3.png",
|
||||||
"collapseAll": true,
|
"collapseAll": true,
|
||||||
"extraContext": false,
|
"extraContext": false,
|
||||||
"sortOrder": "alphabetical",
|
"sortOrder": "alphabetical",
|
||||||
@ -114,7 +114,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "outgoing-link",
|
"type": "outgoing-link",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09/ex2.png",
|
"file": "300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09/ex3.png",
|
||||||
"linksCollapsed": false,
|
"linksCollapsed": false,
|
||||||
"unlinkedCollapsed": true
|
"unlinkedCollapsed": true
|
||||||
}
|
}
|
||||||
@ -137,7 +137,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "outline",
|
"type": "outline",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09/ex2.png"
|
"file": "300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09/ex3.png"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -177,9 +177,10 @@
|
|||||||
},
|
},
|
||||||
"active": "e7019452a0bd61a5",
|
"active": "e7019452a0bd61a5",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09 Example.py~",
|
|
||||||
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09/ex1.png",
|
|
||||||
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09/ex2.png",
|
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09/ex2.png",
|
||||||
|
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09 Example.py~",
|
||||||
|
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09/ex3.png",
|
||||||
|
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09/ex1.png",
|
||||||
"3-99 Research/6. Researching Techniques/Setting up a virtual python environment (venv).md",
|
"3-99 Research/6. Researching Techniques/Setting up a virtual python environment (venv).md",
|
||||||
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09",
|
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09",
|
||||||
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/venv/lib/python3.12/site-packages/__pycache__/pylab.cpython-312.pyc",
|
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/venv/lib/python3.12/site-packages/__pycache__/pylab.cpython-312.pyc",
|
||||||
@ -197,7 +198,6 @@
|
|||||||
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/venv/lib/python3.12/site-packages/matplotlib/mpl-data/images/zoom_to_rect.svg",
|
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/venv/lib/python3.12/site-packages/matplotlib/mpl-data/images/zoom_to_rect.svg",
|
||||||
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/venv/lib/python3.12/site-packages/matplotlib/mpl-data/images/zoom_to_rect.png",
|
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/venv/lib/python3.12/site-packages/matplotlib/mpl-data/images/zoom_to_rect.png",
|
||||||
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/venv/lib/python3.12/site-packages/matplotlib/mpl-data/images/zoom_to_rect-symbolic.svg",
|
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/venv/lib/python3.12/site-packages/matplotlib/mpl-data/images/zoom_to_rect-symbolic.svg",
|
||||||
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/venv/lib/python3.12/site-packages/matplotlib/mpl-data/images/subplots.svg",
|
|
||||||
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/venv/lib/python3.12/site-packages/scipy/fft/_pocketfft/LICENSE.md",
|
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/venv/lib/python3.12/site-packages/scipy/fft/_pocketfft/LICENSE.md",
|
||||||
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/venv/lib/python3.12/site-packages/numpy/random/LICENSE.md",
|
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/venv/lib/python3.12/site-packages/numpy/random/LICENSE.md",
|
||||||
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09 Frameworks and Review.md",
|
"300s School/301. ME 2016 - Nonlinear Dynamical Systems 1/2024-09-09 Frameworks and Review.md",
|
||||||
|
|||||||
@ -35,8 +35,28 @@ f.set_figheight(12)
|
|||||||
ts = np.linspace(0,3,1000)
|
ts = np.linspace(0,3,1000)
|
||||||
ic = 1
|
ic = 1
|
||||||
xs = odeint(dx_dt, ic, ts)
|
xs = odeint(dx_dt, ic, ts)
|
||||||
print(xs)
|
#print(xs)
|
||||||
|
|
||||||
plt.plot(ts,xs)
|
plt.plot(ts,xs)
|
||||||
plt.savefig("2024-09-09/ex2.png")
|
plt.savefig("2024-09-09/ex2.png")
|
||||||
plt.show()
|
#plt.show()
|
||||||
|
|
||||||
|
#Let's do the same thing in the time domain!
|
||||||
|
ics = np.linspace(-4,2.0001,20)
|
||||||
|
ts = np.linspace(0,0.5,1000)
|
||||||
|
|
||||||
|
# loop over the initial conditions
|
||||||
|
for r in ics:
|
||||||
|
x0 = [r]
|
||||||
|
xs = odeint(dx_dt,x0,ts)
|
||||||
|
plt.plot(ts,xs[:,0],"b")
|
||||||
|
|
||||||
|
x1 = ts - ts - 2
|
||||||
|
x2 = ts - ts + 2
|
||||||
|
f2 = plt.figure()
|
||||||
|
plt.plot(ts,x1,'r',ts,x2,'r--')
|
||||||
|
plt.grid(True)
|
||||||
|
plt.xlabel('Time, some units.')
|
||||||
|
plt.ylabel('Voltage shrug?')
|
||||||
|
plt.savefig('2024-09-09/ex3')
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
Loading…
x
Reference in New Issue
Block a user