Home > Community > General > surface interpolations > Antwort auf: surface interpolations

#8903
Bernhard KantzBernhard Kantz
Teilnehmer

If you want to calculate the coefficients of a polynomial with 2 dependent variables, you can use the NonLinCurveFit-function.

Example:
The dataset ‘Data’ is a space curve with a x-, y- and z-component.
Model function: y = p0 + p1 * x + p2 * z + p3 * x^2 + p4 * z^2

FPScript code:


NonLinCurveFit("p[0] + p[1] * d.[0] + p[2] * d.[1] + p[3] * d.[0]^2 + p[4] * d.[1]^2", Data.y, {1,1,0,0,0}, , , , , , NLCF_OUTPUT_SOLUTION , , ,[[Data.Y, Data.Z]])

support@weisang.com