A new convenient circuit for computing the magnitude of the sum of two vectors which are perpendicular to each other is described. The circuit consists of operational amplifiers and logic gates, and its main function is achieved by charging and discharging a capacitor. Since input and output signals are all given in analogue values, represented by pulse width, they can easily be converted into digital codes to interface a sampled-data system, if necessary.