Solving for a boundary in an integral with known value?

4 ビュー (過去 30 日間)
Guster
Guster 2017 年 12 月 15 日
コメント済み: Guster 2017 年 12 月 15 日
The assignment has to do with calculating flame-temperature of a reaction. To to this i need to solve the problem
dH = nCp(T)dT
  • dH is known for the reaction
  • I have the lower boundary of the integral
  • n is known
  • Cp(T) is known, it shiftes at certain temperatures, all of which are known
I need to find the upper limit of this complex integral (Cp(T) is of order 5) How would I do this in matlab in general?

採用された回答

Birdman
Birdman 2017 年 12 月 15 日
編集済み: Birdman 2017 年 12 月 15 日
One approach:
syms x n
eq=4==int(x^5+2*x^4+x^3-x^2-3,1,n);
sol=double(vpasolve(eq))
ind=find(sol>0);
%extract real solution below
sol=sol(ind);
solReal=sol(1)
Try to adapt this into your problem.
  3 件のコメント
Birdman
Birdman 2017 年 12 月 15 日
編集済み: Birdman 2017 年 12 月 15 日
Above solves for n.
You would take the integral up to discontinuous point. For instance if the point is 6, then:
eq=4==int(x^5+2*x^4+x^3-x^2-3,0,6)+int(x^5+2*x^4+x^3-x^2-3,6,n);
You need to divide the calculation.
Check this comment.
Guster
Guster 2017 年 12 月 15 日
Thanks for your help, maybe you can also help on this? https://se.mathworks.com/matlabcentral/answers/373138-adding-functions-of-the-same-variable-to-form-a-new-function

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

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by