 Because base–emitter voltage varies as the logarithm of the base–emitter and collector–emitter currents, a BJT can also be used to compute logarithms and anti-logarithms.A diode can also perform these nonlinear functions but the transistor provides more circuit flexibility.Exposure of the transistor to ionizing radiation causes radiation damage.