This is a simple algebraic model of a Negative Impedance Converter.
This is the hysteretic version of the IdealNIC suitable for prescribed current i. The inner part of the characteristic with negative slope is omitted. The voltage v jumps when the right / upper or left / lower corner is reached to the other branch.