The versine or versed sine is a trigonometric function found in some of the earliest (SanskritAryabhatia,[1]
Section I) trigonometric tables. The versine of an angle is 1 minus its cosine.
There are several related functions, most notably the coversine and haversine. The latter, half a versine, is of particular importance in the haversine formula of navigation.
The versine[3][4][5][6][7] or versed sine[8][9][10][11][12] is a trigonometric function already appearing in some of the earliest trigonometric tables. It is symbolized in formulas using the abbreviations versin, sinver,[13][14]vers, ver[15] or siv.[16][17] In Latin, it is known as the sinus versus (flipped sine), versinus, versus, or sagitta (arrow).[18]
Expressed in terms of common trigonometric functions sine, cosine, and tangent, the versine is equal to
[math]\displaystyle{
\operatorname{versin}\theta = 1 - \cos \theta = 2\sin^{2}\frac\theta2 = \sin\theta\,\tan\frac\theta2
}[/math]
There are several related functions corresponding to the versine:
The versed cosine,[19][nb 1] or vercosine, abbreviated vercosin, vercos, or vcs.
The coversed sine or coversine[20] (in Latin, cosinus versus or coversinus), abbreviated coversin,[21]covers,[22][23][24]cosiv, or cvs[25]
The coversed cosine[26] or covercosine, abbreviated covercosin, covercos, or cvc
In full analogy to the above-mentioned four functions another set of four "half-value" functions exists as well:
The haversed cosine[33] or havercosine, abbreviated havercosin, havercos, hac or hvc
The hacoversed sine, hacoversine,[21] or cohaversine, abbreviated hacoversin, semicoversin, hacovers, hacov[34] or hcv
The hacoversed cosine,[35]hacovercosine, or cohavercosine, abbreviated hacovercosin, hacovercos or hcc
History and applications
Versine and coversine
Sine, cosine, and versine of angle θ in terms of a unit circle with radius 1, centered at O. This figure also illustrates the reason why the versine was sometimes called the sagitta, Latin for arrow.[18][36] If the arc ADB of the double-angle Δ = 2θ is viewed as a "bow" and the chordAB as its "string", then the versine CD is clearly the "arrow shaft".
Graphs of historical trigonometric functions compared with sin and cos – in the SVG file, hover over or click a graph to highlight it
The ordinary sine function (see note on etymology) was sometimes historically called the sinus rectus ("straight sine"), to contrast it with the versed sine (sinus versus).[37] The meaning of these terms is apparent if one looks at the functions in the original context for their definition, a unit circle:
For a vertical chordAB of the unit circle, the sine of the angle θ (representing half of the subtended angle Δ) is the distance AC (half of the chord). On the other hand, the versed sine of θ is the distance CD from the center of the chord to the center of the arc. Thus, the sum of cos(θ) (equal to the length of line OC) and versin(θ) (equal to the length of line CD) is the radius OD (with length 1). Illustrated this way, the sine is vertical (rectus, literally "straight") while the versine is horizontal (versus, literally "turned against, out-of-place"); both are distances from C to the circle.
This figure also illustrates the reason why the versine was sometimes called the sagitta, Latin for arrow,[18][36] from the Arabic usage sahem[38] of the same meaning. This itself comes from the Indian word 'sara' (arrow)[citation needed] that was commonly used to refer to "utkrama-jya". If the arc ADB of the double-angle Δ = 2θ is viewed as a "bow" and the chord AB as its "string", then the versine CD is clearly the "arrow shaft".
In further keeping with the interpretation of the sine as "vertical" and the versed sine as "horizontal", sagitta is also an obsolete synonym for the abscissa (the horizontal axis of a graph).[36]
In 1821, Cauchy used the terms sinus versus (siv) for the versine and cosinus versus (cosiv) for the coversine.[16][17][nb 1]
The trigonometric functions can be constructed geometrically in terms of a unit circle centered at O.
Historically, the versed sine was considered one of the most important trigonometric functions.[12][37][38]
As θ goes to zero, versin(θ) is the difference between two nearly equal quantities, so a user of a trigonometric table for the cosine alone would need a very high accuracy to obtain the versine in order to avoid catastrophic cancellation, making separate tables for the latter convenient.[12] Even with a calculator or computer, round-off errors make it advisable to use the sin2 formula for small θ.
Another historical advantage of the versine is that it is always non-negative, so its logarithm is defined everywhere except for the single angle (θ = 0, 2π, …) where it is zero—thus, one could use logarithmic tables for multiplications in formulas involving versines.
In fact, the earliest surviving table of sine (half-chord) values (as opposed to the chords tabulated by Ptolemy and other Greek authors), calculated from the Surya Siddhantha of India dated back to the 3rd century BC, was a table of values for the sine and versed sine (in 3.75° increments from 0 to 90°).[37]
The versine appears as an intermediate step in the application of the half-angle formula sin2(θ/2) = 1/2versin(θ), derived by Ptolemy, that was used to construct such tables.
Haversine
The haversine, in particular, was important in navigation because it appears in the haversine formula, which is used to reasonably accurately compute distances on an astronomic spheroid (see issues with the Earth's radius vs. sphere) given angular positions (e.g., longitude and latitude). One could also use sin2(θ/2) directly, but having a table of the haversine removed the need to compute squares and square roots.[12]
An early utilization by José de Mendoza y Ríos of what later would be called haversines is documented in 1801.[14][39]
The first known English equivalent to a table of haversines was published by James Andrew in 1805, under the name "Squares of Natural Semi-Chords".[40][41][18]
In 1835, the term haversine (notated naturally as hav. or base-10 logarithmically as log. haversine or log. havers.) was coined[42] by James Inman[14][43][44] in the third edition of his work Navigation and Nautical Astronomy: For the Use of British Seamen to simplify the calculation of distances between two points on the surface of the Earth using spherical trigonometry for applications in navigation.[3][42] Inman also used the terms nat. versine and nat. vers. for versines.[3]
Other high-regarded tables of haversines were those of Richard Farley in 1856[40][45] and John Caulfield Hannyngton in 1876.[40][46]
The haversine continues to be used in navigation and has found new applications in recent decades, as in Bruce D. Stark's method for clearing lunar distances utilizing Gaussian logarithms since 1995[47][48] or in a more compact method for sight reduction since 2014.[32]
Modern uses
Whilst the usage of the versine, coversine and haversine as well as their inverse functions can be traced back centuries, the names for the other five cofunctions appear to be of much younger origin.
One period (0 < θ < 2π) of a versine or, more commonly, a haversine (or havercosine) waveform is also commonly used in signal processing and control theory as the shape of a pulse or a window function (including Hann, Hann–Poisson and Tukey windows), because it smoothly (continuous in value and slope) "turns on" from zero to one (for haversine) and back to zero.[nb 2] In these applications, it is named Hann function or raised-cosine filter. Likewise, the havercosine is used in raised-cosine distributions in probability theory and statistics.
In the form of sin2(θ) the haversine of the double-angle Δ describes the relation between spreads and angles in rational trigonometry, a proposed reformulation of metrical planar and solid geometries by Norman John Wildberger since 2005.[49]
Comparison of the versine function with three approximations to the versine functions, for angles ranging from 0 to 2π
Comparison of the versine function with three approximations to the versine functions, for angles ranging from 0 to π/2
When the versine v is small in comparison to the radius r, it may be approximated from the half-chord length L (the distance AC shown above) by the formula[59][math]\displaystyle{ v \approx \frac{L^2}{2r}. }[/math]
Alternatively, if the versine is small and the versine, radius, and half-chord length are known, they may be used to estimate the arc length s (AD in the figure above) by the formula
[math]\displaystyle{ s\approx L+\frac{v^2}{r} }[/math]
This formula was known to the Chinese mathematician Shen Kuo, and a more accurate formula also involving the sagitta was developed two centuries later by Guo Shoujing.[60]
A more accurate approximation used in engineering[61] is
[math]\displaystyle{ v\approx \frac{s^\frac{3}{2} L^\frac{1}{2}}{8r} }[/math]
Arbitrary curves and chords
The term versine is also sometimes used to describe deviations from straightness in an arbitrary planar curve, of which the above circle is a special case. Given a chord between two points in a curve, the perpendicular distance v from the chord to the curve (usually at the chord midpoint) is called a versine measurement. For a straight line, the versine of any chord is zero, so this measurement characterizes the straightness of the curve. In the limit as the chord length L goes to zero, the ratio 8v/L2 goes to the instantaneous curvature. This usage is especially common in rail transport, where it describes measurements of the straightness of the rail tracks[62] and it is the basis of the Hallade method for rail surveying.
The term sagitta (often abbreviated sag) is used similarly in optics, for describing the surfaces of lenses and mirrors.
↑ 1.01.1Some English sources confuse the versed cosine with the coversed sine. Historically (f.e. in Cauchy, 1821), the sinus versus (versine) was defined as siv(θ) = 1−cos(θ), the cosinus versus (what is now also known as coversine) as cosiv(θ) = 1−sin(θ), and the vercosine as vcsθ = 1+cos(θ). However, in their 2009 English translation of Cauchy's work, Bradley and Sandifer associate the cosinus versus (and cosiv) with the versed cosine (what is now also known as vercosine) rather than the coversed sine. Similarly, in their 1968/2000 work, Korn and Korn associate the covers(θ) function with the versed cosine instead of the coversed sine.
↑ 2.02.1The abbreviation hvs sometimes used for the haversine function in signal processing and filtering is also sometimes used for the unrelated Heaviside step function.
↑"Chapter 11.1. Sine and cosine properties". The Mathematical-Function Computation Handbook - Programming Using the MathCW Portable Software Library (1 ed.). Salt Lake City, UT, USA: Springer International Publishing AG. 2017-08-22. p. 301. doi:10.1007/978-3-319-64110-2. ISBN978-3-319-64109-6.
↑ 14.014.114.2A History of Mathematical Notations. 2 (2 (3rd corrected printing of 1929 issue) ed.). Chicago, USA: Open court publishing company. 1952. p. 172. 1602067147. ISBN978-1-60206-714-1. https://books.google.com/books?id=bT5suOONXlgC. Retrieved 2015-11-11. "The haversine first appears in the tables of logarithmic versines of José de Mendoza y Rios (Madrid, 1801, also 1805, 1809), and later in a treatise on navigation of James Inman (1821). See J. D. White in Nautical Magazine (February and July 1926)." (NB. ISBN and link for reprint of 2nd edition by Cosimo, Inc., New York, USA, 2013.)
↑ 16.016.1"Analyse Algébrique" (in French). Cours d'Analyse de l'Ecole royale polytechnique. 1. L'Imprimerie Royale, Debure frères, Libraires du Roi et de la Bibliothèque du Roi. 1821.access-date=2015-11-07--> (reissued by Cambridge University Press , 2009; ISBN 978-1-108-00208-0)
↑ 40.040.140.2Archibald, Raymond Clare (1945). "Recent Mathematical Tables : 197[C, D].—Natural and Logarithmic Haversines...". Mathematical Tables and Other Aids to Computation1 (11): 421–422. doi:10.1090/S0025-5718-45-99080-6.
↑Astronomical and Nautical Tables with Precepts for finding the Latitude and Longitude of Places. T. XIII. London. 1805. pp. 29–148. (A 7-place haversine table from 0° to 120° in intervals of 10".)
↑"(unknown title)". Nautical Magazine. February 1926. (NB. According to Cajori, 1929, this journal has a discussion on the origin of haversines.)
↑"(unknown title)". Nautical Magazine. July 1926. (NB. According to Cajori, 1929, this journal has a discussion on the origin of haversines.)
↑Natural Versed Sines from 0 to 125°, and Logarithmic Versed Sines from 0 to 135°. London. 1856. (A haversine table from 0° to 125°/135°.)
↑Haversines, Natural and Logarithmic, used in Computing Lunar Distances for the Nautical Almanac. London. 1876. (A 7-place haversine table from 0° to 180°, log. haversines at intervals of 15", nat. haversines at intervals of 10".)