Skip to content

Instantly share code, notes, and snippets.

View jamesamiller's full-sized avatar

James A Miller jamesamiller

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jamesamiller on github.
  • I am millerja (https://keybase.io/millerja) on keybase.
  • I have a public key whose fingerprint is 06B1 8D7A FB64 382E 292B 858D EC72 8F76 E67A 0E67

To claim this, I am signing this object:

@jamesamiller
jamesamiller / Andromeda v1.tex
Last active February 14, 2021 00:28
TikZ plot of the Andromeda "paradox" in special relativity
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{comment}
\begin{comment}
:Title: Attack from Andromeda
:Author: J A Miller (millerja@uah.edu), 2020/02/04
The Andromeda "paradox". Spacetime diagram for aliens launching an attack on Earth, according to three observers: one on the ground in the same frame as the aliens, and two walking past the first in opposite directions with the same speed.
References:
@jamesamiller
jamesamiller / AreaPreservation.tex
Created February 4, 2020 22:18
Area preservation by the Lorentz transformations in special relativity
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{comment}
\begin{comment}
:Title: Area preservation in the Lorentz Transformations
:Author: J A Miller, UAH Physics & Astronomy, millerja@uah.edu
2020/02/04
Plot to demonstrate how the Lorentz Transformation preserves area. Suppose the primed frame is moving in the $+x$ direction with speed $v$ relative to the unprimed frame.
Consider a unit square in the primed frame, with corners at $A^\prime =(x,t) =(0,0)$, $B^\prime =(0,1)$, $C^\prime =(1,1)$, and $D^\prime =(1,0)$. In the unprimed system, these points are transformed into $A = (0,0)$, $B = (\gamma v,\gamma)$, $C = (\gamma (1+v),\gamma (1+v))$, and $D = (\gamma,\gamma v)$, which outlines a parallelogram (in the unprimed coordinate system).
@jamesamiller
jamesamiller / SpacetimeDiagram.tex
Last active February 14, 2021 00:35
Generate a spacetime or two-observer diagram in special relativity
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{comment}
\begin{comment}
:Title: Spacetime diagrams
:Author: J A Miller (millerja@uah.edu), 2020/02/06
Generate spacetime or two-observer diagrams.
Parameters can be set by the user. The distance between neighboring grid lines is one.
@jamesamiller
jamesamiller / TwoSpaceships.tex
Last active February 14, 2020 18:08
Two spacehips passing each other according to special relativity
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{comment}
\begin{comment}
:Title: Two passing spaceships
:Author: J A Miller, UAH Physics & Astronomy, millerja@uah.edu
2020/02/14
Two spaceships passing each other
The distance between neighboring grid lines is one.
@jamesamiller
jamesamiller / TortoiseHareRace-I
Last active February 14, 2021 00:46
A relativistic race between a tortoise and hare (special relativity)
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{comment}
\begin{comment}
:Title: Tortoise and Hare - Variation 1
:Author: J A Miller (millerja@uah.edu), 2020/03/03
A race between a tortoise and hare.
The distance between neighboring grid lines is one.
@jamesamiller
jamesamiller / AcceleratedCoordinates.tex
Last active May 13, 2020 17:13
Draws the accelerated coordinates $\xi$ and $\eta$ in special relativity on the inertial $x$-$t$ system.
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{comment}
\begin{comment}
:Title: Accelerated coordinate system
:Slug: Accelerated coordinates
:Tags: special relativity
:Author: J A Miller, UAH Physics & Astronomy, millerja@uah.edu, 2020/05/12
Plot of accelerated coordinates $\xi$ and $\eta$ on an $x$-$t$ inertial spacetime.
@jamesamiller
jamesamiller / StarWorldlinesInAccelFrame.tex
Last active May 20, 2020 16:47
Plot the worldlines of stars in an accelerated rocket frame (special relativity)
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{comment}
\begin{comment}
:Title: Motion of stars in the accelerated rocket frame
:Slug: Accelerated frame
:Tags: special relativity
:Author: J A Miller, UAH Physics & Astronomy, millerja@uah.edu, 2020/05/12
Worldlines of stars in the accelerated rocket coordinates $\xi$ and $\eta$.
@jamesamiller
jamesamiller / RocketWorldlinesInAccelFrame.tex
Last active May 27, 2020 17:11
Plots the worldline of a "test rocket" in the accelerated reference frame of an "observer rocket" (special relativity)
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{comment}
\begin{comment}
:Title: Motion of another rocket in an accelerated rocket frame
:Slug: Accelerated frame
:Tags: special relativity
:Author: J A Miller, UAH Physics & Astronomy, millerja@uah.edu, 2020/05/18
Worldlines of a test rocket in the accelerated coordinates $\xi$ and $\eta$ of an observer rocket. This illustrates that a constant proper distance requires different accelerations.
@jamesamiller
jamesamiller / StarWorldlinesInInertialFrame.tex
Last active May 20, 2020 16:46
The worldlines of stars and a rocket in the inertial star frame (special relativity)
\documentclass[crop=true, border=10pt]{standalone}
\usepackage{comment}
\begin{comment}
:Title: Motion of stars in the accelerated rocket frame
:Slug: Rocket frame
:Tags: special relativity
:Author: J A Miller, UAH Physics & Astronomy, millerja@uah.edu, 2020/05/12
Worldlines of stars and a rocket in the inertial $x$-$t$ frame, with light rays from one of
the stars to the rocket worldline.