Half wave rectifier Theory and Calculation