Calculates the capacitor size for a given peak-to-peak ripple voltage.
capForRipple( 1V, 100Hz, 100mA )
|ripplePP||the desired peak-to-peak ripple voltage.|
|freq||charge frequency. For example in case of full wave rectification of mains supply it's 100/120Hz, in half wave 50/60Hz.|
|load||load current. Because usually the ripple is small, a constant current load can be assumed even in case of resistive load.|
|return value||the minimal size of the supply capacitor.|