Remove extra ,
This commit is contained in:
12
13/13.ipynb
12
13/13.ipynb
@@ -2,7 +2,7 @@
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 161,
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
@@ -27,7 +27,7 @@
|
||||
" A[:,1]=matches\n",
|
||||
" if \"Prize:\" in line: #Prize Position is the result of solving the equation > B\n",
|
||||
" B=np.array(matches,dtype=int)+np.array([offset,offset]) #offset added for part 2\n",
|
||||
" solution = np.linalg.solve(A.astype(int),B.astype(int),)\n",
|
||||
" solution = np.linalg.solve(A.astype(int),B.astype(int))\n",
|
||||
" # remove non integer Solutions by rounding and checking validity of solution\n",
|
||||
" reverse = np.dot(A,np.round(solution))\n",
|
||||
" validation = np.all(np.equal(reverse,B.astype(int)))\n",
|
||||
@@ -49,7 +49,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 162,
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@@ -58,7 +58,7 @@
|
||||
"np.int64(28753)"
|
||||
]
|
||||
},
|
||||
"execution_count": 162,
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
@@ -76,7 +76,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 163,
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@@ -85,7 +85,7 @@
|
||||
"np.int64(102718967795500)"
|
||||
]
|
||||
},
|
||||
"execution_count": 163,
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user