function y = rectifier(x) Vrms = x(1); alpha = x(2); y = (Vrms*sqrt(2)/pi)*(1 + cos(alpha));