Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wrong math (solved)
#2
They are actually the same value. It's a matter of precission.
SIN 1 is being calculated directly by the compiler in compiling time.
SIN(1) is aprox 0.8414709848078965

The 2nd case is computed in runtime, using the ROM calculator.

I guess this is due to a bug in precision converting from PC to ZX Spectrum 5 bytes format.
Will investigate this and keep you posted.

Thanks
Reply


Messages In This Thread
Wrong math (solved) - by zarsoft - 11-08-2023, 09:43 AM
RE: Wrong math - by boriel - 11-12-2023, 05:46 PM
RE: Wrong math - by boriel - 01-03-2024, 06:50 PM
RE: Wrong math - by boriel - 01-03-2024, 07:34 PM
RE: Wrong math - by zarsoft - 01-03-2024, 11:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)