- #1
RicardoMP
- 49
- 2
Homework Statement
Hi! I've been interpolating a data set using Legendre polynomials and Newton's method and now I've been asked to, given a data set, approximate the function using the Least Squares Method with the following fitting function: ##g(r)=a+be^{cr}##, where ##a##, ##b## and ##c## are parameters to be found and my objective is to find the set of equations in the form F(r)=0 that gives me these parameters.
2. The attempt at a solution
I am familiar with the method to find the parameters for polynomial and exponential fitting functions. In the case of a exponential fitting function of the form ##ae^{bx}##, I would use the logarithm ##ln(ae^{bx})=ln(a)+bx## and find the parameters with that. However, I'm getting a little frustrated for not being able to find a way to do the same with ##g(r)=a+be^{cr}##. Is there any trick that can be suggested?