POV-Ray : Newsgroups : povray.advanced-users : Calculating planet positions : Re: Calculating planet positions Server Time
19 Apr 2024 07:58:52 EDT (-0400)
  Re: Calculating planet positions  
From: Mike Horvath
Date: 16 Sep 2018 15:00:25
Message: <5b9ea849$1@news.povray.org>
https://ssd.jpl.nasa.gov/txt/aprx_pos_planets.pdf

I am a little confused about the "Solution of Kepler's Equation" on Page 
2 of this document. Have I implemented it correctly do you think?

	#local Orrery_Temp_EStar						= 180/pi * Orrery_Temp_Eccentricity;
	#local Orrery_Temp_EccentricAnomaly				= Orrery_Temp_MeanAnomaly + 
Orrery_Temp_EStar * sind(Orrery_Temp_MeanAnomaly);
	#local Orrery_Temp_EccentricAnomalyTolerance	= 10e-6;
	#local Orrery_Temp_EccentricAnomalyDelta		= 0;
	#while (abs(Orrery_Temp_EccentricAnomalyDelta) > 
Orrery_Temp_EccentricAnomalyTolerance)
		#local Orrery_Temp_MeanAnomalyDelta				= Orrery_Temp_MeanAnomaly - 
(Orrery_Temp_EccentricAnomaly - Orrery_Temp_EStar * 
sind(Orrery_Temp_EccentricAnomaly));
		#local Orrery_Temp_EccentricAnomalyDelta		= 
Orrery_Temp_MeanAnomalyDelta/(1 - Orrery_Temp_Eccentricity * 
cosd(Orrery_Temp_EccentricAnomaly));
		#local Orrery_Temp_EccentricAnomaly				= Orrery_Temp_EccentricAnomaly 
+ Orrery_Temp_EccentricAnomalyDelta;
	#end



Mike


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.