Question: The average daily temperature for an area can be approximated by the following function, T = T mean + (T peak T mean )
The average daily temperature for an area can be approximated by the following function,
T = T mean + (T peak – T mean) cos (ω (t – t peak))
Where T mean = the average annual temperature, T peak = the peak temperature, ω = the frequency of the annual variation (= 2π/365), and t peak = day of the peak temperature (≈ 205 d).Develop a program that computes the average temperature between two days of the year for a particular city. Test it for
(a) January – February (t = 0 to 59) in Miami, Florida (T mean = 22.1o C; T peak = 28.3o C), and
(b) July–August (t = 180 to 242) in Boston, Massachusetts (T mean = 10.7o C; T peak = 22.9o C).
Step by Step Solution
3.40 Rating (184 Votes )
There are 3 Steps involved in it
You could implement the function in any number of languages The followi... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
45-M-N-A-M-E-A (31).docx
120 KBs Word File
