Hello everyone!

I'm a Java newbie and I'm trying to create an applet that will draw a graph to find the roots of a cubic equation y = ax^3+bx^2+cx+d.

The user has to input the range and the values of a, b, c and d.

I've done the layout but now I don't know to implement the maths.

Can anyone help please?