Evaluating composite functions at a given input value