The characteristic functions of functions