GaseousAbsorptionAlgo { float getExponential(float atmosphericGas, float normConcentration, float massAir) { final float calValue = -atmosphericGas * normConcentration * massAir; return (float) Math.exp(calValue); }    }
@Test public void testGetExponential() { assertEquals(2.7182817459106445, gaseousAbsorptionAlgo.getExponential(1, -1, 1), 1e-8); assertEquals(0.36787945, gaseousAbsorptionAlgo.getExponential(1, 1, 1), 1e-8); assertEquals(1.0, gaseousAbsorptionAlgo.getExponential(1, 0, 1), 1e-8); }