Skip to content

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

License

Notifications You must be signed in to change notification settings

defunSM/SpecialRel

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages