tp3 computes the Magnitude and the direction