Hello,
Initialization code, bounds, script before fitting is not necessary input items for building a fitting function:
you can refer to this tutorial:
http://www.originlab.com/doc/Tutorials/UserDef-FitFunc
you can also use this general formula (Labtalk script Function type) for simplify:
y=k1*x^a1*(x<th)+k2*th^(a1-a2)*x^a2*(x>th)
Best regards,
Jason Zhao
OriginLab Tech Service