Skip to content

Commit faf8d18

Browse files
committed
updated 02_Numpy for fall 2024
1 parent 2c94b9d commit faf8d18

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

02_NumPy.ipynb

+18-5
Original file line numberDiff line numberDiff line change
@@ -692,9 +692,9 @@
692692
"source": [
693693
"A = numpy.array([[1],[-1],[1]])\n",
694694
"B = numpy.array([[1,2,3],[1,4,9],[1,8,27]])\n",
695-
"print(A)\n",
695+
"print('A=\\n{}'.format(A))\n",
696696
"print()\n",
697-
"print(B)"
697+
"print('B=\\n{}'.format(B))"
698698
]
699699
},
700700
{
@@ -737,12 +737,25 @@
737737
]
738738
},
739739
{
740-
"cell_type": "markdown",
740+
"cell_type": "code",
741+
"execution_count": null,
741742
"metadata": {
742743
"slideshow": {
743744
"slide_type": "fragment"
744745
}
745746
},
747+
"outputs": [],
748+
"source": [
749+
"print(A*B)"
750+
]
751+
},
752+
{
753+
"cell_type": "markdown",
754+
"metadata": {
755+
"slideshow": {
756+
"slide_type": "subslide"
757+
}
758+
},
746759
"source": [
747760
"Note: Matrix-Matrix (and by extension Matrix-vector) multiplication can also be done using the array method `dot`"
748761
]
@@ -1011,7 +1024,7 @@
10111024
"metadata": {
10121025
"celltoolbar": "Slideshow",
10131026
"kernelspec": {
1014-
"display_name": "Python 3",
1027+
"display_name": "Python 3 (ipykernel)",
10151028
"language": "python",
10161029
"name": "python3"
10171030
},
@@ -1025,7 +1038,7 @@
10251038
"name": "python",
10261039
"nbconvert_exporter": "python",
10271040
"pygments_lexer": "ipython3",
1028-
"version": "3.8.8"
1041+
"version": "3.11.7"
10291042
},
10301043
"latex_envs": {
10311044
"bibliofile": "biblio.bib",

0 commit comments

Comments
 (0)