# Last edited on 2014-03-18 19:37:07 by stolfilocal # gawk 'BEGIN{ Q = 1.270; DB = 10; } /^[ ]*[0-9]/{ d = $1; p = $2; w = $3; z = exp(log(Q)*(d-DB)); printf "%3d %6.1f %5.3f %3.1f %9.5f\n", d, p, w, 1, z; next; } //{ print; }' 10 4080.0 0.743 1.0 1.00000 11 4139.0 0.001 1.0 1.27000 12 4006.0 0.921 1.0 1.61290 13 3876.0 0.001 1.0 2.04838 14 4004.0 0.727 1.0 2.60145 15 3961.0 0.813 1.0 3.30384 16 3733.0 0.001 1.0 4.19587 17 3905.0 0.745 1.0 5.32876 18 3817.0 0.980 1.0 6.76752 19 3832.0 0.002 1.0 8.59475