From 027223c7bb40da4937be0c0db6532e0363c73a73 Mon Sep 17 00:00:00 2001 From: Dave Goodwin Date: Sat, 9 Oct 2004 18:58:13 +0000 Subject: [PATCH] removed use of pow --- ext/tpx/RedlichKwong.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/tpx/RedlichKwong.h b/ext/tpx/RedlichKwong.h index 6f1162659..5861e60df 100644 --- a/ext/tpx/RedlichKwong.h +++ b/ext/tpx/RedlichKwong.h @@ -21,7 +21,7 @@ namespace tpx { m_mw = MolWt; // compute the a and b parameters - m_a = 0.42748*GasConstant*GasConstant*pow(m_tcrit, 2.5)/m_pcrit; + m_a = 0.42748*GasConstant*GasConstant*m_tcrit*m_tcrit*sqrt(m_tcrit)/m_pcrit; m_b = 0.08664*GasConstant*m_tcrit/m_pcrit; }