Stuck on thinking problem set and I'm looking for some help from you. What I need to find is coefficients ($A$, $B$ and $C$) in the following equation using least squares fit. ($\ln P=A + B/T + C\ln T$)
Log[P]==A+B/.T+C*Log[T]
T = {600, 650, 700, 750, 800, 850, 900, 950, 1000}
P = {0.124, 0.627, 2.492, 8.187, 23.06, 57.24, 127.9, 261.6, 496.5}
PLog={-2.08747, -0.466809, 0.913086, 2.10255, 3.1381, 4.04725, 4.85125, 5.56682, 6.20758}
TLog={6.39693, 6.47697, 6.55108, 6.62007, 6.68461, 6.74524, 6.80239, 6.85646, 6.90776}
I tried to fit this by $y=ax+b$ form but there is a $b/T$ term and I don't know how to deal with it. PLog
and TLog
is natural log value for $P$ and $T$ respectively.
How can I find $A$, $B$ and $C$ in this situation using least squares fit? Please give me some hints. Thank you so much!