I am trying to figure out a way to get the function parameters from the different points of an exponential function $f(x)=ab^x + c$. I figured it out for $f(x) = ab^x$, but can't find the answer when the function contains $c$. So I need to solve for $a$,$b$ and $c$ in the system of equations:
$$\left\{\begin{aligned} ab^{x_1} + c = y_1\\ ab^{x_2} + c = y_2\\ ab^{x_3} + c = y_3\\ \end{aligned}\right.$$
I was able to reduce the equation to one unknown: $\frac{b^{x_1}-b^{x_2}}{b^{x_2}-b^{x_3}} = \frac{y_1-y_2}{y_2-y_3}$
I don't know how to solve for $b$ in this equation and I have tried solving for other variables, which all didn't work. Is this system of equations even solvable? All help is appreciated.
Please excuse my bad formatting, I don't know how to type math equations.
You said in a comment that you are familiar with Python. Here is how to numerically solve this system of nonlinear equations with Python:
See here for details. The solution of the system is returned in the first component of
solutionInfo.