Approximation systems for functions in topological and in metric spaces (Logical Methods in Computer Science, 2013)