The mod1() function might be useful.
julia> mod1(180 + 181, 360)
1
Also, this code:
setfont("Georgia Bold", 73)
...
text(string("sin $k")
is mixing the two Cairo text APIs and so won’t work the way you think.
The mod1() function might be useful.
julia> mod1(180 + 181, 360)
1
Also, this code:
setfont("Georgia Bold", 73)
...
text(string("sin $k")
is mixing the two Cairo text APIs and so won’t work the way you think.