Washing machines and dryers with inverter