Sturm-Liouville and Dirac operators