Published
Edited
May 28, 2021
Importers
Insert cell
Insert cell
Insert cell
Insert cell
viewof norm = repr(
tex`\text{norm}(a, b) = ||c_a - c_b||`,
([ax, ay], [bx, by]) => Math.hypot(ax - bx, ay - by)
)
Insert cell
norm([0, 0], [10, 10])
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
viewof sum = frepr(
function sum(a, b) {
return a + b;
},
{ description: "**returns** the sum of two numbers" }
)
Insert cell
sum(12, 3)
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