The mechanism of the EOS mechanical calculator