moving more fct_1d logic from the solver to the formulae file