clc;clear;

n = 10;

C = 0.06e-6;
Vs = 100e3;
f = 150;
I = 1e-3;

V0 = (I/f/C)*((2*n^3/3)+(n^2/2)-(n/6))
VR = V0/(2*n*Vs)

Peak_Peak_Ripple =  (I/f/C/2)*n*(n+1)
Peak_Peak_Ripple_percentage = Peak_Peak_Ripple/(2*n*Vs)

optimum_number_of_stages = sqrt((Vs*f*C)/I)

Vo_max = 4*Vs/3*sqrt((Vs*f*C)/I)


