capForRipple(ripplePP, freq, load)

import electronics.rlc.capRipple-1

Calculates the capacitor size for a given peak-to-peak ripple voltage.

import electronics.rlc.capRipple-1;
capForRipple( 1V, 100Hz, 100mA )
ripplePPthe desired peak-to-peak ripple voltage.
freqcharge frequency. For example in case of full wave rectification of mains supply it's 100/120Hz, in half wave 50/60Hz.
loadload current. Because usually the ripple is small, a constant current load can be assumed even in case of resistive load.
return valuethe minimal size of the supply capacitor.