How to Integrate specific heat equation on matlab?

6 views (last 30 days)
I am new to matlab and I am having a hard time on integrating the equation below on matlab which is necessary for my coding project.
deltaH/deltaT = R*(a+bT+c/T)+dlnT+eT^2)
Please help me, thank you!
Vernice Gallano
Vernice Gallano on 3 May 2023
I tried doing this, but the answer that I get is wrong. My goal is to find the formula of delta H and solve for ta.
syms dh T
dh = r*(a+b*T+c/T+d*log(T)+e*T^2);
int (dh,T,ta,tref)

Sign in to comment.

Answers (1)

Dyuman Joshi
Dyuman Joshi on 3 May 2023
You need to define a, b, c, d, e, r as well, either as numerical values or as symbolic variables -
%Here I have defined a, b, c, d, e, and r as symbolic variables
syms dh T a b c d e r
dh = r*(a+b*T+c/T+d*log(T)+e*T^2);
%taking random values for ta and tref
val = int(dh,T,1,2)
val = 

Community Treasure Hunt

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

Start Hunting!