The loss of precisions
조회 수: 3 (최근 30일)
이전 댓글 표시
hai , i applied the Least square adjustment in matlab:X=inv(N)*XA for your information , the value of X ,N and XA should be same with the value in the textbook. After computation , I had found that value of N and XA are same with the value in the book , but the X value is not same : 448.0686(from matlab) 448.1087(from book) 453.3532(from matlab) 453.4685(from book) 444.9608 (from matlab) 444.9436(from book) The X value is very importance for next step computation. If i not wrong , this is loss precision cause by inv. How to resolve this problem ?
댓글 수: 0
채택된 답변
Daniel Shub
2012년 5월 4일
If you read the documentation of inv
doc inv
In practice, it is seldom necessary to form the explicit inverse of a matrix. A frequent misuse of inv arises when solving the system of linear equations Ax = b. One way to solve this is with x = inv(A)*b. A better way, from both an execution time and numerical accuracy standpoint, is to use the matrix division operator x = A\b. This produces the solution using Gaussian elimination, without forming the inverse. See mldivide (\) for further information
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!