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