This problem is posed considering the node.js server, but I asked the question as "javascript" because I will most likely use the same logic for the client side of the script.
Here's the problem: for a given set of values, xy needs to scale logarithmically. The Math object executes the natural log [ ln(x) ], but does not provide an interface for specifying the logarithm base.
For a specific example, I need to find the following:
log[512](2)
Which should return .1111 ~
However, I do not see the interface that allows me to do this, and I cannot find a library that provides an opportunity for the log database. Of course, this is a common problem and has a solution, but my search found solutions only for different / unrelated problems. Ideas?
Aejay source share