One approach would be to find out how the pow function may be implemented (search term may be "math pow implementation"). This should give you code examples for special cases (e.g. second argument is integer,
Exponentiation by squaring - Wikipedia, the free encyclopedia[
^]) or the implementations of math libraries (e.g. within the GNU C standard library). While the results might be hard to understand for a beginner, they should be valid answers for your professor (show the necessary effort).
Another approach is looking for a mathematical analogon for the
pow
function which should give you
pow(x, y) = exp(log(x) * y)
While this is a good solution from the mathematical point of view, it is problematic when implementing it using a programming language because the result can become inaccurate.