Ruby solar calculations


I’m trying to translate this:

into Ruby:

But my equation of time
declination of the sun are a bit off and I was wondering if somebody
could spot the error?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs