mirror of
https://github.com/amperka/TroykaMQ.git
synced 2025-07-01 01:01:04 +03:00
actually pow(M_E, x) is exp(x)
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user