Explore fundamental concepts in special relativity with interactive Python-based visualizations!
Welcome to this Relativity Basics Notebook! This repository contains a Google Colab notebook that demonstrates key ideas in special relativity using Python (numpy and matplotlib) visualizations and coding snippets. This project provides a hands-on approach to Einstein's theories to help users experiment with and learn about fundamental relativistic effects in real time, which also allows them to strengthen their intuition and conceptual understanding of these topics.
'Relativity_Basics_Notebook.ipynb' : The main Google Colab notebook
'table_redshifts.csv' : Supporting dataset for the Doppler Shift section's code snippet
Open and save a COPY of the notebook in Google Colab (no local installation required!).
Read the explanations accompanying each section to deepen understanding.
Run the cells step-by-step to visualize effects of the topics discussed.
Modify parameters to explore how they affect the relevant relativistic effects.
Interactive Python code to simulate relativistic scenarios
Visualizations for time dilation, length contraction, relativistic momentum, spacetime diagrams, and more!
Numerical simulations of relativistic energy
Real-world applications (ex. GPS corrections)
Introduction to Relativity and the Lorentz Factor
Postulates of Special Relativity
Time Dilation and Twin Paradox
Length Contraction
Relativistic Momentum and Energy
Relativistic Velocity Addition
Doppler Shift
Spacetime Diagrams
Brief Introduction to General Relativity
Black Holes and Relativity
Have any questions, feedback, or suggestions? Feel free to:
Open an issue on this repository (click the "Issues" tab above)
Fork the repository and submit a pull request with improvements
Reach out in relevant GitHub discussions or forums
Your comments and insights are always welcome!
Parts of this project were developed with the help of AI tools to generate code suggestions, refactor logic, and improve documentation. All code has been reviewed and tested by the author.
Have fun exploring!