quote:
Originally posted by mezzanine
The cubic Bézier curve formula resolves to a cubic equation in terms of t, which is quite difficult to solve. If you're really brave, you can write the equation in depressed form and make use of the Chebyshev radicals to find the roots.
but he has a cubic formula in terms of t, but he equals it to "ans" which is undefined, so he can't solve anything
Anyway, cubic equations do have a formula to find their roots, however it's quite complex (it uses several square and cubic roots and the imaginary number i). You can find the exact formula clicking
here, typing "ax^3+bx^2+cx+d= 0" (without quotes) in the text area next to where it says "solve" and pressing the button Solve