for (let x = -1; x <= 10.001; x += 0.5)
console.log(
"x = " + x.toString().replace(".", ",") + "; y = " +
(Math.round((x ** 3 - (x - 1) ** 2) * 100) / 100).toString().replace(".", ",")
);
for (let x = -1; x <= 10.001; x += 0.5)
console.log(
"x = " + x.toString().replace(".", ",") + "; y = " +
(Math.round((x ** 3 - (x - 1) ** 2) * 100) / 100).toString().replace(".", ",")
);