vector magnitude and absolute value