def wrap(lower, upper, x):
<EOL>range_=upper-lower<EOL>return lower + np.fmod(x-lower + <NUM_LIT:2>*range_*(<NUM_LIT:1>-np.floor(x/(<NUM_LIT:2>*range_))), range_)<EOL>
Circularly alias the numeric value x into the range [lower,upper).

Valid for cyclic quantities like orientations or hues.