X Tutup
Skip to content

Commit 843d747

Browse files
committed
replace removed np.trapz by sp.trapezoid
1 parent 5ddc195 commit 843d747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/cds110-L8a_maglev-limits.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
"omega = np.linspace(0, 1e6, 100000)\n",
254254
"for name, sys in zip(['C1', 'C2', 'C3'], [magS1, magS2, magS3]):\n",
255255
" freqresp = ct.frequency_response(sys, omega)\n",
256-
" bodeint = np.trapz(np.log(freqresp.magnitude), omega)\n",
256+
" bodeint = sp.trapezoid(np.log(freqresp.magnitude), omega)\n",
257257
" print(\"Bode integral for\", name, \"=\", bodeint)\n",
258258
"\n",
259259
"print(\"pi * sum[ Re(pk) ]\", pi * np.sum(magP.poles()[magP.poles().real > 0]))"

0 commit comments

Comments
 (0)
X Tutup