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

15 ビュー (過去 30 日間)
John Billingham
John Billingham 2014 年 9 月 12 日
コメント済み: jin yong 2023 年 2 月 8 日
>> 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 件のコメント
jin yong
jin yong 2023 年 2 月 8 日
syms x a;
assume(x>0)
x=exp(a)
x = 
simplify(x^(1/log(x)),'IgnoreAnalyticConstraints',true)
ans = 
e

サインインしてコメントする。

採用された回答

Friedrich
Friedrich 2014 年 9 月 12 日
Hi,
have you tried increasing the number of simplification steps?
>> simplify(x^(1/log(x)),'steps',10)
ans =
exp(1)
  1 件のコメント
John Billingham
John Billingham 2014 年 9 月 12 日
The answer to your question is clearly 'no'! It seems crazy that you have to do that for such a simple expression.
Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by