Programmable triangular shaped device having variable gainпатент