Reputation
Next privilege 125 Rep.
Vote down
Badges
2
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 1 vote cast
Sep
24
awarded  Autobiographer
Apr
12
comment Getting the sequence $\{1, 0, -1, 0, 1, 0, -1, 0, \ldots\}$ without trig?
This function is extremely useful in animation where you need cylical motion at say, 60 frames a second, but don't want the overhead of the circle functions and don't care about the bumpiness.
Apr
12
awarded  Supporter
Apr
12
comment Getting the sequence $\{1, 0, -1, 0, 1, 0, -1, 0, \ldots\}$ without trig?
I call this the 'fold' function. If you are applying it in programming, the behavior across 0 for mod can vary, so it might need to be tweaked.