For starters, sine is negative in the third quadrant, so the third term will be negative. Question is, is it greater in magnitude than the other two terms?
Also, have you made sure that your calculator is in degree mode?
For the sake of interest only ..
I am trying to build an applicatin that will predict the position of the sun in the sky (horizontal and vertical angle) for any given date and geographical location for any of the planets in our solar system.
So far so good, but ...
The following sum, I am reliably informed, should equate to: 1.9142°
1.9148° * sin(87.1807°) + 0.0200° * sin(2 * 87.1807°) + 0.0003° * sin(3 * 87.1807°)
I am getting: -1.3721
I'm probably making a school boy error.
Any help would be welcome.
Regards
Ben Stevens
For starters, sine is negative in the third quadrant, so the third term will be negative. Question is, is it greater in magnitude than the other two terms?
Also, have you made sure that your calculator is in degree mode?
Many thanks Kalyanram ..
I now know that I'm wrong at least.
I am working with Visual Basic in .Net
I get the following componet parts to the equation.. which would appear to be wrong.
?Math.Sin(M)
-0.7060425903472024
?Math.Sin(2 * M)
-0.99999547679626677
?Math.Sin(3 * M)
-0.71028974892604
I should think I need to be looking at how VB calculates the SIN of a given angle.
Once again.
Many thanks
Thanks Prove It.
I haven't checked, but I will.
As I have said in another reply, I am working in VB .Net.
Assuming kalyanram is correct, the vb .Net SIN function is returning an unexpected result.
I'm probably not using it correctly.
Once again.
Many thanks