in

.NET Opensource

Community for opensource projects by Christoph Rüegg

how to get reduced row echelon form?

Last post 04-02-2009 8:40 by hellowangja. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-02-2009 8:01

    how to get reduced row echelon form?

    Here are three equations, i want to find out x,y and z.

    x+3y-2z=5

    3x+5y+6z=7

    2x+4y+3z=8

    To solve for x,y and z, i guess the following augumented matrix is to be formed, right? Then, what would be the operation i have to perform then?

                    MathNet.Numerics.LinearAlgebra.Matrix A = MathNet.Numerics.LinearAlgebra.Matrix.Create(new double[3, 4] {
                    {1, 3, -2,5},
                    {3,5,6,7},
                    {2,4,3,8}
                    });

     Please help, 

    Thanks in advance,

     

    Joon Choi

  • 04-02-2009 8:40 In reply to

    Re: how to get reduced row echelon form?

    Answer

    I got it!! Thanks anyway. I will post it below.

                     MathNet.Numerics.LinearAlgebra.Matrix A = MathNet.Numerics.LinearAlgebra.Matrix.Create(new double[3, 3] {
                    {1, 3, -2},
                    {3,5,6},
                    {2,4,3}
                    });

                    Matrix B = Matrix.Create(new double[3, 1] { { 5},{ 7},{ 8 } });
                    textBox1.Text += A.Solve(B).ToString();

Page 1 of 1 (2 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems