In that case, I would define a data structure (struct) to hold the calculation results. Then write two functions: one (probably a constructor) to initialize the data structure instance d from the parameters, and another function function α(x, d). Or potentially you could make d a callable object (which often makes sense for a curve-fitting result), in which case you could write d(x).
1 Like