Half wave and full wave Rectification