Question: PROBLEM 2 ( 2 5 points ) : The relative humidity, RH , at sea level can be calculated from measured val - ues of
PROBLEM points:
The relative humidity, RH at sea level can be calculated from measured val
ues of the drybulb temperature, Tdb and the wetbulb temperature Twb by
temperatures in degrees Celsius:
RHVPSVP
where VP is the vapor pressure given by:
VPeTwbTwbTwbTdbTwb
and VP is the saturated vapor pressure given by:
SVPeTdbTdb
Write a userdefined function for calculating RH for given Tdb and Twb For
the function name and arguments, use deg F The output argument RH is the relative humidity in
percent rounded to the nearest integer Inside the userdefined function
use a subfunction, or an anonymous function to convert the unit of the tem
perature from Celsius to Fahrenheit. Use the function to determine the rela
tive humidity for the following conditions:
a Tdbdeg FTwbdeg F
b Tdbdeg FTwbdeg F
Note: the subfunction should convert Fahrenheit to Celsius not Celsius to Fahrenheit.
Note that the exponential portion of the equation for V P is the same as that for S V P except values of Tw b instead of Td b are substituted in Use a nested function to calculate S V P and the exponential portion of V P Also, use a subfunction to convert your input temperatures from Fahrenheit to Celsius
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
