WLJS LogoWLJS Notebook

Haversine

Haversine[z] gives the haversine function hav(z) = (1 - cos(z))/2.

Examples

Compute haversine:

Haversine[Pi]
(* 1 *)

Haversine of 0:

Haversine[0]
(* 0 *)

Please visit the official Wolfram Language Reference for more details.

On this page