On the spectrum of some differential and pseudodifferential operators