How to Integrate specific heat equation on matlab?

10 次查看(过去 30 天)
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!
  2 个评论
Dyuman Joshi
Dyuman Joshi 2023-5-3
What have you tried yet?
Here are some hints to help you - syms and int
Veronica Gabriel
Veronica Gabriel 2023-5-3
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)

请先登录,再进行评论。

回答(1 个)

Dyuman Joshi
Dyuman Joshi 2023-5-3
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 = 

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by