From d948cdb265aa0c82a7b9ef3575cadad95912188c Mon Sep 17 00:00:00 2001 From: CAHEK7 Date: Fri, 26 Aug 2016 14:09:24 +0300 Subject: [PATCH] actually pow(M_E, x) is exp(x) --- BaseMQ.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseMQ.cpp b/BaseMQ.cpp index 5c91101..7a7f0c7 100644 --- a/BaseMQ.cpp +++ b/BaseMQ.cpp @@ -67,7 +67,7 @@ float BaseMQ::readRs() { int readScaled(float a, float b) { float ratio = readRatio(); - return pow(M_E, (log(ratio)-b)/a); + return exp((log(ratio)-b)/a); } float BaseMQ::getRo() {