Message Boards Message Boards

0
|
6862 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

Solve for parameters of an Exponential Function from 3 points

Posted 10 years ago

Hi I am rather new to mathematica. I want to find a numerical solution for the parameters a, b and c in the exponential function of type

y=a*exp(-b * x)+c 

when three points are given: (x1,y1); (x2,y2); (x3,y3);

I tried several functions, such as:

SolveAlways[{y1 == a*Exp[-b * x1] +c , y2 == a*Exp[-b * x2]+c , y3 == a*Exp[-b *x3]+ c },{a,b,c}]

which was not successful, however.

Is there a way to solve this using Mathematica?

Thanks in advance, Michael

POSTED BY: Michael Gisi

Define

y[x_] := a E^(- b x) + c

then enter 6 numerical values for x and y and do

NSolve[{y[x1] == y1, y[x2] == y2, y[x3] == y3}, {a, b, c}]
POSTED BY: S M Blinder
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract