log inv
Computes the inverse logarithm
Controller:
johnylol
Interface
#include <codecogs/maths/combinatorics/arithmetic/log_inv.h>
| double | log_inv (unsigned int base, double result)
Computes the inverse logarithm |
Use the following HTML code to embed the calculators within other websites:
| Name | HTML Code |
|---|
log_inv
Computes the inverse logarithm | |
Log Inv
Function to compute the inverse logarithm, by feeding it with the base and the result.
Example 1
- Computing
printf("Inverse logarithm of base 10 resulting 2: %d ",log_inv(10,2));
Output:
Inverse logarithm of base 10 resulting 2: 100
Note
- It 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 )
Authors
- Johny Void (November 2008)
Source Code
Source code is available when you agree to a GP Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.
You must login to leave a messge