How a Digital Computer Can Tell Whether a Line is Straight