FUNCTION
log_inv
Computes the inverse logarithm
You're viewing an older version of this page (#5687). View the current version.
Interface
#include <codecogs/maths/combinatorics/arithmetic/log_inv.h>
using namespace Maths::Combinatorics::Arithmetic;
Function to compute the inverse logarithm, by feeding it with the base and the result.
Example 1
Computing
$$\log_{10} x = 2$$
(1)
#include <cstdio>
#include <codecogs/maths/combinatorics/arithmetic/log_inv.h>
int main()
{
printf("Inverse logarithm of base 10 resulting 2: %.0f ", Maths::Combinatorics::Arithmetic::log_inv(10, 2));
return 0;
}Output:
Inverse logarithm of base 10 resulting 2: 100It will return -1 for incorrect base input ( good input goes from +1* to +infinite).
* - +1 means the first number right after 1 (ie. 1,0001).
Parameters
base
Any value above 1
result
Any value (even negative)
Returns
The value to apply the logarithm operator ( log x )
Interactive Calculator
base
result
Result
Computing…
Set a range above first to export a graph.
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.