We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go has:
func altitude(H, phi, dec float64) float64 { return m.Sin(m.Sin(phi) * m.Sin(dec) + m.Cos(phi) * m.Cos(dec) * m.Cos(H)) }
js has: function altitude(H, phi, dec) { return asin(sin(phi) * sin(dec) + cos(phi) * cos(dec) * cos(H)); }
***************>>>>> asin vs sin for MoonPosition js seem to be closer to other progs
The text was updated successfully, but these errors were encountered:
Also is Azimuth off by 180 degrees when I convert from radians to degrees I seem to need to add 180 to get close to results from other sources
Sorry, something went wrong.
I just noticed there is a PR for this you might want to merge it
No branches or pull requests
go has:
func altitude(H, phi, dec float64) float64 {
return m.Sin(m.Sin(phi) * m.Sin(dec) + m.Cos(phi) * m.Cos(dec) * m.Cos(H))
}
js has:
function altitude(H, phi, dec) { return asin(sin(phi) * sin(dec) + cos(phi) * cos(dec) * cos(H)); }
***************>>>>> asin vs sin
for MoonPosition js seem to be closer to other progs
The text was updated successfully, but these errors were encountered: