Recent content by KWKWII

  1. K

    Comp Sci Matrix inverse with LU decomposition in C++

    #include <iomanip> cout<< setprecision(3) << fixed << x[i][j]<<" "; (kind of different, but it works the same i set it to only spell out 3 digits behind . ) using that, the result now becomes A11 = -0.000 A21 = 0.000 well, although it's still weird for 0 to have (-) signs but at least...
  2. K

    Comp Sci Matrix inverse with LU decomposition in C++

    oh, i thought it wasn't fine... i see, i'll do so next time and also although it is closer to 0, it is not 0 and the actual answer (done manually) is supposed to be 0 tried changing into integer, but it's even worse than using float or double because the solution become numbers without...
  3. K

    Comp Sci Matrix inverse with LU decomposition in C++

    it is a repost, but i think i need to because when i re-read the guidelines, i must use proper English which, i think, is not proper on my last post so i tried to simplify my words on the new post (here) and by using double for all matrix variables, it indeed became more precise, but also...
  4. K

    Comp Sci Matrix inverse with LU decomposition in C++

    Homework Statement the problem is to find the inverse of a 3x3 matrix using LU Decomposition with C++ command, with the numbers designated. in my case, my numbers for the matrix are '306 410 780' #include <stdio.h> #include <iostream> #include <stdlib.h> #include <math.h> using namespace std...
Back
Top