 polynomial together with points */
      draw2d(
        color      = red,
        key        = &quot;Lagrange polynomial&quot;,
        explicit(f(x),x,0,10),
        point_size = 3,
        color      = blue,
        key        = &quot;Sample points&quot;,
        points(p))$
(%i9) /* Change variable name */
      lagrange(p, varname=w);
       (w - 7) (w - 6) (w - 3) (w - 1)
(%o9)  -------------------------------
                     35
   (w - 8) (w - 6) (w - 3) (w - 1)
 - -----------------------------