function calculateCurvature(width, height) {
if (width <= 0 || height <= 0) {
console.error("Неверные значения ширины или высоты арки.");
return null;
}
const radius = height / 2 + width ** 2 / (8 * height);
const curvature = 1 / radius;
return curvature;
}