Simple utilities for numerical computation