Remove the IPYNB Checkpoints, Did Week 5 HW
-- IPYNB Checkpoints ++ Git Ignore File for IPYNB Checkpoints +- Week 5 Homework Files
This commit is contained in:
parent
4fc499169b
commit
140ffc6523
7 changed files with 219 additions and 60 deletions
|
|
@ -40,20 +40,20 @@
|
|||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"a = 1410\n",
|
||||
"b = 1.989 * 10**30\n",
|
||||
"c = 3\n",
|
||||
"d = b / a\n",
|
||||
"e = 3.14159\n",
|
||||
"f = (d * 3/(4*e))**(1/3)\n",
|
||||
"g = 4 * e * f**2\n",
|
||||
"h = c * g"
|
||||
"sun_density = 1410\n",
|
||||
"sun_weight = 1.989 * 10**30\n",
|
||||
"depth = 3\n",
|
||||
"sun_volume = sun_weight / sun_density\n",
|
||||
"pi = 3.14159\n",
|
||||
"sun_radius = (sun_volume * 3/(4*pi))**(1/3)\n",
|
||||
"sun_surface_area = 4 * pi * sun_radius**2\n",
|
||||
"required_beer_volume = depth * sun_surface_area"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.7.1"
|
||||
"version": "3.9.12"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue