Form composite function $g(f(x))$ (#348)