();
        spline_context.moveTo(x_to_client(spline_xs[min_i]), y_to_client(spline_ys[min_i]));
        spline_context.lineTo(client_x, client_y);
        spline_context.strokeStyle="#AA3311";
        spline_context.stroke();
        spline_context.closePath();
        spline_context.setLineDash([]);
    }
}

    </script>
  </head>
  <body>
    <center>
    <h1>
Polynomial interpolation
    </h1>
    <p>
    <canvas id="polynomial" width=640 height=512></canvas>
    <table>
    <tr><td rowspan="2">
<b>P(x