curve fitting
-
I'm trying to do logarithmic curve fitting to plotted data points. The equation is as follows: y = a + b*ln(x) The problem is that I have no clue how to compute the 'a' and 'b' coefficients. Can anyone think back to scientific comp to remember how this is done? Thanks
-
I'm trying to do logarithmic curve fitting to plotted data points. The equation is as follows: y = a + b*ln(x) The problem is that I have no clue how to compute the 'a' and 'b' coefficients. Can anyone think back to scientific comp to remember how this is done? Thanks
let u=ln(x) then y = a + b*u now use the method of least squares to find a and b. Note: you are using the method of least squares to find y(u), so everywhere you would use x in least squares now use u(=ln(x)). There are several good resources on the web. Google for 'Least squares' and 'logarithm'. -Sean ---- Shag a Lizard