private
symmetric
— function
symmetric(f, period)
Return a symmetric function such that for t ∈ [1, period / 2)
,
the symmetric function evaluates to f(t)
, and when t ∈ [period / 2, period)
,
the symmetric functions evaluates to f(period - t)
.