sgncos
sgncos is a mathematical function defined as the sign of the cosine function, written as sgncos(x) = sgn(cos x). Here the sign function sgn(y) returns -1 if y < 0, 0 if y = 0, and 1 if y > 0. Consequently, sgncos evaluates to 1 when cos(x) > 0, to -1 when cos(x) < 0, and to 0 when cos(x) = 0.
As a result, sgncos is a 2π-periodic, even function with discontinuities at points where cos(x) = 0,
In terms of representations, sgncos can be expressed by a Fourier series consisting of odd harmonics: sgncos(x)
Applications of sgncos arise in signal processing and digital waveform generation as a simple, zero-mean, binary-valued
See also: sign function, cosine, square wave, Fourier series, sgn(sin x).