Computing inverse of matrix with very small precision values The 2019 Stack Overflow Developer Survey Results Are InComputing the largest Eigenvalue of a very large sparse matrix?Matrix is singular to working precisionMoore-Penrose Pseudo-inverse of a matrix on adding 1 new row/columnFormal inverse of a matrix ressembling Fourier's matrixFinding only first row in a matrix inverseBest approach for numerically computing the pseudo-inverse of a covariance matrixHow to computationally invert a matrix with small values?How can I efficiently calculate the inverse of this symmetric near-tridiagonal matrix?Diagonal approximation of the inverse of a sparse matrixleast squares approximation method for computing the inverse of the matrix $A$

What tool would a Roman-age civilization have for the breaking of silver and other metals into dust?

How to answer pointed "are you quitting" questioning when I don't want them to suspect

Identify This Plant (Flower)

FPGA - DIY Programming

Button changing it's text & action. Good or terrible?

Am I thawing this London Broil safely?

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

Worn-tile Scrabble

How to save as into a customized destination on macOS?

Who coined the term "madman theory"?

One word riddle: Vowel in the middle

Why is the maximum length of OpenWrt’s root password 8 characters?

What is the accessibility of a package's `Private` context variables?

What do the Banks children have against barley water?

Is three citations per paragraph excessive for undergraduate research paper?

How to deal with fear of taking dependencies

Are children permitted to help build the Beis Hamikdash?

Does a dangling wire really electrocute me if I'm standing in water?

What is the most effective way of iterating a std::vector and why?

Earliest use of the term "Galois extension"?

What does "fetching by region is not available for SAM files" means?

Is there a symbol for a right arrow with a square in the middle?

What is the meaning of Triage in Cybersec world?

Why not us interferometry to take a picture of Pluto?



Computing inverse of matrix with very small precision values



The 2019 Stack Overflow Developer Survey Results Are InComputing the largest Eigenvalue of a very large sparse matrix?Matrix is singular to working precisionMoore-Penrose Pseudo-inverse of a matrix on adding 1 new row/columnFormal inverse of a matrix ressembling Fourier's matrixFinding only first row in a matrix inverseBest approach for numerically computing the pseudo-inverse of a covariance matrixHow to computationally invert a matrix with small values?How can I efficiently calculate the inverse of this symmetric near-tridiagonal matrix?Diagonal approximation of the inverse of a sparse matrixleast squares approximation method for computing the inverse of the matrix $A$










1












$begingroup$


I have a square matrix with very small values of the order of 10^-9 or 10^-20. I need to compute the inverse of this matrix. But when I try to compute the inverse of the function using Python's inbuilt numpy.linalg.inv(.) function, I get an inverse matrix with all entries 0. Is there any transformation that can be applied to the matrix to extract the inverse approximation out of the original matrix.










share|cite|improve this question











$endgroup$







  • 2




    $begingroup$
    Multiply the values of your matrix by $10^10$ or something (e.g. something that will make the average of the absolute values of your matrix entries $1$). Then find the inverse.
    $endgroup$
    – Morgan Rodgers
    Mar 30 at 16:32







  • 2




    $begingroup$
    Are all of the entries small (say, smaller than $10^-9$ in absolute value)? If so, then Morgan's trick should work
    $endgroup$
    – Omnomnomnom
    Mar 30 at 16:34










  • $begingroup$
    Obligatory: Are you sure you need to compute the inverse? There might be more appropriate tools for the task you have in mind.
    $endgroup$
    – Lorenzo
    Mar 30 at 16:41










  • $begingroup$
    @Lorenzo Yes it is inverse itself. However, even if not exact, any approximations will also do.
    $endgroup$
    – shaifali Gupta
    Mar 30 at 23:15










  • $begingroup$
    This may help:geeksforgeeks.org/precision-handling-python and mpmath.org or stackoverflow.com/questions/11522933/…
    $endgroup$
    – NoChance
    Mar 31 at 5:46















1












$begingroup$


I have a square matrix with very small values of the order of 10^-9 or 10^-20. I need to compute the inverse of this matrix. But when I try to compute the inverse of the function using Python's inbuilt numpy.linalg.inv(.) function, I get an inverse matrix with all entries 0. Is there any transformation that can be applied to the matrix to extract the inverse approximation out of the original matrix.










share|cite|improve this question











$endgroup$







  • 2




    $begingroup$
    Multiply the values of your matrix by $10^10$ or something (e.g. something that will make the average of the absolute values of your matrix entries $1$). Then find the inverse.
    $endgroup$
    – Morgan Rodgers
    Mar 30 at 16:32







  • 2




    $begingroup$
    Are all of the entries small (say, smaller than $10^-9$ in absolute value)? If so, then Morgan's trick should work
    $endgroup$
    – Omnomnomnom
    Mar 30 at 16:34










  • $begingroup$
    Obligatory: Are you sure you need to compute the inverse? There might be more appropriate tools for the task you have in mind.
    $endgroup$
    – Lorenzo
    Mar 30 at 16:41










  • $begingroup$
    @Lorenzo Yes it is inverse itself. However, even if not exact, any approximations will also do.
    $endgroup$
    – shaifali Gupta
    Mar 30 at 23:15










  • $begingroup$
    This may help:geeksforgeeks.org/precision-handling-python and mpmath.org or stackoverflow.com/questions/11522933/…
    $endgroup$
    – NoChance
    Mar 31 at 5:46













1












1








1


1



$begingroup$


I have a square matrix with very small values of the order of 10^-9 or 10^-20. I need to compute the inverse of this matrix. But when I try to compute the inverse of the function using Python's inbuilt numpy.linalg.inv(.) function, I get an inverse matrix with all entries 0. Is there any transformation that can be applied to the matrix to extract the inverse approximation out of the original matrix.










share|cite|improve this question











$endgroup$




I have a square matrix with very small values of the order of 10^-9 or 10^-20. I need to compute the inverse of this matrix. But when I try to compute the inverse of the function using Python's inbuilt numpy.linalg.inv(.) function, I get an inverse matrix with all entries 0. Is there any transformation that can be applied to the matrix to extract the inverse approximation out of the original matrix.







matrices inverse numerical-linear-algebra






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Mar 30 at 16:31









Omnomnomnom

129k794188




129k794188










asked Mar 30 at 16:26









shaifali Guptashaifali Gupta

166




166







  • 2




    $begingroup$
    Multiply the values of your matrix by $10^10$ or something (e.g. something that will make the average of the absolute values of your matrix entries $1$). Then find the inverse.
    $endgroup$
    – Morgan Rodgers
    Mar 30 at 16:32







  • 2




    $begingroup$
    Are all of the entries small (say, smaller than $10^-9$ in absolute value)? If so, then Morgan's trick should work
    $endgroup$
    – Omnomnomnom
    Mar 30 at 16:34










  • $begingroup$
    Obligatory: Are you sure you need to compute the inverse? There might be more appropriate tools for the task you have in mind.
    $endgroup$
    – Lorenzo
    Mar 30 at 16:41










  • $begingroup$
    @Lorenzo Yes it is inverse itself. However, even if not exact, any approximations will also do.
    $endgroup$
    – shaifali Gupta
    Mar 30 at 23:15










  • $begingroup$
    This may help:geeksforgeeks.org/precision-handling-python and mpmath.org or stackoverflow.com/questions/11522933/…
    $endgroup$
    – NoChance
    Mar 31 at 5:46












  • 2




    $begingroup$
    Multiply the values of your matrix by $10^10$ or something (e.g. something that will make the average of the absolute values of your matrix entries $1$). Then find the inverse.
    $endgroup$
    – Morgan Rodgers
    Mar 30 at 16:32







  • 2




    $begingroup$
    Are all of the entries small (say, smaller than $10^-9$ in absolute value)? If so, then Morgan's trick should work
    $endgroup$
    – Omnomnomnom
    Mar 30 at 16:34










  • $begingroup$
    Obligatory: Are you sure you need to compute the inverse? There might be more appropriate tools for the task you have in mind.
    $endgroup$
    – Lorenzo
    Mar 30 at 16:41










  • $begingroup$
    @Lorenzo Yes it is inverse itself. However, even if not exact, any approximations will also do.
    $endgroup$
    – shaifali Gupta
    Mar 30 at 23:15










  • $begingroup$
    This may help:geeksforgeeks.org/precision-handling-python and mpmath.org or stackoverflow.com/questions/11522933/…
    $endgroup$
    – NoChance
    Mar 31 at 5:46







2




2




$begingroup$
Multiply the values of your matrix by $10^10$ or something (e.g. something that will make the average of the absolute values of your matrix entries $1$). Then find the inverse.
$endgroup$
– Morgan Rodgers
Mar 30 at 16:32





$begingroup$
Multiply the values of your matrix by $10^10$ or something (e.g. something that will make the average of the absolute values of your matrix entries $1$). Then find the inverse.
$endgroup$
– Morgan Rodgers
Mar 30 at 16:32





2




2




$begingroup$
Are all of the entries small (say, smaller than $10^-9$ in absolute value)? If so, then Morgan's trick should work
$endgroup$
– Omnomnomnom
Mar 30 at 16:34




$begingroup$
Are all of the entries small (say, smaller than $10^-9$ in absolute value)? If so, then Morgan's trick should work
$endgroup$
– Omnomnomnom
Mar 30 at 16:34












$begingroup$
Obligatory: Are you sure you need to compute the inverse? There might be more appropriate tools for the task you have in mind.
$endgroup$
– Lorenzo
Mar 30 at 16:41




$begingroup$
Obligatory: Are you sure you need to compute the inverse? There might be more appropriate tools for the task you have in mind.
$endgroup$
– Lorenzo
Mar 30 at 16:41












$begingroup$
@Lorenzo Yes it is inverse itself. However, even if not exact, any approximations will also do.
$endgroup$
– shaifali Gupta
Mar 30 at 23:15




$begingroup$
@Lorenzo Yes it is inverse itself. However, even if not exact, any approximations will also do.
$endgroup$
– shaifali Gupta
Mar 30 at 23:15












$begingroup$
This may help:geeksforgeeks.org/precision-handling-python and mpmath.org or stackoverflow.com/questions/11522933/…
$endgroup$
– NoChance
Mar 31 at 5:46




$begingroup$
This may help:geeksforgeeks.org/precision-handling-python and mpmath.org or stackoverflow.com/questions/11522933/…
$endgroup$
– NoChance
Mar 31 at 5:46










0






active

oldest

votes












Your Answer





StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3168478%2fcomputing-inverse-of-matrix-with-very-small-precision-values%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3168478%2fcomputing-inverse-of-matrix-with-very-small-precision-values%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Triangular numbers and gcdProving sum of a set is $0 pmod n$ if $n$ is odd, or $fracn2 pmod n$ if $n$ is even?Is greatest common divisor of two numbers really their smallest linear combination?GCD, LCM RelationshipProve a set of nonnegative integers with greatest common divisor 1 and closed under addition has all but finite many nonnegative integers.all pairs of a and b in an equation containing gcdTriangular Numbers Modulo $k$ - Hit All Values?Understanding the Existence and Uniqueness of the GCDGCD and LCM with logical symbolsThe greatest common divisor of two positive integers less than 100 is equal to 3. Their least common multiple is twelve times one of the integers.Suppose that for all integers $x$, $x|a$ and $x|b$ if and only if $x|c$. Then $c = gcd(a,b)$Which is the gcd of 2 numbers which are multiplied and the result is 600000?

Ingelân Ynhâld Etymology | Geografy | Skiednis | Polityk en bestjoer | Ekonomy | Demografy | Kultuer | Klimaat | Sjoch ek | Keppelings om utens | Boarnen, noaten en referinsjes Navigaasjemenuwww.gov.ukOffisjele webside fan it regear fan it Feriene KeninkrykOffisjele webside fan it Britske FerkearsburoNederlânsktalige ynformaasje fan it Britske FerkearsburoOffisjele webside fan English Heritage, de organisaasje dy't him ynset foar it behâld fan it Ingelske kultuergoedYnwennertallen fan alle Britske stêden út 'e folkstelling fan 2011Notes en References, op dizze sideEngland

Boston (Lincolnshire) Stedsbyld | Berne yn Boston | NavigaasjemenuBoston Borough CouncilBoston, Lincolnshire