News for hackers. Stuff that matters.
Re:Trig Functions Your Math Teachers Never Taught You by chrislipa on Friday September 13, 2013 @04:03PM (#6382769)
Your math teacher never taught you these because they're just labels attached to quantities expressible in terms of sine and cosine. They don't aid mathematical understanding, and they don't let you solve any problem that you couldn't before.
Re:Trig Functions Your Math Teachers Never Taught You by jloughry on Friday September 13, 2013 @04:25PM (#6382893)
...they don't let you solve any problem that you couldn't before

But they did have a purpose, years ago. Before pocket calculators, when people used slide rules and log tables, a table of haversines helped avoid nasty loss-of-precision errors near the roots of a function.

Re:Trig Functions Your Math Teachers Never Taught You by dalke on Friday September 13, 2013 @04:45PM (#6383030)
To emphasize your response, the article goes into depth on this exact point:

> I must admit I was a bit disappointed when I looked these up. They’re all just simple combinations of dear old sine and cosine. Why did they even get names?! ...

> The secret trig functions, like logarithms, made computations easier. Versine and haversine were used the most often. Near the angle θ=0, cos(θ) is very close to 1. If you were doing a computation that had 1-cos(θ) in it, your computation might be ruined if your cosine table didn’t have enough significant figures.

Re:Trig Functions Your Math Teachers Never Taught You by saraid216 on Friday September 13, 2013 @06:11PM (#6383510)
For serious. Why wasn't math class just "Look, here's an empty set. Go forth and do math."?

/s

Re:Trig Functions Your Math Teachers Never Taught You by jpmattia on Friday September 13, 2013 @05:30PM (#6383288)
> Your math teacher never taught you these because they're just labels attached to quantities expressible in terms of sine and cosine.

... which is why I plan to ignore tangent from now on.

Re:Trig Functions Your Math Teachers Never Taught You by waqf on Friday September 13, 2013 @05:50PM (#6383403)
And also sec, cosec, cot.

But notice they are at least not polynomial in cos and sin, whereas the functions introduced in this article are.

To be erudite about it, there are essentially no other trig functions than cos and sin, in the sense that cos and sin (aka x and y) generate the ring of polynomial functions on the circle, ℂ[x,y]/(x²+y²-1).

Versine etc. are elements of the ring and therefore they are generated (as polynomials) by cos and sin, whereas tan etc. are not elements of the ring because they sometimes go to infinity (they're elements of the larger function field).

Re:Trig Functions Your Math Teachers Never Taught You by baddox on Friday September 13, 2013 @10:07PM (#6384340)
Or conversely, sine and cosine are just labels attached to quantities expressible in terms of coversine, versine, etc.
Re:Trig Functions Your Math Teachers Never Taught You by mistercow on Friday September 13, 2013 @06:02PM (#6383469)
That would apply to tangent, cotangent, secant, and cosecant as well, and yet you still learn those (even though, at least in my experience, high school trig didn't attempt to give any foundation for what the hell any of those are (other than tangent), besides their relationships to the other functions.
Re:Trig Functions Your Math Teachers Never Taught You by FkZ on Sunday September 15, 2013 @07:55AM (#6388805)
I don't know if it's a difference in education systems or the individual teachers, but I didn't learn about any of those other than tangent until I entered university, and then only as a side note in a calculus text book.
Re:Trig Functions Your Math Teachers Never Taught You by comrade_ogilvy on Friday September 13, 2013 @08:21PM (#6384076)
Tan, cotan, sec, cosec have practical value in calculus.

It might be a little unfair to expect your trig teacher to prove that to you.

Re:Trig Functions Your Math Teachers Never Taught You by FkZ on Sunday September 15, 2013 @07:53AM (#6388802)
If they're going to be taught, it is fair to expect the motivation for teaching them.
Re:Trig Functions Your Math Teachers Never Taught You by alexkus on Saturday September 14, 2013 @05:44AM (#6385143)
Given that:- sin(x) = cos( pi/2 - x ) cos(x) = sin( pi/2 - x ) you only need one of them.
Re:Trig Functions Your Math Teachers Never Taught You by McUsr on Saturday September 14, 2013 @08:20AM (#6385358)
Hello.

I am surprised that none of you mentioned that some of those functions, at least the haversine function saves precision. -Which is important if you do your calculations with something that doesn't have the long doubles and such.

I code some in AppleScript, and I love the haversine function since I have a precision of only 12 digits or so. Have a look at http://en.wikipedia.org/wiki/Haversine.

Re:Trig Functions Your Math Teachers Never Taught You by picomancer on Friday September 13, 2013 @08:22PM (#6384079)
You can derive the identity 2 sin^2(θ / 2) = 1 - cos(θ) mentioned in the article from the double angle cosine formula,

    cos(2 Φ) = cos^2(Φ) - sin^2(Φ)
Since cos^2(Φ) + sin^2(Φ) = 1, substitute 1 - sin^2(Φ) for cos^2(Φ) in the above and you have:

         cos(2 Φ) = cos^2(Φ) - sin^2(Φ)
                  = (1 - sin^2(Φ)) - sin^2(Φ)
                  = 1 - 2 sin^2(Φ)
       2 sin^2(Φ) = 1 - cos(2 Φ)
Let θ = 2 Φ and the above becomes:

    2 sin^2(θ / 2) = 1 - cos(θ)
Re:Trig Functions Your Math Teachers Never Taught You by picomancer on Friday September 13, 2013 @08:33PM (#6384114)
If you don't remember the double angle formula I used in the parent, but you remember the angle-addition formulas:

    cos(ψ + Φ) = cos(ψ) cos(Φ) - sin(ψ) sin(Φ)
    sin(ψ + Φ) = sin(ψ) cos(Φ) + cos(ψ) sin(Φ)
You can just set ψ = Φ and get:

    cos(2 Φ) = cos^2(Φ) - sin^2(Φ)
    sin(2 Φ) = 2 cos(Φ) sin(Φ)
If you don't remember the angle-addition formulas, but you remember that multiplying two complex numbers means adding their angles (arguments) and multiplying their lengths (moduli), you can just pick two unit-modulus complex numbers w = cos(ψ) + i sin(ψ) = a + bi, and z = cos(Φ) + i sin(Φ) = c + di. Multiplying them gives some complex number wz = u + vi, but because these are unit vectors, it must be the case that u = cos(ψ + Φ) and v = sin(ψ + Φ). So

    u + vi = wz
           = (a + bi) (c + di)
           = ac + (bc + ad)i + bdi^2
           = (ac - bd) + (bc + ad)i
Then equating real and imaginary parts, you get

    u = ac - bd
    v = bc + ad
If you substitute the trig expressions for the variables it becomes

    cos(ψ + Φ) = cos(ψ) cos(Φ) - sin(ψ) sin(Φ)
    sin(ψ + Φ) = sin(ψ) cos(Φ) + cos(ψ) sin(Φ)
Math is good for people who can't remember things, because you can always re-derive anything you've forgotten.
Re:Trig Functions Your Math Teachers Never Taught You by greenyoda on Friday September 13, 2013 @03:21PM (#6382540)
Re:Trig Functions Your Math Teachers Never Taught You by hayksaakian on Friday September 13, 2013 @05:42PM (#6383369)
interesting that it did better as a repost 6 hours later.

seems noon PST / 3pm est is a better time to post than 6am est / 9pm pst

Re:Trig Functions Your Math Teachers Never Taught You by mjcohen on Saturday September 14, 2013 @01:27AM (#6384759)
Where's the Gudermannian?

From wikipediophile:

"The Gudermannian function, named after Christoph Gudermann (1798–1852), relates the circular functions and hyperbolic functions without using complex numbers."

Re:Trig Functions Your Math Teachers Never Taught You by rotten on Saturday September 14, 2013 @07:34AM (#6385285)
In the article they mention that log functions make some multiplication problems much faster for humans to solve. Can they also make it faster for computers to solve?

In other words, if I'm writing a program (perhaps for data analysis) that has to do a large amount of multiplication, can I get the answers faster by converting them to log and then adding them, and then reverse look up the result?

Or, are addition and multiplication equally fast on most computers so that the time to look up log values would always be slower?

Re:Trig Functions Your Math Teachers Never Taught You by temujin on Saturday September 14, 2013 @08:00AM (#6385317)
Floating-point multiplication generally isn't much slower than addition on modern machines. Logs are useful for avoiding floating point overflow/underflow, though.
Re:Trig Functions Your Math Teachers Never Taught You by chris_wot on Friday September 13, 2013 @09:26PM (#6384243)
It's interesting, I'm actually studying trigonometry at the moment. I have found that the biggest gap is actually understanding what sine, cosine, tangent, secant, cosecant and cotangent are. Once you realise they are lines on a circle, and the reason for the names, things clicked into place for me!
Re:Trig Functions Your Math Teachers Never Taught You by wwweston on Friday September 13, 2013 @05:38PM (#6383343)
... unless you tried working out distances between lat/lon points.
Re:Trig Functions Your Math Teachers Never Taught You by _j5l3 on Saturday September 14, 2013 @02:26AM (#6384872)
Re:Trig Functions Your Math Teachers Never Taught You by alexkus on Saturday September 14, 2013 @05:46AM (#6385146)
Probably because it's linked to in the first line of the original article.
Re:Trig Functions Your Math Teachers Never Taught You by derleth on Friday September 13, 2013 @04:33PM (#6382954)
You could just as easily say there are zero trigonometric functions and do everything in terms of complex exponentiation. Euler's Formula guides the way:

http://en.wikipedia.org/wiki/Euler's_formula

http://www.mathsisfun.com/algebra/eulers-formula.html

My point is that there are multiple ways to express the underlying concepts here and picking the most appropriate way for the current context is a large part of what you learn when you learn more advanced mathematics.

Re:Trig Functions Your Math Teachers Never Taught You by RodericDay on Saturday September 14, 2013 @04:11PM (#6386913)
For the love of god can you people PLEASE stop doing this? Taking a glance at a page, assuming the writer is an idiot, whipping up a quick one-upper, and a bunch of upvotes to go along with it?

LOOK:

I must admit I was a bit disappointed when I looked these up. They’re all just simple combinations of dear old sine and cosine. Why did they even get names?! From a time and place where I can sit on my couch and find the sine of any angle correct to 100 decimal places nearly instantaneously using an online calculator, the versine is unnecessary. But these seemingly superfluous functions filled needs in a pre-calculator world.

It's just a neat informative article, not a challenge to your manhood ffs

Re:Trig Functions Your Math Teachers Never Taught You by derleth on Sunday September 15, 2013 @05:18AM (#6388545)
> It's just a neat informative article, not a challenge to your manhood ffs

Aside from the completely unfounded assumption I must be male, you completely misread my post. I was just pointing out something tangentially related that I feel to be interesting. Nothing else. Any other emotions you feel are entirely your own.