Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 915 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 915 Bytes

SpecialRel

A small Haskell/Clojure/Python/C++ Library of Special Relativity functions for length contraction, time dialation, spacetime interval, lorentz transformations and etc.

The overall purpose of this is supposed to be able to generate SpaceTime graphs as well as being able to perform various lorentz transformations. This is also meant as an exercise to use numpy and matplotlib. Using both to generate graphs to help visual possible situations in special relativity.

graph

Includes

  • Speed of light constant (c = 299792458)
  • Converting speed to terms of c ( and visa versa)
  • Gamma factor
  • Location lorentz transformation
  • Time lorentz transformation
  • Velocity lorentz transformation
  • Time dialation
  • Length Contraction
  • Time Interval
  • Space Interval
  • SpaceTime Interval
  • Generate a SpaceTime graph

Usage

options