mirror of
https://github.com/amperka/TroykaMQ.git
synced 2025-03-14 20:17:35 +03:00
actually pow(M_E, x) is exp(x)
This commit is contained in:
parent
7bf7d9df09
commit
d948cdb265
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user