Re: Calculating a planet\'s mass & gravitational pull
Yeah, I thought it looked ok, but all the numbers come out wrong.
Here's the line from the code. Something just has to be wrong with it, but I'll be stuffed if I can figure it out.
cells[radius].value=Math.pow(((cells[gravity].value/GRAV)/cells[mass].value),1/3)/1000;
I've also just put in an alert statement to display the output of the same calculation (in case the number was getting jiggered about elsewhere) but apparently it isn't.
[ August 27, 2003, 14:11: Message edited by: dogscoff ]
|