/* You should load the function before doing anything so that the /* previous funciton will be forced to exit and save changes /* Replace "template" with your functions name user -load template /* This sets up FitFunc to be your fitting function fit nls fun fitfunc(x) weight 1 ret /* Set the String variable to the filename of this macro declare MacroName c:\progra~1\cgs\surf\template\template.mac /* Allocate an array for the parameters... alloc P array 20 alloc C array 20 /* Don't edit any thing between begin and end.... /* Begin Parameters let P(0)=0.500000 let P(1)=1.000000 /* End Parameters /* This is after the params so its ok...