Here is a simple code for calculating the Lorentz generators in Matlab:
main.m612 chars25 lines
This code sets up the generators for rotations and boosts in three-dimensional spacetime, and then applies a Lorentz boost to them using a given velocity vector. The resulting boosted generators can then be used to perform Lorentz transformations in the boosted frame.
gistlibby LogSnag