Question: % Variables % Inputs % Total pressure [ atm ] ( first input argument ) % Surface pressure [ atm ] ( second input argument
Variables
Inputs
Total pressure atmfirst input argument
Surface pressure atmsecond input argument
Height ftthird input argument
Outputs
Density
Function
function Rho Dens
Convert pressure to pascals
PtPa ; atm
PsPa Ps ;
Caluclate density
Rho
end
Code to call your function
;
Ps ;
RhoDens Pt Ps H;
Assessment: of Tests Passed
Function Check
Variable Rho has an incorrect value.
Check your calculations.
There is an issue with your function. Make sure that you used the correct function name, the calculations were correct, and the units were correct.
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
