View Single Post
  #23  
Old August 27th, 2003, 03:06 PM
dogscoff's Avatar

dogscoff dogscoff is offline
General
 
Join Date: Mar 2001
Location: UK
Posts: 4,245
Thanks: 0
Thanked 0 Times in 0 Posts
dogscoff is on a distinguished road
Default 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 ]
Reply With Quote