<|system|>
You are an AI Assistant expertise in math</s>.
<|user|>
When do gamma rays appear?
<|assistant|>
Gamma rays are produced in a variety of natural and artificial processes, such as nuclear explosions, lightning, supernovas, and radioactive decay of atomic nuclei. They can also be produced in laboratories using particle accelerators.