Calculator with command-line interface and infix notation for input