private void btnDeterminantOfM1_Click(object sender, EventArgs e) { updateM1(); double result = MatrixAndVector.Determinant(matrix1); richTextBox1.Text = result.ToString(); }
private void btnM1TimeV1_Click(object sender, EventArgs e) { updateM1(); updateV1(); double[] result = MatrixAndVector.MatrixTimeVector(matrix1, vector1); richTextBox1.Text = MatrixAndVector.VectorString(result); }
private void btnNormOfV1_Click(object sender, EventArgs e) { updateV1(); double result = MatrixAndVector.Norm(vector1); richTextBox1.Text = result.ToString(); }
private void btnM1MinusM2_Click(object sender, EventArgs e) { updateM1(); updateM2(); double[,] result = MatrixAndVector.Subtraction(matrix1, matrix2); richTextBox1.Text = MatrixAndVector.MatrixString(result); }
private void btnV1MinusV2_Click(object sender, EventArgs e) { updateV1(); updateV2(); double[] result = MatrixAndVector.Subtraction(vector1, vector2); richTextBox1.Text = MatrixAndVector.VectorString(result); }
private void btnM3xM1_Click(object sender, EventArgs e) { updateM1(); updateM3(); double[,] result = MatrixAndVector.Multiplication(matrix3, matrix1); richTextBox1.Text = MatrixAndVector.MatrixString(result); }
private void btnShowV1_Click(object sender, EventArgs e) { updateV1(); string s = MatrixAndVector.VectorString(vector1); richTextBox1.Text = s; }
private void btnV1V2InnerProduct_Click(object sender, EventArgs e) { updateV1(); updateV2(); double result = MatrixAndVector.InnerProduct(vector1, vector2); richTextBox1.Text = result.ToString(); }
private void InitializerUI() { //show v1 and v2 txbV1.Text = MatrixAndVector.VectorString(vector1); txbV2.Text = MatrixAndVector.VectorString(vector2); txbM1.Text = MatrixAndVector.MatrixString(matrix1); txbM2.Text = MatrixAndVector.MatrixString(matrix2); txbM3.Text = MatrixAndVector.MatrixString(matrix3); }
private void btnV1TimeM1_Click(object sender, EventArgs e) { updateM1(); updateV1(); double[] result = MatrixAndVector.VectorTimeMatrix(vector1, matrix1); string printing = ""; for (int i = 0; i < result.Length; i++) { printing += result[i] + "\t"; } richTextBox1.Text = printing; }
private void btnTransposeOfM3_Click(object sender, EventArgs e) { updateM3(); double[,] result = MatrixAndVector.TransposeMatrix(matrix3); richTextBox1.Text = MatrixAndVector.MatrixString(result); }
private void btnUnitVectorOfV1_Click(object sender, EventArgs e) { updateV1(); double[] result = MatrixAndVector.UnitVector(vector1); richTextBox1.Text = MatrixAndVector.VectorString(result); }
private void btnShowM1_Click(object sender, EventArgs e) { updateM1(); richTextBox1.Text = MatrixAndVector.MatrixString(matrix1); }