title: Math Error in Bezier curve
body: <p>I'm trying to get plots to generate a cubic <em>Bezier Curve</em>, and I've managed to be able to generate linear and quad easily, but I keep getting an error with my cubic formula,</p>
  
  <p>Linear formula:<code>x = (1-t)*(p0x + (t * p1x))</code>
  quad formula:<code>x = (1-t)^2 * p0x + 2*(1-t) * t * p1x + t^2 * p2x</code>
  cubic formula:<code>x = (1–t)^3 * p0x + 3*(1–t)^2 * t * p1x + 3*(1–t)*t^2 * p2x + t^3 * p3x</code></p>
  
  <p>Though the quad and cubic formula are very similar, the cubic errors "')' expected near '–'". How can this be fixed?</p>
  
  <p>I'm programming this in Lua.</p>