181k views
4 votes
What makes composing functions different from doing an arithmetic operation of two functions such as adding or dividing them?

User Hanetzer
by
2.7k points

1 Answer

4 votes

function composition is an operation that takes two functions f and g and produces a function h such that h(x) = g(f(x)). In this operation, the function g is applied to the result of applying the function f to x.

User MatthieuW
by
3.4k points