def flat_resid(pars):
    c0, c1, c2 =  pars.c0.value,  pars.c1.value,  pars.c2.value
    return  (pars.mu - (c0 + pars.en * (c1 + pars.en * c2)))
dataset/ETHPy150Open xraypy/xraylarch/plugins/xafs/pre_edge.py/flat_resid/original