--- from: http://rosettacode.org/wiki/Vector note: Physics