Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduced-row-echelon-form.java returns wrong result #13

Open
axkr opened this issue May 2, 2018 · 0 comments
Open

reduced-row-echelon-form.java returns wrong result #13

axkr opened this issue May 2, 2018 · 0 comments

Comments

@axkr
Copy link

axkr commented May 2, 2018

The reduced-row-echelon-form.java of this example:

  double[][] matrix_0 = {
    {1,0,-1,0},
    {0,1,0,-1},
    {1,-2,-1,0},
    {-1,0,3,1}
  };

  Matrix x = new Matrix(matrix_0);
  System.out.println("before\n" + x.toString() + "\n");
  x.RREF();
  System.out.println("after\n" + x.toString() + "\n");

should return the 4x4 identity matrix.

See wolframalpha for the input:

RowReduce({{1,0,-1,0},{0,1,0,-1},{1,-2,-1,0},{-1,0,3,1}})
enivill added a commit to enivill/RosettaCodeData that referenced this issue Dec 29, 2020
Solution for this issue: reduced-row-echelon-form.java returns wrong result acmeism#13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant