When we solve frames, we assume that the materials are infinitely rigid in axial direction, so all deformations are due to bending. So this means, we assume infinitely rigid modulus of elasticity, E, from formula:
$$ \text{axial deformation} = \frac{\text{force} \cdot \text{length}}{ \text{Area} \cdot E}$$
And for bending the stiffness is EI. Is this E not the same E as the one in the formula above? And if so, if we assumed that E to be infinity for axial, then the EI will also be infinity. Or we can take E as differently for axial and rotation, so there is the axial E and rotational E?