using cmath in vector's equals method