Are there any good libraries for finding air density for Javascript/PHP? I’m not a total chemistry wiz!
Are there any good libraries for finding air density for Javascript/PHP? I’m not a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Finding the density of air doesn’t require a library, it’s just a single equation.
http://en.wikipedia.org/wiki/Density_of_air
For dry air you use:
density = pressure / (specificgasconstant * temperature)For humid air you use:
density = (drypressure / (specificdrygasconstant * temperature)) + (vaporpressure / (specificvaporgasconstant * temperature))That page has all the various equations you’d need to find the variable inputs (difference between the dry air pressure and the water vapor pressure in humid air) and the constants you’d need as well, and tells how to determine air density by altitude and all that.