function normalize (v, type) {
    const big = type === 'BigNumber'
    const cplx = type === 'Complex'
    const one = big ? bignumber(1) : cplx ? complex(1) : 1

    return multiply(divideScalar(one, norm(v)), v)
  }
Normalize a vector
@template T
@param {T[]} v
@param {'number'|'BigNumber'|'Complex'} type
@returns {T[]} normalized vec