4 ms·
Your argument is correct and I'm sure you're really smart and all that. However, Proportion of code where radians are used to represent rotation in 2D (i.e. t
by moralestapia 1mo ago
Your argument is correct and I'm sure you're really smart and all that.
However,
Proportion of code where radians are used to represent rotation in 2D (i.e. turns): 99.9999%
Proportion of code where radians are used to perform higher degree derivatives, symbolic computation, etc: 00.0001%
- adrian_b 1mo agoThat is true, but only due to a historical accident, which has been preserved by the inertia of the mathematical education system. The use of the trigonometric functions with arguments in radians, which are unfortunately standard in most programming languages, wastes time and introduces unnecessary rounding errors at each function evaluation. The functions with arguments in cycles perform exact argument reduction instead of approximate argument reduction, and which is also faster (omitting a multiplication with an approximate value).
- moralestapia 1mo agoThanks for agreeing with me, GPT.