The results for each \( x \) value are:
- \( f(-40) = 7.0 \)
- \( f(9) = 0.0 \)
- \( f(18) = \text{Not a real number} \)
- \( f(20) = \text{Not a real number} \)
Thus, the final boxed answers are:
\[
\boxed{f(-40) = 7.0}
\]
\[
\boxed{f(9) = 0.0}
\]
\[
\boxed{f(18) = \text{Not a real number}}
\]
\[
\boxed{f(20) = \text{Not a real number}}
\]