Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
answer = equationsWithTwoRootsCoefficients.length
Insert cell
equationsWithTwoRootsCoefficients = coefficients.filter(
(coefficients) =>
coefficients.b ** 2 - 4 * coefficients.a * coefficients.c > 0
)
Insert cell
coefficients = d3.dsvFormat(";").parseRows(text, (d) => {
return { a: +d[0], b: +d[1], c: +d[2] };
}) //.parseRows(text, d3.autoType) // если хотим массив массивов, то используем закомментированный вариант
Insert cell
text = FileAttachment("9-127.csv").text()
Insert cell
9-127.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