Class Relativity
java.lang.Object
org.episteme.natural.physics.relativity.Relativity
Special and General Relativity.
Lorentz transformations, time dilation, length contraction, relativistic dynamics.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RealenergyFromMomentum(Real momentum, Real restMass) Energy-momentum relation: E² = (pc)² + (mâ‚€c²)² Returns total energy from momentumstatic RealescapeVelocity(Real mass, Real radius) Escape velocity: v_esc = √(2GM/r) = c√(r_s/r)static RealgravitationalTimeDilation(Real properTime, Real radius, Real schwarzschildRadius) Gravitational time dilation: t = tâ‚€/√(1 - r_s/r) Near massive object at distance rstatic ReallengthContraction(Real properLength, Real velocity) Length contraction: L = Lâ‚€/γ Returns contracted length in moving framestatic ReallorentzFactor(Real velocity) Lorentz factor: γ = 1/√(1 - v²/c²)static RealphotonSphereRadius(Real mass) Photon sphere radius: r_ph = 3GM/c² = 1.5 r_sstatic RealrelativisticDoppler(Real sourceFreq, Real velocity, boolean approaching) Doppler effect (relativistic): f = f₀√((1-β)/(1+β)) For source moving directly away (β = v/c)static RealrelativisticKineticEnergy(Real restMass, Real velocity) Relativistic kinetic energy: KE = (γ - 1)mâ‚€c²static RealrelativisticMomentum(Real restMass, Real velocity) Relativistic momentum: p = γmâ‚€vstatic RealschwarzschildRadius(Real mass) Schwarzschild radius: r_s = 2GM/c² Event horizon radius for black holestatic RealtimeDilation(Real properTime, Real velocity) Time dilation: ÃŽâ€ÂÂt = γÎâ€ÂÂtâ‚€ Returns dilated time for moving observerstatic RealtotalEnergy(Real restMass, Real velocity) Total relativistic energy: E = γmâ‚€c²static RealvelocityAddition(Real v1, Real v2) Velocity addition formula: v = (vâ‚ + vâ‚‚)/(1 + vâ‚ÂÂÂvâ‚‚/c²)
-
Constructor Details
-
Relativity
public Relativity()
-
-
Method Details
-
lorentzFactor
-
timeDilation
-
lengthContraction
-
relativisticMomentum
-
relativisticKineticEnergy
-
totalEnergy
-
energyFromMomentum
-
velocityAddition
-
relativisticDoppler
-
schwarzschildRadius
-
gravitationalTimeDilation
-
escapeVelocity
-
photonSphereRadius
-