To find the best fitting function of the form f(t) = a/t + b, we need to perform a linear regression of the data on the variables 1/t and 1. This is because the model is not linear in the coefficients a and b, but it is linear in 1/t and 1.
Here's how to do it in Matlab:
main.m302 chars14 lines
The values of a and b will give you the coefficients of the best fitting function, and f_val will give you its value at -7.
gistlibby LogSnag