def fit_func(p, x):
    A, R2 = p
    return A * np.exp(-1.0 * np.array(x) * R2 / 1.0e6)

# residuals between fit and experimental data.
dataset/ETHPy150Open jjhelmus/nmrglue/examples/jbnmr_examples/s12-s15_relaxation_analysis/fit_exp.py/fit_func/original