Skip to content

6.17 Engineering examples

Example: Gas equation

  • An equation used in physics and chemistry that relates pressure, volume, and temperature of a gas is PV = nRT.
  • P is the pressure, V the volume, T the temperature, n the number of moles, and R a constant.

The function below outputs the temperature of a gas given the other values.

The function below outputs the temperature of a gas given the other values.