Public
Edited
Jun 10, 2023
1 fork
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
sample = (fn, [start, end] = domain) => [...d3.range(start, end, (end - start) / 100), end].map(fn)
Insert cell
domain = [0.1, 0.9]
Insert cell
a = x => 1 / x
Insert cell
b = x => -1 / (x - 1)
Insert cell
ab = (x) => a(x) * b(x)
Insert cell
Insert cell
Insert cell
a1 = (x) => .18 / (x - 1) + 2.1
Insert cell
b1 = (x) => -0.18 / x + 2.1
Insert cell
ab1 = (x) => a1(x) * b1(x)
Insert cell
Insert cell
Insert cell
b2 = (x) => -0.2 / (x - 1)
Insert cell
ab2 = (x) => a1(x) * b2(x)
Insert cell
Insert cell
Insert cell
a3 = (x) => .2 / x
Insert cell
ab3 = (x) => a3(x) * b1(x)
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