|
I'm having a few issues thinking today. I'm trying to decide on the best (and simplest) way to approach this problem... I've been making a program that calculates the terminal velocity of a gigantic list of objects. One of the many variables of calculating the terminal velocity, however, is Air Density. Basically, as we all know air density changes due to temperature and pressure (mostly). So basically I'll worry about altitude... However, air density after just a few kilometers is almost cut in half meaning if I just used an "average" from whatever the user inputs as an altitude, convert that to kg/m^3 and take the average from that and sea level, I will have one hell of a % error. I'm wondering how I can have the user input just an altitude and have my program give some sort of output that's relatively accurate (under 5% error woiuld be great). Some sample densities I calculated would be roughly, at sea level, 1.2250 kg/m^3; 1 km, 1.1117 kg/m^3; and 2 km would be roughly 1.0066 kg/m^3. Let's say the user types in 2 kilometers, how might one go about getting a more accurate result than just using the average of sea level and 2 km?
This post has been edited by eLliDKraM: 22 Nov, 2005 - 07:35 PM
|