Hacker News new | ask | show | jobs
by seanhunter 423 days ago
Trig is full of functions that fall into disuse and are forgotten.

For example "versine"

versin theta = 1-cos theta.

There is also "haversine" which is (1-cos theta)/2. Which is used in navigation apparently https://en.wikipedia.org/wiki/Versine

2 comments

See R.W. Sinnott, "Virtues of the Haversine", Sky and Telescope, vol. 68, no. 2, 1984, p. 159
iirc, haversine is useful for transforming 2-d "as the crow flies" coords to their 3-d equivalents. at longer distances a body's curvature is really noticeable and often overlooked
Interesting. versine has a lovely and intuitive geometric definition. If you construct a right triangle from the origin to some point on the circle, most people who have done trig will know that the x-coordinate of that point is r cos theta, where theta is the angle and r is the radius. Geometrically the distance from the origin to where the triangle rests on the x axis is r cos theta. But what about the rest of that radius? ie the line segment on the x-axis from there to where the circle intersects the x-axis?

That is r versin theta (ie r - r cos theta). Pretty cool no? I mean I've literally never had to find the length of that line, but that's how you would if you wanted to..