Text this: Mathematical models of hysteresis and their applications