Skip to content

Commit 01f2b18

Browse files
committed
Fix ohms law
1 parent af5c8c2 commit 01f2b18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"voltages = [10.1, 15.1, 9.5]\n",
5858
"currents = [1.2, 2.4, 5.2]\n",
5959
"\n",
60-
"resistances = [U * I for U, I in zip(voltages, currents)]\n",
60+
"resistances = [U / I for U, I in zip(voltages, currents)]\n",
6161
"resistances"
6262
]
6363
},
@@ -77,7 +77,7 @@
7777
"U = np.array([10.1, 15.1, 9.5])\n",
7878
"I = np.array([1.2, 2.4, 5.2])\n",
7979
"\n",
80-
"R = U * I\n",
80+
"R = U / I\n",
8181
"R"
8282
]
8383
},

0 commit comments

Comments
 (0)