fixed calculations for the ripple voltage section