### The Maxima on-line user's manual

Algebra Calculator

#### Hipow

Function: hipow (<expr>, <x>) Returns the highest explicit exponent of <x> in <expr>. <x> may be a variable or a general expression. If <x> does not appear in <expr>, `hipow` returns `0`.

`hipow` does not consider expressions equivalent to `expr`. In particular, `hipow` does not expand `expr`, so `hipow (<expr>, <x>)` and `hipow (expand (<expr>, <x>))` may yield different results.

Examples:

```          (%i1) hipow (y^3 * x^2 + x * y^4, x);
(%o1)                           2
(%i2) hipow ((x + y)^5, x);
(%o2)                           1
(%i3) hipow (expand ((x + y)^5), x);
(%o3)                           5
(%i4) hipow ((x + y)^5, x + y);
(%o4)                           5
(%i5) hipow (expand ((x + y)^5), x + y);
(%o5)                           0```

```(%o1)                                true
(%i2) ```

### Related Examples

##### hipow-length-makelist

equ: ut-v*vx;

eqv: vt-ux*vxx;

eqlist: [[u,0,0,equ],...

Calculate

##### hipow-num-reveal-sqrt

reveal((sqrt(h+3)-sqr...

hipow(num((sqrt(h+3)-...

Calculate

##### hipow-is

hipow("x=1",x);

is(hipow("x=1",x)=1);

is(hipow("x=1",x)=1 a...

Calculate

##### hipow-is-lopow

hipow(x=1,x);

lopow(x=1,x);

is(hipow(x=1,x)=1);

Calculate

##### hipow-resultant

eq1: x+x^1*y^3+a;

eq2: x^11+y^17+b;

r1: resultant(eq1,eq2...

Calculate

##### hipow-lopow-ratexpand

f: ratexpand((a*x+b)/...

hipow(f,x);

lopow(f,x);

Calculate

##### hipow-is-lopow

eq:x;

is(lopow(eq,x)=1);

true and true;

Calculate

##### hipow-resultant

eq1: x+x^2*y^3+a;

eq2: x^11+y^17+b;

r1: resultant(eq1,eq2...

Calculate