Skip to content

Commit 2c32913

Browse files
committed
Update notebooks (no rerun, no output change)
1 parent 99e56f8 commit 2c32913

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

examples/bode-and-nyquist-plots.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"metadata": {},
1717
"outputs": [],
1818
"source": [
19+
"import numpy as np\n",
1920
"import scipy as sp\n",
2021
"import matplotlib.pyplot as plt\n",
2122
"import control as ct"
@@ -109,9 +110,9 @@
109110
"w001rad = 1. # 1 rad/s\n",
110111
"w010rad = 10. # 10 rad/s\n",
111112
"w100rad = 100. # 100 rad/s\n",
112-
"w001hz = 2*sp.pi*1. # 1 Hz\n",
113-
"w010hz = 2*sp.pi*10. # 10 Hz\n",
114-
"w100hz = 2*sp.pi*100. # 100 Hz\n",
113+
"w001hz = 2*np.pi*1. # 1 Hz\n",
114+
"w010hz = 2*np.pi*10. # 10 Hz\n",
115+
"w100hz = 2*np.pi*100. # 100 Hz\n",
115116
"# First order systems\n",
116117
"pt1_w001rad = ct.tf([1.], [1./w001rad, 1.], name='pt1_w001rad')\n",
117118
"display(pt1_w001rad)\n",
@@ -153,7 +154,7 @@
153154
],
154155
"source": [
155156
"sampleTime = 0.001\n",
156-
"display('Nyquist frequency: {:.0f} Hz, {:.0f} rad/sec'.format(1./sampleTime /2., 2*sp.pi*1./sampleTime /2.))"
157+
"display('Nyquist frequency: {:.0f} Hz, {:.0f} rad/sec'.format(1./sampleTime /2., 2*np.pi*1./sampleTime /2.))"
157158
]
158159
},
159160
{

examples/singular-values-plot.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
],
9191
"source": [
9292
"sampleTime = 10\n",
93-
"display('Nyquist frequency: {:.4f} Hz, {:.4f} rad/sec'.format(1./sampleTime /2., 2*sp.pi*1./sampleTime /2.))"
93+
"display('Nyquist frequency: {:.4f} Hz, {:.4f} rad/sec'.format(1./sampleTime /2., 2*np.pi*1./sampleTime /2.))"
9494
]
9595
},
9696
{

0 commit comments

Comments
 (0)