Published
Edited
Apr 3, 2020
9 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
eggGenerator = function(a, b, d) {
return (t) => {
const T = t * Math.PI * 2;
const sinT = Math.sin(T);
const cosT = Math.cos(T);
return [
(Math.sqrt(a * a - d * d * sinT * sinT) + d * cosT) * cosT,
b * sinT
]
}
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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