The program SGNTRIG builds a 22 character binary string that depends on the function:
g(x) =
1 if sgn(t(x/c)) is greater than 1
0 if sgn(t(x/c)) is less than or equal to 0
where:
c is a scaling factor,
sgn(x) is the sign function, and
t(x) represents one of three trigonometric functions, sin(x), cos(x), or tan(x). Angles are assumed to be radians.
More details will be published on my blog, edspi31415.blogspot.com on December 5, 2020.