Published
Edited
Mar 20, 2019
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
sc = (t) => Math.sqrt(t+1)*Math.cos(t)
Insert cell
Insert cell
Insert cell
outXY = {
let [h1, h2, T0] = h1h2T0;
let chart_y = [];
chart_y[0] =
{ xy: d3.range(64).map(i => [i*h1, sc(i*h1)])
,nmHtml:` ‒○‒ sc(t)|<sub>h<sub>1</sub>`
,color:colors_[0]
,pathAttrs:{"stroke-width": 1.5}
,symbAttrs:{symb: "circle", r:3, "stroke-width": 1}
}
chart_y[1] =
{ yh: d3.range(64).map(i => sc(i*h2)), h:h2, t_offs:T0
,nmHtml:` <b>‒-‒</b> sc(t - T<sub>0</sub>)|<sub>h<sub>2</sub></sub>`
,color:colors_[1]
,pathAttrs:{"stroke-width": 3}
}
return (chart_y.reverse());
}
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