A scientific calculator integrating units and dimensional analysis