Solved
OK, confusion is perfect now.
Yes, you used Theta1 and Theta3 to calculate the initial value for Sun and Stars. The iteration process itself uses only Theta2 for all three.
From what you write it seems as the two variations I had provided will both do the job, right?
Nevertheless find a third variant attached which makes more compact use of the vectors and matrices, letting them start with 0 rather than with 1.

Welcome to the PTC Community
No account yet? Create an account
Please use your PTC eSupport account.
LoginEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.

