 A simple and intuitive parametric description of various hysteresis loops may be found in the Lapshin model.Along with the smooth loops, substitution of trapezoidal, triangular or rectangular pulses instead of the harmonic functions allows piecewise-linear hysteresis loops frequently used in discrete automatics to be built in the model.There are implementations of the hysteresis loop model in Mathcad and in R programming language.