I would like to set a CoefficientFunction that is different on the y-axis than anywhere else.
I hoped to do this as follows:
cf1 = 2*x
cf2 = CoefficientFunction(1)
cf = CoefficientFunction([cf2 if X == 0.0 else cf1 for X in x])
but cf now is zero everwhere.
How can I make cf be cf1 but cf2 on the y-axis?