Created
October 12, 2016 18:38
-
-
Save lukecampbell/011aeddc528d7f63bc2dd125f9bd43d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 10, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"908,461,993.939 m s-2\n" | |
] | |
} | |
], | |
"source": [ | |
"speed = 299792458 / 3. # m s-1\n", | |
"delta_t = 0.11 # s (Source: http://www.science20.com/science_20/science_baseball_what_fastest_pitcher_can_throw-51797)\n", | |
"acceleration = speed / delta_t\n", | |
"print \"{:,} m s-2\".format(acceleration)\n" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 9, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"0.145 kg\n" | |
] | |
} | |
], | |
"source": [ | |
"ball_mass = 145 # grams\n", | |
"ball_mass = ball_mass / 1000. # kilograms\n", | |
"print \"{} kg\".format(ball_mass)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [ | |
"net_force = ball_mass * acceleration" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 8, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"131,726,989.121 N\n" | |
] | |
} | |
], | |
"source": [ | |
"print \"{:,} N\".format(net_force)" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 7, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"6,109,786.13735 lbs\n" | |
] | |
} | |
], | |
"source": [ | |
"equivalent_mass = (net_force / 9.8) # kg\n", | |
"equivalent_mass = equivalent_mass / 2.2 # lb\n", | |
"print \"{:,} lbs\".format(equivalent_mass)" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"_According to the Guinness Book of World Records, the heaviest thing to ever be weighed as of 2015 was the Revolving Service Structure of launch pad 39B at the Kennedy Space Center in Florida. It weighed 2423 tonnes, or 5,342,000 pounds_\n", | |
"\n", | |
"" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": { | |
"collapsed": true | |
}, | |
"outputs": [], | |
"source": [] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 2", | |
"language": "python", | |
"name": "python2" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 2 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython2", | |
"version": "2.7.10" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment