Special Relativity API
Special-relativity maths as an API, computed locally and deterministically. The lorentz endpoint computes the Lorentz factor γ = 1/√(1 − β²) from a velocity (in m/s, km/s or as a fraction of the speed of light β), and — given a proper time or a proper length — the dilated time Δt = γ·Δt₀ that a stationary observer measures and the contracted length L = L₀/γ. The energy endpoint computes the rest energy E₀ = mc², the total energy E = γmc², the kinetic energy KE = (γ − 1)mc² and the relativistic momentum p = γmv of a mass moving at a given speed, reporting the energies in both joules and electronvolts. The mass-energy endpoint applies Einstein's E = mc² to convert between mass and energy in either direction, in joules, electronvolts, megaelectronvolts and kilowatt-hours. The speed of light is exactly 299,792,458 m/s. Everything is computed locally and deterministically, so it is instant and private. Ideal for physics-education, simulation, astronomy and science-communication app developers, relativity and particle-physics tools, and STEM teaching. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is special relativity; for everyday SUVAT motion use a kinematics API and for orbital mechanics an orbital API.
api.oanor.com/relativity-api