import java.awt.*;
import java.awt.event.*;
import java.lang.Math;
import java.applet.Applet;
public class qiugen extends Applet implements ActionListener
{
TextField test1,test2,test3,test4,test5;
double a,b,c;
double x1,x2;
Button mybutton;
public void init()
{
test1=new TextField(2);
test2=new TextField(2);
test3=new TextField(2);
test4=new TextField(4);
mybutton=new Button("计算");
test5=new TextField(50);
add(test1);
add(test2);
add(test3);
add(mybutton);
add(test4);
add(test5);
mybutton.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==mybutton)
{
a=Double.parseDouble(test1.getText());
b=Double.parseDouble(test2.getText());
c=Double.p