MATLAB: Problem with simplify(x^(1/log(x)).

simplifysymbolicSymbolic Math Toolbox

>> sym x;
>> assume(x>0)
>> simplify(x^(1/log(x)),'IgnoreAnalyticConstraints',true)
>> ans = x^(1/log(x))
Note that x^(1/log(x))=e. Why won't this expression simplify?

Best Answer

Hi,
have you tried increasing the number of simplification steps?
>> simplify(x^(1/log(x)),'steps',10)
ans =
exp(1)