Exemplo n.º 1
0
 public Graph(Get_Data f, double a, double b, double quantity, SimpsonsMethod d)
 {
     this.a           = a;
     this.b           = b;
     this.quantity    = (int)quantity;
     interval         = (double)(b - a) / this.quantity;
     d.EventSpline   += OnSpline1;
     d.EventProgress += OnProgress;
     d.EventFinish   += OnFinish;
     d.EventTime     += OnTime;
     this.d1          = d;
     f.Hide();
     g = f;
     InitializeComponent();
 }
Exemplo n.º 2
0
 public Graph(Get_Data f, double a, double b, double quantity, MonteCarloMethod d)
 {
     this.a             = a;
     this.b             = b;
     this.quantity      = (int)quantity;
     interval           = (b - a) / this.quantity;
     d.EventPoints     += OnPoints;
     d.EventNeedPoints += OnNeedPoints;
     d.EventProgress   += OnProgress;
     d.EventFinish     += OnFinish;
     d.EventTime       += OnTime;
     this.d2            = d;
     f.Hide();
     g = f;
     InitializeComponent();
 }
Exemplo n.º 3
0
 public Graph(Get_Data f, double a, double b, double quantity, MidpointMethod d)
 {
     this.a           = a;
     this.b           = b;
     this.quantity    = (int)quantity;
     interval         = (b - a) / this.quantity;
     d.EventColumn   += OnColumn;
     d.EventProgress += OnProgress;
     d.EventFinish   += OnFinish;
     d.EventTime     += OnTime;
     this.d           = d;
     //d.Start();
     f.Hide();
     g = f;
     InitializeComponent();
 }
Exemplo n.º 4
0
        private void button1_Click(object sender, EventArgs e)
        {
            Get_Data g1 = new Get_Data(this);

            g1.Show();
        }