-
Notifications
You must be signed in to change notification settings - Fork 2
math:trig ..
-Calculates sine of given number using a lookup table
-Input: degree wrapped into [0..360]
-Output: integer, scaled by 1,000,000,000 (example: 936 stands for 0.000000936)
-Uses ../sin_lt to calculate result
-Calculates sine of given number using the Bhaskara-Stroethoff formula ( Source )
-Input: scaled by 100 & wrapped into [0..36000] (representing [0.00..360.00])
-Output: scaled by 10000 (example: 936 stands for 0.0936)
-Expected max error: 0.0005 (scaled to integer -> 5 )
-Uses ../sin_bs to calculate result
-Calculates sine of given number using Minecraft commands (/tp, /scoreboard, /execute store)
-Input: scaled by 100000 & wrapped into [0..36000000] (representing [0.00000..360.00000])
-Output: scaled by 1000000 (example: 936 stands for 0.000936 )
-Uses ../sin_et to calculate result
(better > worse)
-Speed: _lt > _bs > _et
-Accuracy: _lt > _et > _bs
-Input range: _et > _bs > _lt