If you mean periodic on x, then adding before your calculations
expression
x=mod(x,15);
can work (as this will make argument always wrap in [0,15) ).

Reply via email to