Simplifying numerical expressions