Earlier quoted context omitted.
If you're not using derivatives, integrals, or complex numbers, maybe you'd be better off using Wildberger's "rational trigonometry" with quadrances and spreads instead of angles? I haven't actually tried it myself. Wildberger's motivation is a sort of ultra-strict Platonism* mixed with the desire to extend analytic geometry to fields other than the real numbers, though, so it wouldn't be surprising if it wasn't actu…
So if I wanted to, say, calculate the height of a pole from the length of its shadow, I should use Wildberger's rational trig, because I don't need derivatives, integrals, or complex numbers? :)
Turns are better than radians
421–430 of 494 posts
Re: Turns are better than radians
#422Earlier quoted context omitted.
360 comes from the Babylonians, who used base-60 for numbers much for the reasons you describe (and who gave us the 24-hour day, 60 minute hour and 60-minute second, not to mention the 7-day week). NATO forces have compasses labelled in mils or milliradians, which are not actually 1/1000 of a radian but as an approximation 1/6400 of a full turn. I still have my Silva military compass from 1989 graduated thus. https:/…
I heard that the reason is 1km away it makes a difference of 1m, so easy to figure out how far enemy troops are from each other.
Re: Turns are better than radians
#423Re: Turns are better than radians
#424Earlier quoted context omitted.
Ouch. Less than 1 degree of accuracy? Well, I guess if it’s good enough for Asteroid, it’s good enough for me
The sin/cos lookup tables would only contain an octant of the circle and use various symmetries to map other values to that range. Thus the resolution is ~0.176 degrees for a 256-entry table. sin(x) = -sin(-x) = sin(pi - x) = cos(pi/2 - x) cos(x) = cos(-x) = -cos(pi - x) = sin(pi/2 - x)
Re: Turns are better than radians
#425Earlier quoted context omitted.
Ouch. Less than 1 degree of accuracy? Well, I guess if it’s good enough for Asteroid, it’s good enough for me
You can always do one cycle of newton-raphson to get nearly double the accuracy with only one extra lookup-multiply-add.
Re: Turns are better than radians
#426Earlier quoted context omitted.
> Am I wrong? Yes. Trigonometry is extensively taught in the US. People forget this stuff if they don’t use it. Ask some 30 year old chef in whatever country you fantasize teaches properly to compare and contrast turns vs radians and you’ll get similar responses.
I'd argue it's not so much taught in the US as it is tested. The common core standards say [0] that students should: > Understand radian measure of an angle as the length of the arc on the unit circle subtended by the angle. > Explain how the unit circle in the coordinate plane enables the extension of trigonometric functions to all real numbers, interpreted as radian measures of angles traversed counterclockwise aro…
This happens with very basic things like human languages. Bilingual people can forget an entire secondary language if they don’t use it for a decade+.
Re: Turns are better than radians
#427Earlier quoted context omitted.
> Am I wrong? Yes. Trigonometry is extensively taught in the US. People forget this stuff if they don’t use it. Ask some 30 year old chef in whatever country you fantasize teaches properly to compare and contrast turns vs radians and you’ll get similar responses.
Sure, but are people here chefs? I would expect most programmers in mu country to remember this, but most chefs to have forgot it.
Re: Turns are better than radians
#428The author makes the point that turns allow for exact representation of many commonly used angles, but with binary floating point, many common angles (1/6 of a turn, for example) are inexact. This could be addressed by using a whole number other than 1 to represent a turn ... one that is a multiple of 3 (or 3x3) and 5, and while we're at it, 2 (or 2x2x2), so most commonly-used angles are whole numbers! That gives us…
Re: Turns are better than radians
#429Indeed, maths never "decreed that sine and cosine have to take radian arguments". But thinking that makes any sort of point is a fundamental misunderstanding of maths. There are infinitely many sinusoidal functions out there. You can just adjust amplitude, frequency and phase to your heart's content. Trigonometry basically requires that sine and cosine have specific amplitudes and phases, but gives not one shit about…
> Degrees are completely arbitrary Degrees are very natural in the context of ancient astronomy/astrology, where you have (1) ~365 days in a year, so that if you look at the path of something that takes a year you get about one degree change per day but with a number that is more easily divisible. (2) approximately 4y, 10y, 8y, 15y, 12y, 30y cycles for the moon and various planets. (3) A calendar with 12 months, 12 z…
Re: Turns are better than radians
#430Bravo! Bravo!! Now if we can just make base10 math the default in modern languages and only let the very few propeller headed weenies that really need it ever pay attention to floating point math and IEEE-754 Hell, we can join the 21st century we were promised. (Oh, where's my flying car, dammit?!)