I am running the evaluation version of Diadem 10.2 and I have created a routine that will show a graph with a polynomial fit of the data. Then a SUD will show up and ask the user whether to increase/decrease/accept the order of the polynomial fit. The code works perfectly up to a 9th order polynomial. I use the following loop to set the parameters for the ApprAnsatzFct(i).
Order is a global variable that is incremented/decremented via a SUD and is limited to 11.
FOR i= 1 TO 26
IF i <= Order+1 THEN ApprAnsatzFct(i) = "Yes"
IF i > Order+1 THEN ApprAnsatzFct(i) = "-"
NEXT ' i
Call ChnApprXYCalc(1, 2, "/ApproximatedX", "/ApproximatedY", "Partition complete area", 100, 1)
Per the help file you can have up to an 11th order polynomial, but whenever I specify a 10th order polynomial I get an error. "Selected more than 10 setup functions" This occurs on the line that has the ChnApprXYCalc command to perform the polyfit. I was wondering if this is a limit to the evaluation version or what. Could it be that I am not allowed to have the x^0 and x^1 constants if I want to see the x^11 constant.
Any thoughts would be greatly appreciated.
Wayne Yount