Pi and Tee Attenuators
This function will calculate the PI and Tee attenuators and can also convert between the two types. Enter the loss factor and the Zin > Zout (Impedance) and it will calculate either.
Tee type Attenuator

PI type Attenuator

Conversion between the two
