# Error of inverse matrix

**URL:** <https://root-forum.cern.ch/t/error-of-inverse-matrix/51582>\
**Category:** Newbie\
**Created:** [September 15, 2022, 5:58pm UTC](https://root-forum.cern.ch/t/error-of-inverse-matrix/51582 "2022-09-15T17:58:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dil](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dil/32/26887_2.png) [@Dil](https://root-forum.cern.ch/u/Dil)\
**Post date:** [September 15, 2022, 5:58pm UTC](https://root-forum.cern.ch/t/error-of-inverse-matrix/51582/1 "2022-09-15T17:58:13Z")

</div>

Hello Rooters,

Is there a direct way to calculate the error of the inverse matrix?  
I have a 6 x 6 matrix.  
I used following lines to take a the inverse of my matrix.I am looking note/code for calculate the error of the inverse matrix efficiently?

```auto
matrix.Print();
   
   TMatrixD matInv(matrix);
   matInv.Invert()
   matInv.Print();

```

Apology if this is a stupid question.

Thanks  
Dil

---

<div class="post-metadata">

**Author:** ![Eddy\_Offermann](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eddy_offermann/32/25079_2.png) [@Eddy\_Offermann](https://root-forum.cern.ch/u/Eddy_Offermann)\
**Post date:** [September 15, 2022, 7:39pm UTC](https://root-forum.cern.ch/t/error-of-inverse-matrix/51582/2 "2022-09-15T19:39:53Z")

</div>

Hi Dil,

Thank you for the question.

Could it be that you are referring to the [condition](https://root.cern.ch/doc/master/classTDecompBase.html#aca31be32fb567945db2265eaa537bb05) number of the matrix.

best regards, Eddy
