1
0
Fork 0
spectre/source/Math/Logarithm.cpp

18 lines
261 B
C++

// Logarithmic functions.
#include <cmath>
#include <Spectre/Math/Math.h>
namespace sp {
double math::log(double base, double value) {
return ::log10(value) / ::log10(base);
}
double math::log2(double value) {
return ::log2(value);
}
} // namespace sp