This exercise can be solved without any loop.
. One can use
points (without plotting the figure...)The transfer function of a damped oscillator can written in the Fourier space using the formula :

We would like to draw the three following graphs :
Bode plot for
and 
Tranfer amplitude function for
and different values of
.
Bode plot for the product of two tranfer function
,
,
,
.
You will uses the following functions :
You should also know how to