(adsbygoogle = window.adsbygoogle || []).push({}); Calculating the equation of time and the declination of the sun

Hi,

I'm trying to calculate the equation of time and the declination of the sun in the prettiest way possible:

https://gist.github.com/1278755" [Broken]

But right now I'm getting some unexpected values:

Can anybody see what's wrong?Code (Text):1) Failure:

test_suns_declination(TestSolarCalculations):

Expected -3.18, not -0.8773192601265396.

2) Failure:

test_equation_of_time(TestSolarCalculations):

Expected 2011-10-01 10:23:00 +0100, not 301.80925318673167.

--Dwayne

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Failure to calculate equation of time and declination of the sun

Loading...

Similar Threads for Failure calculate equation |
---|

B Calculating Weight and mass of entire black hole |

I Calculating the incidence angle of the Sun |

I Calculate Voyager trajectory using JPL data |

A Calculating the Altitude of a Nominal Burst |

**Physics Forums | Science Articles, Homework Help, Discussion**