Doria, Paulus Matthias, Mathematician