Question: A question about obtaining power of a variable

Dear everyone,

  Hello,  I have a question about obtaining the power of a variable. Suppose



I got 5.

now let f:=x^n;


I got FAIL :(  I tried g:=log[x](f), it doesn't go to "n" either.


Is there anyway I can simply get the "n" in x^n? I know "n" is an integer, but how to refine into integer type?


Thank you very much in advance

Please Wait...