Hello guys, I'm trying to use the int function to integrate the given function below:
syms T
R = 8.314e-5
CpS=(R*(1.702+(9.081e-3)*T+(-2.164e-6)*T^2))/T;
intCpS=int(CpS,298,500);
But the Matlab returns this result:
intCpS =
527894439476530787915169392877511447/1361129467683753853853498429727072845824+326286654811817103/2305843009213693952000*log(2)-326286654811817103/2305843009213693952000*log(149)+326286654811817103/2305843009213693952000*log(3)+978859964435451309/2305843009213693952000*log(5)
Anyone knows how to get the single number, resulting from this numeric expression?
Best Regards
Thiago Oliveira

 採用された回答

Oleg Komarov
Oleg Komarov 2011 年 8 月 9 日

0 投票

Add at the end:
double(intCpS)

1 件のコメント

Thiago Oliveira
Thiago Oliveira 2011 年 8 月 9 日
That's works Oleg!
Thank you very much!
Best Regards

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Programming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by