Implementing a Broken Power Law as a fitting function in Origin
问题 Good day, I'm trying to use the function builder in origin (OriginLab) to create a new function to fit with, the broken power law (http://en.wikipedia.org/wiki/Power_law#Broken_power_law) So, I think I got the actual function part down. For this I used if(x<xc) y =x^a1; if(x>xc) y = x^(a1-a2)*x^a2; if(x==xc) y = 0; Where xc, a1 and a2 are the parameters. However, I then get to the point where you have to choose a bunch of stuff (parameter ranges, script you run to guess initial values, etc)