[Solved] Why does my own power function, when used for calculating roots returns wrong result?

Your function didn’t work because its implementation uses a method that’s typically used for explaining powers intuitively (“take the number 1 and multiply it exponent times by the base“). However, that method is only applicable for natural numbers. It is not the actual mathematical definition for powers with arbitrary exponents. If you want to have … Read more