Friedrich Haslinger, Mathematik