The following mix of JavaScript & HTML allows one to calculate the speed required to escape from the surface of any planet or meteorite in space against the force of gravity. Type in the mass of the planet in kg. Type in the diameter of the planet.

<html>
<head>
	<meta http-equiv="Content-Script-Type" content="text/javascript">
	<meta NAME="Author" CONTENT="M.H.Fischer">
	<meta NAME="Description" CONTENT="Phobos v2">
<title>escapespeed - v2</title>
</head>
<body bgcolor=	"#000000" text=	"#ffffff" >
<center>
<form 	name="Test">
<h2>Escape from gravity of eg.mars moon PHOBOS - v2</h2>
  <HR>
<table>
<tr><td>
		squareroot mass M in kg (
</td><td>
		<input name="mass" value="11000000000000000">
</td><td>
		* 
</td></tr>
<tr><td>
		gravity 2G (2*6,67*10e-11) 
</td><td>
		<input name="G" value="0.0000000008602324614">
</td><td>/
</td></tr>
<tr><td>
		diameter d in meters m
</td><td>
		<input name="r" value="23000">
</td><td>
		)
</td></tr>
<tr><td>
		v2 
</td><td>
		<input 	type=button 
		value=" = calculate = " 
		onClick="Test.v2.value=Math.sqrt(Test.mass.value*Test.G.value/Test.r.value)">
</td><td>
&nbsp;
</td></tr>
<tr><td>
</td><td>
		<input name="v2"> m/s 
</form>
</td><td>
</tr>
</table>
<HR>
</center>
</body>
</html>

Log in or register to write something here or to contact authors.