Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (Validate())
            {
                try {
                    LinearSystem system = new LinearSystem(MatrixA, VectorB);
                    resultX          = system.XVector;
                    middleComplexity = calculateComplexity(resultX, VectorX);
                    cycles           = graph.detectedCycles;
                    ResultForm newForm = new ResultForm(this);

                    newForm.Show();
                    //VectorU = system.UVector;
                } catch (Exception error) {
                    MessageBox.Show(error.Message);
                }
            }
        }