Skip to content

Commit

Permalink
problem 22
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantinos Theofilatos committed Nov 24, 2023
1 parent 1384d0e commit a1649ca
Showing 1 changed file with 15 additions and 24 deletions.
39 changes: 15 additions & 24 deletions 2023/problem22/solution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,22 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"id": "28a678df",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"I = 8.378390280 +/- 0.000550847\n",
"I = 8.378598258 +/- 0.000550838 [expected]\n",
"expected error for N = 10^4: 0.0550838182\n",
"expected error for N = 10^8: 0.0005508382\n",
"expected error for N = 10^18: 0.0000000055\n"
]
}
],
"source": [
"# more efficient solution in smaller volume\n",
"N = 10**8\n",
Expand Down Expand Up @@ -119,31 +131,10 @@
"print('expected error for N = 10^18: %2.10f'%expectedError(10**18))"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "93e117f7",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.6982165215"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"12*I_exp/V"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "cc92076e",
"id": "285efce0",
"metadata": {},
"outputs": [],
"source": []
Expand Down

0 comments on commit a1649ca

Please sign in to comment.