"units" program for running/marathon time calculations
I've been doing a lot of calculations about marathon pacing and times and I wanted to document my favorite method for doing that. It's the venerable unix code "units", which is provided with Mac OS/X. There's various GUIs provided for this code, or for other unit converters, but it's the command-line version which is the most powerful. I suspect most users of units fail to appreciate it's power. For example, they might want to convert km to miles (or back). For that, I type: > units Currency exchange rates from 2012-06-06 2546 units, 85 prefixes, 66 nonlinear units You have: km You want: miles * 0.62137119 / 1.609344 I see that 1 km is 0.62 miles, with a reciprical conversion of 1.61 km per mile. Or you can just convert a unit to a basis unit, as follows: You have: km You want: Definition: kilo m = 1000 m You have: miles You want: Definition: mile = 5280 ft = 1609.344 m The internal unit for distance is meters, so the code provides t...