text: The two types of radiation are now usually distinguished by their origin : X-rays are emitted by electrons outside the nucleus , while gamma rays are emitted by the nucleus .
simplified: Gamma rays and X-rays are now usually distinguished by their origin : X-rays are emitted by electrons outside the nucleus , while gamma rays are emitted by the nucleus .