Rod calculus or rod calculation is the mechanical method of algorithmic computation with counting rods in China from the Warring States to Ming dynasty before the counting rods were replaced by the more convenient and faster abacus. Rod calculus played a key role in the development of Chinese mathematics to its height in Song and Yuan dynasty, culminating in the invention