Investigation of molecular structure and spectral analysis of some polyatomic molecules based on density functional theory