* Electromagnetic Spectrum: Both cosmic rays and gamma rays are part of the electromagnetic spectrum. This spectrum is ordered by frequency (and wavelength), with higher frequency meaning faster vibrations.
* Gamma Rays: Gamma rays are the highest energy and highest frequency portion of the electromagnetic spectrum. They vibrate extremely rapidly.
* Cosmic Rays: Cosmic rays are not electromagnetic waves, but rather high-energy particles, primarily protons and atomic nuclei. They don't vibrate in the same way that electromagnetic radiation does.
Therefore, gamma rays have a higher frequency than cosmic rays and vibrate faster.