I assume this is nearly impossible in a Universityuniversity with separate Mathmath and Computer Sciencecomputer-science departments, due to the way funding works (correct me if I'm wrong). However, I've heard that some small Universitiesuniversities have joint Mathematicsmathematics and Computer Sciencecomputer-science departments. In such a case, is it possible to get a Professorshipprofessorship with the opportunity to teach both? Would I need degrees in both to qualify for such a position?