How to Integrate specific heat equation on matlab?

조회 수: 11 (최근 30일)
Veronica Gabriel
Veronica Gabriel 2023년 5월 3일
답변: Dyuman Joshi 2023년 5월 3일
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