Fixed in Version 14.0
According to Exponent
:
Exponent[expr, form]
gives the maximum power with whichform
appears in the expanded form ofexpr
.Exponent[expr, form, h]
appliesh
to the set of exponents with whichform
appears inexpr
.- The default taken for
h
isMax
.
So Exponent[..., …, Max]
is equivalent to Exponent[..., …]
.
But how to explain the following output?
In[1]:= Exponent[x, Sqrt[x]]
Out[1]= 2
In[2]:= Exponent[x, Sqrt[x], Max]
Out[2]= 1
In[3]:= Exponent[Sqrt[x], Sqrt[x], Defer]
1
Out[3]= Defer[-]
2
Isn't this a bug?
List
as the 3rd argument to get all the exponents. ButExponent[x, Sqrt[x]]
gives2
andExponent[x, Sqrt[x], List]
gives{1}
. $\endgroup$Exponent[x, Sqrt[x]]
return0
(instead of2
)? And shouldn'tExponent[Sqrt[x], Sqrt[x], Identity]
return1
(rather than1/2
)? $\endgroup$