Time Dilation Calculator and Plot

Introduction

Time dilation is the difference in elapsed time as measured by two clocks, either due to a relative velocity between them (special relativity), or a difference in gravitational potential between their locations (general relativity). When unspecified, "time dilation" usually refers to the effect due to velocity. (Wikipedia)

Time Dilation Equation

image mising

Where:t'=dilated time
 t=stationary time
 V=velocity
 C=speed of light

Project #1

Create a program that

  1. asks the user the percentage of the speed of light a clock is moving compared to a stationary clock
  2. check to verify the percentage is less than 100%
  3. display the time dilation factor (see the notes for Project #2)
  4. loop

Create a GUI?

Project #2

Plot the time dilation factor against the percentage of the speed of light a clock is moving compared to a stationary clock.

Notes:

I suggest you use pyplot or related modules.
matplotlib.pyplot (documentation and examples)

Links

Time Dilation

Time dilation (Wikipedia)