Utility functions for scientific coding
