1. A logic gate for implementing logical expressions, the logic gate comprising: at least one logic gate input for receiving at least one input logic gate signal and at least one control signal; at least one output for producing a logic gate output signal; a nonlinear updater that operates as a dynamically configurable element to produce a plurality of different logic gates as selected by the control signal, the nonlinear updater electrically coupled to the logic gate input and comprises a nonlinear updater output to provide a nonlinear updater output signal, and configured to apply a nonlinear function to the input logic gate signal in response to the control signal to produce the nonlinear updater output signal representing a logical expression being implemented by one of the plurality of different logic gates on the input logic gate signal; and a comparator electrically coupled to the output of the logic gate and the output of the nonlinear updater, wherein the comparator comprises a comparator input adapted to receive a reference threshold value for producing the logical gate output signal based on a comparison of the nonlinear updater output signal to the reference threshold value.