How to get x after calculating 3^x * (3y+1)

Wang Jii

New member
Joined
Oct 25, 2019
Messages
1
Hey guys,

the question is how to get x after calculating 3^x * (3y+1). Want to write a python code for that problem but actually i dont know how to get x from the result in first place.

Thanks in adavance
 
Hey guys,

the question is how to get x after calculating 3^x * (3y+1). Want to write a python code for that problem but actually i dont know how to get x from the result in first place.

Thanks in adavance
This makes no sense. How do you calculate the expression without already knowing x?
 
Do you mean \(\displaystyle 3^x(y+ 1)= C\) where C is some given number? If C= 0, then y must be -1 and x can be anything. If C is not 0, then divide on both sides to get \(\displaystyle 3^x= \frac{C}{y+1}\) and then take the logarithm, of both sides. \(\displaystyle x log(3)= log\left(\frac{C}{y+1}\right)\) so \(\displaystyle x= \frac{log\left(\frac{C}{y+1}\right)}{log(3)}\).
 
Top