On the law of hysteresis