The giant E1 resonance for deformed nuclei