Numerical Evaluation of Topological Invariants