Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SIN and COS functions have bug ?
Hello to the zx basic community. I'm integrating the compiler into my own spectrum bot.

I created a sample sinewave graph
FOR x = 10 TO 245 STEP 2
  PLOT x,100+SIN(2*x*PI/180)*50

However I see the values jump around 90 deg, see video here

I cannot find any reference in the doc , it is supposed to be sinclair compatible, but in sinclair basic it works ok

thanks a lot
nevermind, declared x as float
dim x
(08-17-2022, 12:44 AM)papa_robot Wrote: nevermind, declared x as float
dim x

Glad to see you catch it! Cool

Forum Jump:

Users browsing this thread: 1 Guest(s)