Simple pass over some math function to ensure const-correctness.