Arrangements for reducing ripples from dc input or output