int function does not return a single number

1 view (last 30 days)
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

Accepted Answer

Oleg Komarov
Oleg Komarov on 9 Aug 2011
Add at the end:
double(intCpS)

More Answers (0)

Community Treasure Hunt

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

Start Hunting!