Javascript Array unit()
unit()
Array.prototype.unit = function() { return this.mul(1 / this.norm()) }