Relative Gamma

Time Dilation Due to Relative Speed Difference

gamma equation

Speed:


The Code

const time = {
     C: 299792458,
     gamma: function(speed) {
         const delta = Math.sqrt(1 - Math.pow(speed, 2) / Math.pow(time.C, 2));
         return 1 / delta;
     },
     flux: function(speed) {
         return 'Time Dilation = 1:' + time.gamma(speed);
     }
 };