X Tutup
Skip to content

Commit eb5679d

Browse files
committed
Updating bungee.ipynb
1 parent 6172511 commit eb5679d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

code/bungee.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -779,8 +779,8 @@
779779
"outputs": [],
780780
"source": [
781781
"def spring_force(y, y_attach, length, k):\n",
782-
" zero_point = y_attach - length\n",
783-
" offset = y - zero_point\n",
782+
" neutral_point = y_attach - length\n",
783+
" offset = y - neutral_point\n",
784784
" f_spring = -k * offset\n",
785785
" return f_spring"
786786
]
@@ -809,7 +809,6 @@
809809
" f_drag = -np.sign(v) * rho * v**2 * C_d * area / 2\n",
810810
" a_drag = f_drag / mass\n",
811811
" \n",
812-
" drop = init.y - y\n",
813812
" f_spring = spring_force(y, y_attach, length, k)\n",
814813
" a_spring = f_spring / mass\n",
815814
" \n",
@@ -860,7 +859,9 @@
860859
{
861860
"cell_type": "code",
862861
"execution_count": 23,
863-
"metadata": {},
862+
"metadata": {
863+
"collapsed": true
864+
},
864865
"outputs": [],
865866
"source": [
866867
"run_odeint(system2, slope_func)"

0 commit comments

Comments
 (0)
X Tutup