Skip to content

Commit d776e5d

Browse files
committed
update NB4 and NB5
style comment to NB4. update of NB5
1 parent 7cb58b2 commit d776e5d

File tree

2 files changed

+42
-63
lines changed

2 files changed

+42
-63
lines changed

notebook4_functions/py_exploratory_comp_4_sol.ipynb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,18 @@
241241
"\n",
242242
"print(testfunc(1)) # Uses default A=1, theta=0: cos(pi)\n",
243243
"print(testfunc(1, A=2)) # Now A=2, and theta is still 0: 2*cos(pi)\n",
244-
"print(testfunc(1, A=2, theta=np.pi / 4)) # Now A=2, theta=pi/4: 2*cos(5pi/4) \n",
244+
"print(testfunc(1, A=2, theta=np.pi / 4)) # Now A=2, theta=pi/4: 2*cos(5pi/4)\n",
245245
"print(testfunc(1, theta=np.pi / 4, A=2)) # Same as above: 2*cos(5pi/4)\n",
246246
"print(testfunc(1, theta=np.pi / 4)) # Now theta=pi/4, and A is still 1: cos(5pi/4)"
247247
]
248248
},
249+
{
250+
"cell_type": "markdown",
251+
"metadata": {},
252+
"source": [
253+
"Note that the proper style was applied, as defined in Notebook 1: there are spaces around mathematical symbols, but not around the equal sign of the keyword argument. "
254+
]
255+
},
249256
{
250257
"cell_type": "markdown",
251258
"metadata": {},

0 commit comments

Comments
 (0)