フィルターのクリア

Could you help me with the simplification of these kind of results?

2 ビュー (過去 30 日間)
El Vapor
El Vapor 2020 年 6 月 29 日
コメント済み: Walter Roberson 2020 年 6 月 29 日
Really, I don't understand why Matlab is so horrible at making a decent simplification of fractions:
Look at this:
For example, the first result is just this:
How can I get a better simplification of these kind of results? I've tried simplify + other commands but just can't, it doesn't work
  1 件のコメント
John D'Errico
John D'Errico 2020 年 6 月 29 日
編集済み: John D'Errico 2020 年 6 月 29 日
How many times will you ask the same question? How is this question fundamentally different from the last time you asked it?
That you think 1/sqrt(2) is simpler than sqrt(2)/2, is just your personal preference, a choice made by you, but apparently not preferred by symengine.
1/sqrt(sym(2))
ans =
2^(1/2)/2
I expect we will hear again, asking about a truly novel problem, like 1/sqrt(3).
Thankfully, you may give up by the time we get to 4.
1/sqrt(sym(4))
ans =
1/2

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

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 6 月 29 日
Did you simplify() telling it to ignore analytic constraints?
If p0 is 0 then the expression to the power 0 would be 0^0 which is undefined. If you put in a constraint that forces p0 to be nonzero and m to be finite then the power 0 could be simplified.
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 6 月 29 日
Ah, is that a list of three different values, or is it a single expression that continues over multiple lines with the second term of the subtraction being raised to power 0?

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

カテゴリ

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

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by