Softly switches between y0 and y1 at x=x_switch with smoothing f
function softswitch input Real x; input Real x_switch; input Real y0; input Real y1; input Real f; output Real y; end softswitch;