archimedes-principle
I had a question about helium...
The following script will serve as the example for this readme by answering that question with the help of Archimedes' principle and the ideal gas law ...
// install: `npm install gas-density-calcuator archimedes-principle`var gaslaw = ;var archimedes = ; // What volume of helium at standard pressure and temperature is required to lift one kilogram total mass? var totalMass = 1; // First get the density of helium at STPvar densityHelium = gaslaw; // now get the density of air at STPvar densityAir = gaslaw; // Now determine the volumevar minVolume = archimedes; var gallons = minVolume * 26417; console;
Let's run it:
luchia :: ~/Projects/archimedes-principle ‹master*› » node helium.js
at standard temperature and pressure, a 238 gallon bag filled with helium can probably make 1kg mass bouyant