Does the standard library have a function equivalent to the following?
function norm_normalize(v, p = 2) n = norm(v,p) return n, v/n end
If not, is there a reason why such a function does not exist?
And finally, if the function does not exist but you think that it should exist, what should the name be? The name
norm_normalize() is modeled after functions like
sincos(), but I think it’s a bit too wordy. Another option would be
normunit(), which follows a similar idea and is shorter but which is also more unclear.