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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

How to curve fit a function of two variables

Lazar
1-Newbie

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 II
(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
1-Newbie
(To:RichardJ)

Stuart and Richard,

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

Lazar

Top Tags