This was the Torpedo Data Computer, which used trigonometry to solve the problem of firing a torpedo at a moving target