Published
Edited
Dec 9, 2019
2 forks
18 stars
Insert cell
Insert cell
Insert cell
Insert cell
h = {
let h = k;
if (h > 0 && h < 1) {
let t0, t1 = Math.pow(12 * h * Math.PI, 1 / 3);
for (let i = 0; i < 10; ++i) {
t0 = t1;
t1 = (Math.sin(t0) - t0 * Math.cos(t0) + 2 * h * Math.PI) / (1 - Math.cos(t0));
}
h = (1 - Math.cos(t1 / 2)) / 2;
}
return h;
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more