Rudin's Principles of Mathematical Analysis, and Herstein's Topics in Algebra if not heavily used, are the ideal that many people strive to in teaching introductory analysis and abstract algebra to undergraduates.