I am reading a text on discrete signal processing, which states that the frequency response of a signal can be obtained by plugging the value $e^{jω}$ into the z-domain transfer function $H(z)$. In other words:
$H_{IIR}(ω) = H(z)|_{z=e^{jω}}$
In the example given in the text, it is given that:
$H(z) = (\frac{1}{1 - \frac{1}{5}z^{-1}}) (\frac{1}{1 + \frac{1}{2}z^{-1}})$
Next, the text presents the following equation for the magnitude of the frequency response when $ω = \frac{\pi}{2T}$:
$|H_{IIR}(\frac{\pi}{2T})| = \frac{|j|}{|j - \frac{1}{5}||j + \frac{1}{2}|} = \frac{1}{\sqrt{\frac{1}{25} + 1}\sqrt{\frac{1}{4} + 1}} = \frac{\sqrt{130}}{13}$
I don't understand how the author derived the above equation. That is, what kind of wizardry leads to the following equations?
$|H_{IIR}(\frac{\pi}{2T})| = |(\frac{1}{1 - \frac{1}{5}e^{-j\frac{\pi}{2T}}}) (\frac{1}{1 + \frac{1}{2}e^{-j\frac{\pi}{2T}}})| = \frac{|j|}{|j - \frac{1}{5}||j + \frac{1}{2}|} = \frac{1}{\sqrt{\frac{1}{25} + 1}\sqrt{\frac{1}{4} + 1}}$
Does it have something to do with magnitude and a special identity regarding the constant $e$?