I am trying to use a math model to solve an electrical problem.
I have "something" described by a function of this type: f(x) = A [1 - e^B*x] where A and B are constants that I dont know.
What I know, is the value of x and f(x) in two points. But I need to find a generic solution, so I will call them: (X1,Y1) and (X2,Y2)
Is there any way to get equations (that can be solved by a computer) for A and B?
This is what I have tried:
f(X1) = A [1 - e^BX1]
f(X2) = A [1 - e^BX2]
B = ln (1 - (Y1/A))/X1
B = ln (1 - (Y2/A))/X2
ln (1 - (Y1/A))/X1 = ln (1 - (Y2/A))/X2
But after some work I got here:
(1 - (Y1/A))^X2 = (1 - (Y2/A))^X1
And cant find no way to get an equation to A. Am I doing something wrong?