Python Forum

Full Version: need help with math functions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I have these two codes here that i need to use math.sqrt for the 1st code and math.pow for the 2nd code, can anyone guide me how to do it?

x = 100 * (((f/i) ** (1.0/n)) -1)
b = i * ((1 + (x/100)) ** y)
it's straight forward and the docs are clear. What problem you have? Show your attempt at using them
math.pow
math.sqrt
note that in the first one math.sqrt will work only for n=2. You can use math.pow for both.