This repository contains a Time Dilation Calculator built with Flet
. It allows users to input a velocity and calculate the lorentz-factor and dilated time based on the given proper time.
- Framework: flet (Flet enables developers to easily build realtime web, mobile and desktop apps in Python).
- Users can input the velocity of an object and the speed of light to calculate the lorentz-factor.
- Supports various units of velocity including km/s, % of c, m/s, and km/h.
- Calculates the dilated time based on the given proper time and the calculated lorentz-factor.
- Displays the lorentz-factor and dilated time.
- Visualizes the Lorentz Factor using the Phytagoras Theorem.
- Represents the typical Lorentz Factor/Time Dilation curve in a new way, to better see the current state of dilated time.
To run and use the Time Dilation Calculator, you need the following:
flet
framework installed.- Python 3.10 (Because of the Match-Case)
- Clone this repository.
- Ensure all requirements are met.
- Run the script.
python main.py
- Implement error handling for invalid input values.
- Provide additional information on lorentz-factor and time dilation within the app.
Include visualizations to better illustrate the concept of time dilation.(Done)
This project is licensed under the MIT License - see the LICENSE file for details. Maciej Kula.