Public
Edited
Feb 4, 2024
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
pts = {
let a = 0;
let b = 3.7;
let dx = (b - a) / n;
return d3.range(a, b + dx / 2, dx).map(x => [x, f(x)]);
}
Insert cell
samples = build_samples(f, 0, 3.7)
Insert cell
f = (x) => x / 2 + Math.sin(2 * x)
Insert cell
import { build_samples } from "@mcmcclur/adaptive-plotter"
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