dcalc(1) is a (fairly) portable character-based implementation of a Reverse Polish Notation calculator as popularised by Hewlett-Packard.