I have a simple formula and I want to use it in C++ application. Not sure how to rewrite in C++.
logn(5, abs((a*b - d*c) / (tan(c) + sin(d))))
where logn is:
logn
double logn(double base, double x) { return log(x) / log(base); }
and the header cmath is included for the other functions.
cmath