integral of a function

2 ビュー (過去 30 日間)
xinyu
xinyu 2013 年 10 月 24 日
コメント済み: xinyu 2014 年 3 月 2 日
I have an ans for integral calculation
R = piecewise([1/(T*k) < 0, (E0/(T*k) - (E0*Inf)/(T*k))/(1 + Inf*(- infinity/(T*k) - 1))], [0 < real(1/(T*k)), E0/(T*k)])
the truth is in my situation
0 < real(1/(T*k))
is always true, therefore what I need is just the result as
E0/(T*k)
because this result need to be insert into another equation to be simplified, I hope I can tell MATLAB that
0 < real(1/(T*k))
is true or I can extract the term
E0/(T*k)
from the piece-wise function. Can anyone please tell me how can I do it, thanks a lot.

採用された回答

Walter Roberson
Walter Roberson 2013 年 10 月 25 日
I suggest trying to use an assume() and then a simplify()
In Maple I would use
simplify(R) assuming 0 < real(1/(T*k))
  1 件のコメント
xinyu
xinyu 2014 年 3 月 2 日
that totally works, thanks a lot.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by