# In which I calculate the volume of water it would be required to cover the entire planet, including Mt. Everest, and how # many times it is the amount of water present on Earth. # Sources - # http://nssdc.gsfc.nasa.gov/planetary/factsheet/earthfact.html # http://ga.water.usgs.gov/edu/2010/gallery/global-water-volume.html # http://en.wikipedia.org/wiki/Mount_Everest from math import pi radius_earth = 6371.0 # Volumetric mean radius in kilometers volume_water = 10633450.0 # In cubic kilometer volume_earth = 108.321*(10**10) # In cubic kilometer height_everest = 8.848 # In kilometers volume_everest_sphere = 4*pi*((radius_earth+height_everest)**3)/3.0 volume_difference = volume_everest_sphere-volume_earth times_water = volume_difference/volume_water print volume_difference, times_water # But, there is the small matter of all the hills and mountains on the planet and the volume they'd take up. # So, doing some hand waving and back of the hand calculations I guesstimate that if we take the height of Mt. Everest as 8 kms # instead of 8.8 kms, it should more than account for the volume taken up by all the hills and mountains on Earth. revised_volume = 4*pi*((radius_earth+height_everest-0.848)**3)/3.0 revised_volume_difference = revised_volume-volume_earth revised_times_water = revised_volume_difference/volume_water print revised_volume_difference, revised_times_water
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question