Skip to content

UDF Generation

The Save TableCurve UDF option in the File menu of the Curve-Fit Graph is used to generate UDFs for built-in equations with 10 or fewer parameters. Polynomial and rational equations with 11 or more parameters are excluded. Also excluded are the Chebyshev and Fourier Series equations.

The generated UDF will consist of the full mathematical equation expression rather than a reference to a built-in function. Note that this generated code will contain only the native mathematical computation. There will be no conditional statements to manage undefined regions. The estimates in the generated UDFs will consist of the values of the actual fitted parameters.

Note that for non-linear equations, generated UDFs will not execute as fast as the built-in functions available via the Non-Lin function insert help in the User Functions entry dialog. The built-in non-linear functions also contain the conditional code insuring that the functions will return a valid value for all X.