Robert Mohr rmohr2002@hotmail.com Gas Laws This is a collection of functions that solve various gas law equations. Syntax: science\p1v1p2v2(Pressure1,Volume1,Pressure2, Volume2) science\p1t1p2t2(Pressure1,Temperature1, Pressure2,Temperature2) science\pv_nrt(Pressure,Volume,Moles,R, Temperature) science\pvt_pvt(Pressure1,Volume1, Temperature1,Pressure2,Volume2, Temperature2) science\v1t1v2t2(Volume1,Temperature1, Volume2,Temperature2) Instructions Just put any variable into the spot for what you want to solve for (the variables tt1, tt2, tt3, tt4, tt5, tt6, ti, tf, ts, and tr may cause problems). I realize it might make more sense to not require the value of the R constant, but I decided that sometimes the value of the R constant needs to be proved, and that people may have been taught different values for the R constant (8.3, 8.31, 8.314, etc.), If you don't like this, just put in _Rc instead of 8.314_J/(_mol*_°K). Units are not required to be used, but if units are used in one part of the equation, they must be used in all. Also, the moles of a system rarely change, so I haven't included a program that deals with them. If, for some reason, the moles do change, use p1v1p2v2 to relate moles to temperature, and p1t1p2t2 to relate moles to pressure, and v1t1v2t21 to relate moles to volume. They will work fine. The function rem_unit is required for each of these functions. Don't delete it. History This is the first and (hopefully) final release of Gas Laws. It wouldn't be hard for me to modify these functions to fit other equations in math, chemistry, and physics, but I don't feel like doing them all now. If you want a group of equations done, just email me and I'll do them ASAP. Legal Stuff You may reproduce these files under the terms of the GNU General Public License, version 2 or any later version. A copy of the GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html or by mailing the following address: Free Software Foundation, Inc. 59 Temple Place - Suite 330 Boston, MA 02111, USA