I just noticed that WINDOW SCREEN doesn't seem to allow you to have y go up from bottom to top but WINDOW does. I corrected my code above accordingly - the sine wave is now the correct phase with the origin being the center of the screen.
Oops sorry I missed WINDOW SCREEN in your code _vince.
WINDOW does seem to me to maintain consistent and correct trig function for the angle going counter-clockwise as it increases. There is trouble (as I recall) trying to draw arcs with CIRCLE using the start and stop angles which is why I use a separate arc routine that works fine without any change to the trig functions, eg using - sign with SIN. The demo is supposed to demo that, the trig math remains consistently correct, using the WINDOW command that sends increasing radian angles counter-clockwise which is all the math enthusiasts want ie for the graphics to remain consistent with their schooling.
This is why I showed it to STx as he is jumping through hoops to correct BASIC graphic direction of y increasing as you go down the screen. WINDOW does it with some caveats I mentioned (probably more). Well STx confuses the issue with 3D before getting the WINDOW under his belt, of course I don't know ship about GL which might be goofed 3D wise when coding
3D WITH _GL commands, I don't know, but STx does not use that either I am pretty sure.
Oh I notice another discovery I made, use PMAP to correct mouse locations in WINDOW and also _PRINTSCREEN locations are fixed with PMAP :) Ha! but it is a challenge to think in text locations with a Cartesian Coordinate System.
I suppose more WINDOW examples and practice would help clear things up.