Given b^{x} = v, how do we find b, x, and v respectively given the other 2 values?

v = b^{x}

x = log_{b}v

b = v^{1/x}

Now in Python:

from math import pow, log v = pow(b, x) x = log(v, b) b = pow(v, 1.0/x)

Skip to content
# klenwell Press

## A Developerâ€™s Broadsheet

#
math

# Basic Exponentiation

Given b^{x} = v, how do we find b, x, and v respectively given the other 2 values?

v = b^{x}

x = log_{b}v

b = v^{1/x}

Now in Python:

from math import pow, log v = pow(b, x) x = log(v, b) b = pow(v, 1.0/x)