The average daily temperature for an area can be approximated by the following function, T = T

Question:

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.9C).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Numerical Methods For Engineers

ISBN: 9780071244299

5th Edition

Authors: Steven C. Chapra, Raymond P. Canale

Question Posted: