cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

How to curve fit a function of two variables

Lazar
2-Explorer

How to curve fit a function of two variables

Hi,

I have a set of data for a function of two variables f(x1,x2). My function is exponential for x1 with two coefficients that depend on x2:

f(x1,x2)=a*(x1)^b, where a and b are functions of x2.

I found a and b for several values of x2, so I do have equations f(x1) for some fixed x2. I am now trying to find a general equation f(x1,x2).

Is there a way to do curve fitting with two variables-- Mathcad help shows only how to curve fit with one variable?

Every input is appreciated.

3 REPLIES 3
StuartBruff
23-Emerald III
(To:Lazar)

If you have Mathcad 15 or Prime, then you could try the multivariate fitting function multidfit. Otherwise, a solve block will probably handle your problem.

RichardJ
19-Tanzanite
(To:Lazar)

See the attached worksheet

Lazar
2-Explorer
(To:RichardJ)

Stuart and Richard,

Thanks for your replies. I'll try to digest your suggestions.

Lazar

Announcements

Top Tags