Public
Edited
Dec 24, 2022
Insert cell
Insert cell
U = `
// Lennard-Jones potential
float U (float x) {
float e = 1.;
float s = float(${rangeS});
return 4. * e * (pow(s/x, 12.) - pow(s/x, 6.));
}`
Insert cell
_U = (x) => 4 * 1 * (Math.pow(rangeS / x, 12) - Math.pow(rangeS / x, 6))
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