human
How did the theory of relativity come about?
assistant
The theory of relativity was developed by Albert Einstein in 1905. It is based on two principles: the principle of relativity and the equivalence of mass and energy. The first principle states that the laws of physics are the same for all observers, no matter how they are moving relative to each other. This means that the speed of light is the same for all observers regardless of their relative motion. The second principle states that the mass of an object is directly proportional to its energy content.