in 1621 a latin translation was published of diophantus ' arithmetica which contained a complete compilation of the number theories that pythagoras , euclid , and other ancient mathematicians had formulated .