Did you know that
And that
True story!
Test Results:
a#=Sqr#(x#)is faster than
a#=x#/y#
And that
Atan(x#)is faster than
Atan(x%)
True story!
Test Results:
Calculations per second Integers Floats Sin 14903100 11074200 Cos 14992500 11086500 Tan 11350700 9407340 Asin unable to test 5002500 Acos unable to test 5005000 Atan 9532890 11904800 Atan2 11467900 9363300 Sqr 85470100 54945100 + 400000000 64516100 - 400000000 64516100 * 454545000 64516100 / 82644600 53475900 Mod 65789500 10905100
Integer speed sorted fastest to slowest * 454545000 + 400000000 - 400000000 Sqr 85470100 / 82644600 Mod 65789500 Cos 14992500 Sin 14903100 Atan2 11467900 Tan 11350700 Atan 9532890 Asin unable to test Acos unable to test
Float speed sorted fastest to slowest + 64516100 - 64516100 * 64516100 Sqr 54945100 / 53475900 Atan 11904800 Cos 11086500 Sin 11074200 Mod 10905100 Tan 9407340 Atan2 9363300 Acos 5005000 Asin 5002500