Calculating Daylight Hours Using Trigonometry

  • Thread starter Thread starter TonyC
  • Start date Start date
Click For Summary
The discussion centers on calculating the total hours of daylight in a town on the west coast of North America using the formula h=3.75sin[2pi/365(d-79)] + 12. One participant initially calculated 1355.6 hours of daylight between March 29 and June 29, but others pointed out potential errors in the calculation and suggested using a step-by-step approach. Another participant provided corrected totals of 1369.77 hours and 1357.18 hours for different date ranges. The conversation also delves into using summation formulas and trigonometric identities to derive a general formula for calculating daylight hours. Accurate calculations and understanding of the formula are emphasized throughout the discussion.
TonyC
Messages
86
Reaction score
0
The number of hours of daylight in a town on the west coast of North America can be modeled by:

h=3.75sin[2pi/365(d-79)] + 12

Where h is the number of hours of daylight in a day and d is the day of the year, with d=1 representing January 1 (assume 28 days in Feb). What is the total accumlated number of hours of daylight by a town between Mar 29 and June 29.

I worked the problem and came up with 1355.6 hours.

Am I good to go?
 
Physics news on Phys.org
You proberlly ment the formula more like this: h=3.75sin[(2pi/365)(d-79)] + 12. In the previous form it would be undefined for the 79th day and as far as I know all days have a real number of hours. As for your resoult I can't even imagine a way to get more than 15.75 hours. You probelly just made a mistake when tiping it in your calculator. I would sugest taht you do it in steps and not all at once :wink: .
 
I don't know how you got your result but I wrote a program to work it out!

Taking March 29 as day 88 and June 29 as day 180, I got the following,

day 88 to day 180 inclusive: total hrs = 1369.77
day 89 to day 180 inclusive: total hrs = 1357.18
 
You can write a general formula by summing the sequence of sines. Use Euler's formula for the trig functions and sum it as geometric series.
 
The hours of sunlight from day n to day N inclusive is:

12(N - n + 1) + 3.75\sum _{d = n} ^{d = N}\sin \left (\frac{2\pi (d - 79)}{365}\right ) = 12(N - n + 1) + 3.75\sum _{d = n - 79} ^{N - 79}\sin \left (\frac{2\pi d}{365}\right )
 
This may help:

\sum_{n = a}^{b} \sin nx = \frac { \cos x(a-1/2) - \cos x(b+1/2)} {2 \sin x/2}

(Edited: YIKES! Sorry, akg! I went dyslexic when I typed it and interchanged the x with the a and b!)
 
Last edited:
Wait a minute, what if a = b = 1?

sin(x) = [cos(x - 1/2) - cos(x + 1/2)]/2sin(x/2)
= [cos(x)cos(1/2) + sin(x)sin(1/2) - cos(x)cos(1/2) + sin(x)sin(1/2)]/2sin(x/2)

= sin(x)sin(1/2)/sin(x/2)
sin(x/2) = sin(1/2)

That doesn't seem right. Where did you get that formula from?
 
It seems right now.

I used tide's sum of sines formula in akg's expression for hours of sunlight and got the same results as my computer.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K