Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
answer = pentagons.length
Insert cell
pentagons = polylines.filter(
(t) => t.m - t.x === 72 || (t.m - t.x === -72 && t.k >= 5)
)
Insert cell
polylines = d3.dsvFormat(";").parseRows(text, (d) => {
return { k: +d[0], m: +d[1], n: +d[2], x: +d[3] };
}) //.parseRows(text, d3.autoType) // если хотим массив массивов, то используем закомментированный вариант
Insert cell
text = await FileAttachment("9-137.csv").text()
Insert cell
9-137.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

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