An example of a functional is the action S[q, dq/dt, t] in classical mechanics. It outputs a real number, not a complex number and is used for many things, for example to derive the Euler-Lagrange equations of motion or the path integral formalism in quantum mechanics.