2_HKI(
"### Pi Attenuator\n"
3"___a___ is attenuation in dB<br>\n"
4"___Z<sub>in</sub>___ is desired input impedance in Ω<br>\n"
5"___Z<sub>out</sub>___ is desired output impedance in Ω<br>\n"
7"___K = V<sub>I</sub>/V<sub>O</sub> = 10<sup>a/20</sup>___<br>\n"
8"___L = K<sup>2</sup> = 10<sup>a/10</sup>___<br>\n"
9"___A = (L+1) / (L−1)___<br><br>\n"
10"___R2 = (L−1) / 2·√(Z<sub>in</sub> · Z<sub>out</sub> / L)___<br>\n"
11"___R1 = 1 / (A/Z<sub>in</sub> − 1/R2)___<br>\n"
12"___R3 = 1 / (A/Z<sub>out</sub> − 1/R2)___\n"