Skip to main content
1-Visitor
March 28, 2019
Solved

Multiple Function Fitting

  • March 28, 2019
  • 2 replies
  • 5195 views

I am somewhat new to fitting data using Mathcad (15), so I apologise if this is a stupid question.

 

I have experimental data on the temperature dependence of the molar volume (Vm) and isochoric specific heat (Cv) of a compound.The former is related to the internal energy, the latter to the first derivative of the internal energy. If I use Debye-based models, then the Debye temperature is a common variable for both functions, the molar volume includes two additional variables. The number of data points for the two independent data sets is different. I can fit each function separately, but I wish to fit them simultaneousy to determine the best estimate of the Debye temperature.

 

Is there a simple way of carrying out multiple function fitting in Mathcad?

 

Many thanks

 

Kevin

Best answer by Werner_E

So you are looking for a common fit value thetaD ?

maybe the attached file helps.

For convenience I embedded the data into the file.

I got rid of your ranges "i" and used vectorization instead of the indexed variables.

Instead of using a single value to fit (the result of the SSD function) I give Mathcad the full vector of difference values to play with. This may give better results sometimes but in your case there seems to be no difference.

The sorting of the data in Vm is not necessary but makes for a nicer plot.

 

2 replies

23-Emerald IV
March 28, 2019

Don't worry, there's no such thing as a 'stupid question'.

 

Where's the Mathcad worksheet?

 

Luc.

1-Visitor
March 29, 2019

Thank you for replying Luc

I have uploaded the heat capacity fit, that works, and the molar volume, that doesn't (and I'm sorry, I don't know why).

 

What I am trying to do is to simultaneously fit the two sets of data to the Debye expressions to derive a self-consistent Debye temperature. If this is possible, I will try more sophisticated models to the data that should fit them better.

25-Diamond I
March 30, 2019

In the definition of SSD you erroneously used Vm instead of V.

If you change that the Vm.sheet works, too.

B.jpg

24-Ruby IV
March 30, 2019

See please this old article

http://twt.mpei.ac.ru/ochkov/car/c_e.html