Question: A question about obtaining power of a variable

April 18 2012 smith_alpha 40
Maple

0

Dear everyone,

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

f:=x^5;

g:=degree(f,x);

I got 5.

now let f:=x^n;

g:=degree(f,x)

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...