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

1 Kommentar

syms x a;
assume(x>0)
x=exp(a)
x = 
simplify(x^(1/log(x)),'IgnoreAnalyticConstraints',true)
ans = 
e

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Friedrich
Friedrich am 12 Sep. 2014

1 Stimme

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

1 Kommentar

John Billingham
John Billingham am 12 Sep. 2014
The answer to your question is clearly 'no'! It seems crazy that you have to do that for such a simple expression.
Thanks

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by