recalculate function

Recalculate gas-exchange data based on a set of equations.