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.9o C).
Step by Step Answer:
You could implement the function in any number of languages The followi...View the full answer
Numerical Methods For Engineers
ISBN: 9780071244299
5th Edition
Authors: Steven C. Chapra, Raymond P. Canale
Students also viewed these Numerical Analysis questions
-
An earthquake-produced surface wave can be approximated by a sinusoidal transverse wave. Assuming a frequency of 0.50 Hz (typical of earthquakes, which actually include a mixture of frequencies),...
-
The hypergeometric distribution can be approximated by either the binomial or the Poisson distribution. (Of course, it can be approximated by other distributions, but in this exercise we will...
-
A measure of real interest rates can be approximated by the Treasury Inflation-Indexed Security, or TIIS. Go to the St. Louis Federal Reserve FRED database, and find data on the five-year TIIS (FII5)...
-
Name each of the following compounds using R,S and E,Z (Section 3.5) designations where necessary: a. b. c. d. e. f. g. h. CH2CH3 H- CH3 H2CH C-C C-C CI Br CH,CH CH-CH,CH,CH, - H3C CH2CH2l CH2CH...
-
Use the depths (km) of the 600 earthquakes included in Data Set 21 "Earthquakes." Use a class width of 10.0 km and begin with a lower class limit of 0.0 km. Does the frequency distribution appear to...
-
Which of the following is not true of white blood cells? a. Formed in red bone marrow b. Carry oxygen and carbon dioxide c. Can leave the bloodstream and enter tissues d. Can fight disease and...
-
What is the most widely followed statistic in business? a. Gross profit b. Earnings per share c. Retained earnings d. Dividends
-
a. Firm D has net income of $66,640, sales of $2,380,000, and average total assets of $680,000. Calculate the firm's margin, turnover, and ROI. b. Firm E has net income of $300,000, sales of...
-
Suppose you bought ABC stock at $50 and sold a $54 Call expiring in December for $1. Name the strategy, calculate break-even, max. profit, max. loss and describe the rationale of using the strategy....
-
The director of advertising for the Carolina Sun Times, the largest newspaper in the Carolinas, is studying the relationship between the type of community in which a subscriber resides and the...
-
Economic formulas are available to compute annual payments for loans. Suppose that you borrow an amount of money P and agree to repay it in n annual payments at an interest rate of i. The formula to...
-
Develop, debug, and test a program in either a high-level language or a macro language of your choice to compute the velocity of the falling parachutist as outlined in Example 1.2 Design the program...
-
You are auditing a bank, and someone provides you with an anonymous tip that an employee is embezzling money from the bank. You decide to investigate the allegation. Your interviews with other bank...
-
What are the differences between exchange-traded and over-the-counter currency options?
-
In what sense is a currency call option also a currency put option?
-
How are swaps related to forward contracts?
-
What is discounting, and how is it used in international trade?
-
Why use a freight shipper?
-
If HiFly and Sky Systems attempt to merge, the increase in the HerfindahlHirschman Index (HHI) and the probable action by the Department of Justice and the FTC, respectively, in response to the...
-
If a force of F = 50 Ib is applied to the pads at A and C, determine the smallest dimension d required for equilibrium if the spring has an unstretched length of 1 ft. B 1 ft 1 ft F k = 15016/fr 1ft...
-
(+)-Coniine is the toxic component of the poison hemlock, the plant believed to have killed Socrates. Coniine has the molecular formula C 8 H 17 N. When coniine is exhaustively methylated, and the...
-
Under a number of simplifying assumptions, the steadystate height of the water table in a one-dimensional, unconfined groundwater aquifer (Fig. P28.30) can be modeled with the following second-order...
-
A linearized groundwater model was used to simulate the height of the water table for an unconfined aquifer. A more realistic result can be obtained by using the following nonlinear ODE: Where x =...
-
The Lotka-Volterra equations described in Sec. 28.2 have been refined to include additional factors that impact predator-prey dynamics. For example, over and above predation, prey population can be...
-
d The Alberta Mining and Export Corporation (AMEC) has operations at several locations throughout the province of Alberta in Western Canada. AMEC reports under IFRS as a publicly traded company. AMEC...
-
Compare and contrast the revenue recognition criteria in the two different industries: ( i ) Sale of goods in a supermarket and ( ii ) Construction services. Explain specifically in context to the...
-
Sarah is a CPA working in financial reporting for a large private company. If she accepts gifts from a vendor of her company, and if those gifts are not reasonable given the circumstances, what rule...
Study smarter with the SolutionInn App