News for hackers. Stuff that matters.
Re:Sin and Cos: The Programmer's Pals by donquichotte on Tuesday March 06, 2018 @06:32AM (#16528184)
Ah, the race-car example is bringing back memories!

In the early days of Macromedia Flash, I wanted to build a GTA I clone. I didn't know about trigonometric functions yet, so I had a line of height 1, width 0 that I rotated around one of its ends at a fixed angular velocity while the user pressed the left and right arrow keys.

Then I read the height and width of the rotated object and added it to the x and y coordinates of the car, respectively.

For some reason, trigonometry is treated pretty late in Swiss schools (often only during the Matura, where students are 16-20y/o). I never understood this, since understanding trig can be really useful in a lot of everyday situations.

Re:Sin and Cos: The Programmer's Pals by thanatropism on Tuesday March 06, 2018 @06:53AM (#16528258)
Not to mention necessary to solve a lot of intermediate steps in Further (intermediate, advanced and research) Mathematics.

Maybe it's possible to learn about sines and cosines from Euler's identity up and forget about triangles altogether. This would enable you to do calculus, statistics, etc. But there's some value to teaching the theory of triangles as a beginner's introduction to pure mathematics (and hence the beauty in mathematics).

--- What follows has to do with triangles, but is mostly offtopic.

One of the clearest memories of my childhood, somewhere between ages 8 and 10, is a German-made (but dubbed into my language) TV educational show that had men in togas walking around Classical Greek ruins and dramatizing some scenes -- Diogenes and Alexander and so on. But what has sticked in my mind and still burns red hot was Pythagoras and his mates, crouched and drawing lines in the sand. After Pythagoras explains his hypothenuse theorem, someone interjects:

"But this holds for all triangles?"

"All triangles. All triangles that have ever been drawn -- and all triangles that will never be drawn."

A sufficiently powerful brain scanning device probably can find this line somewhere inside my skull. It got me in big trouble: I'm not particularly intelligent, let alone disciplined, but I'm slogging through a Masters in mathematics, maybe dreaming about a PhD in physics because... I don't know. It's like when ghetto kids see some violent scene right in front of them and 20 years later their criminals. It sticks with you.

Re:Sin and Cos: The Programmer's Pals by bringtheaction on Tuesday March 06, 2018 @08:26AM (#16528663)
Do you remember the name of the show, or could you find it?
Re:Sin and Cos: The Programmer's Pals by hiccuphippo on Tuesday March 06, 2018 @08:46AM (#16528778)
I remember one with Donald Duck: https://m.youtube.com/watch?v=xyQBVMCVZws
Re:Sin and Cos: The Programmer's Pals by smogcutter on Tuesday March 06, 2018 @01:07PM (#16530645)
Oh man, I watched Donald Duck in mathmagic land so many times as a kid. Good find!
Re:Sin and Cos: The Programmer's Pals by bringtheaction on Tuesday March 06, 2018 @05:23PM (#16532637)
It’s a good one. Here it is in full. https://youtu.be/PvceKeHl0Sg
Re:Sin and Cos: The Programmer's Pals by _sdegutis on Tuesday March 06, 2018 @09:22AM (#16528998)
What everyday situations can trigonometry be useful in?
Re:Sin and Cos: The Programmer's Pals by webnrrd2k on Tuesday March 06, 2018 @11:24AM (#16529801)
You rely om the results of trigonometry in the thousands of engineered object you encounter every day. Almost anything having to do with physics will have a fair amout of trig underlying it, and a lot of calculus relys on trig. So if you want to understand a lot of what's going on, you'll need trig.

It's like asking "what everyday situations is addition useful in".

Re:Sin and Cos: The Programmer's Pals by gdubs on Tuesday March 06, 2018 @12:53PM (#16530525)
I think that’s like saying one “uses” advanced physics every day because they use a cell phone. The OP question was probably asking more about what practical uses are there for normal people to actually use trig, the way you use arithmetic to calculate a tip at a restaurant.

To that I’d say: finding the height of something only knowing the length of the base and an angle. Or triangulating your position, surveying your property to make a garden, etc.

Re:Sin and Cos: The Programmer's Pals by JadeNB on Wednesday March 07, 2018 @09:53AM (#16536746)
> a lot of calculus relys on trig

This seems like an exaggeration, at least from the point of view of calculus in the classroom, where the prevalence of trigonometric functions reflects only their convenience as examples. Did I misunderstand? Perhaps more apposite is differential equations, where trigonometric functions (or exponentials more generally) are ubiquitous.

Re:Sin and Cos: The Programmer's Pals by bigger_cheese on Tuesday March 06, 2018 @09:27PM (#16533872)
If you want to work in Engineering knowledge of trig is a must have.

For instance calculating the deflection of a structural beam as you load it with weight (a discipline known as statics), depends heavily on trig. Anything involving rotation and angular momentum (such as gears and axles) require knowledge about trig.

Other than that triangulation- computing the distance between points is a useful practical application.