  We study functional inequality of the form $$|T(f,h)-T(f,g)T(g,h)| \leq
F(f,g)F(g,h) -F(f,h)$$ where $T$ is a complex-valued functional and $F$ is a
real-valued map. Motivation for our studies comes from some generalizations of
Gr\"uss inequality.
