actually pow(M_E, x) is exp(x)

This commit is contained in:
CAHEK7 2016-08-26 14:09:24 +03:00
parent 7bf7d9df09
commit d948cdb265

View File

@ -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() {