4Misc_Starth4Platformh@9VersionCheck xHH@Rg(HHdh xHH@Rg(HHdh x HH@Rg(HHdh ^Graph*WDashSettings#  ! 6Normal@ Lucida Console<HHHH$$4 4 4 4 4 4 homedC:Users:lscan:OneDrive:Desktop:MyDocuments:TeachingAssistance_AndCareer:ResearchProjects:Yb2Si2Al:LiamMpms:C:Users:lscan:OneDrive:Desktop:MyDocuments:TeachingAssistance_AndCareer:ResearchProjects:Yb2Si2Al:LiamMpmskRecentWindows7Advanced Topics.ihfAnnotations.ihfIgor Reference.ihf 4Misc_EndhTXOPState_Start hPeakFunctions2-64N,4XOPState_EndhlV_chisq*U1`@V_numNaNsV_numINFsV_npnts@V_nterms@V_nheldV_startRowV_endRow@V_startColV_endColV_startLayerV_endLayerV_startChunkV_endChunk•Make/N=5 xwv = {1,2,3,4,5}, ywv = {1.1, 4.3, 5.9, 7.8, 11} •myFitCall() Fit converged properly myFitWv= myFit(guessCoef,xwv[p]) Your coefficient wave is single-precision. We recommend making it double-precision (use Redimension Waves from the Data menu). guessCoef={0.44112,1.6998} V_chisq= 129.561;V_npnts= 5;V_numNaNs= 0;V_numINFs= 0; V_startRow= 0;V_endRow= 4; W_sigma={0.0616,0.028} Coefficient values ± one standard deviation a =0.44112 ± 0.0616 b =1.6998 ± 0.028 •Edit/K=0 root:coef_sig •Edit/K=0 root:W_sigma •FuncFit myFit guessCoef ywv /X=xwv /W=ywvErr /I=1 /D=myFitWv /E=coef_sig FitProgressDialog allocating a dialogFitFunction instance 9 iterations with no decrease in chi square myFitWv= myFit(guessCoef,xwv[p]) Your coefficient wave is single-precision. We recommend making it double-precision (use Redimension Waves from the Data menu). guessCoef={0.44112,1.6998} V_chisq= 129.561;V_npnts= 5;V_numNaNs= 0;V_numINFs= 0; V_startRow= 0;V_endRow= 4; W_sigma={0.0616,0.028} Coefficient values ± one standard deviation a =0.44112 ± 0.0616 b =1.6998 ± 0.028 •Edit/K=0 root:coef_sig •Edit/K=0 root:W_sigma !Tj%ZZywv????̌?33@̼@@$AT{%ZZxwv?????@@@@@Tb%ZZywvErr????= #G=>H|%ZᓻguessCoef????>?zHc%ZZcoef_sig???? Tf%ZᒻmyFitWv???? @@>@A&A PU%ᓻW_sigma????x؎?+A?*// Platform=WindowsNT, IGORVersion=8.040, architecture=Intel, systemTextEncoding="Windows-1252", historyTextEncoding="UTF-8", procwinTextEncoding="UTF-8", recreationTextEncoding="UTF-8", build=34722 #pragma TextEncoding = "UTF-8" Silent 101 // use | as bitwise or -- not comment. DefaultFont "Arial" MoveWindow/P 5.25,44.75,705,500 MoveWindow/C 7.5,374.75,951,486.5 KillStrings/Z root:gWMSetNextTextFilesTextEncoding H#pragma TextEncoding = "UTF-8" #pragma rtGlobals=3 // Use modern global access method and strict wave access. Function myFit( coef, x ) : FitFunc //CurveFitDialog/ //CurveFitDialog/ Coefficients 2 //CurveFitDialog/ coef[0] = a //CurveFitDialog/ coef[1] = b Wave coef ; Variable x ; return coef[0] + coef[1] * x^1.1 End Function myFitCall( ) Make/O/N=5 xwv = {1,2,3,4,5}, ywv = {1.1, 4.1, 5.9, 7.8, 10.3} ; Make/O/N=5 ywvErr = {0.1, 0.01, 0.2, 0.11, 0.15}; Wave ex = xwv, wy = ywv, err = ywvErr ; Make/O/N=2 guessCoef = { 0, 2 }; Make/O/N=2 coef_sig; wave guess = guessCoef; wave coef_err = coef_sig; Make/O/N=5 myFitWv FuncFit/X=1/H="00" myFit guess wy /X=ex /W=err /I=1 /D=myFitWv /E=coef_sig End