MCPcopy Create free account
hub / github.com/idank/explainshell / d3_haversin

Function d3_haversin

explainshell/web/static/js/d3.v3.js:1299–1301  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1297 return (Math.exp(x) + Math.exp(-x)) / 2;
1298 }
1299 function d3_haversin(x) {
1300 return (x = Math.sin(x / 2)) * x;
1301 }
1302 d3.hcl = function(h, c, l) {
1303 return arguments.length === 1 ? h instanceof d3_Hcl ? d3_hcl(h.h, h.c, h.l) : h instanceof d3_Lab ? d3_lab_hcl(h.l, h.a, h.b) : d3_lab_hcl((h = d3_rgb_lab((h = d3.rgb(h)).r, h.g, h.b)).l, h.a, h.b) : d3_hcl(+h, +c, +l);
1304 };

Callers 1

d3_geo_interpolateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected