Message Boards Message Boards

0
|
6895 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Log Det vs Tr Log numerical discrepancy?

Posted 8 years ago

Hello, I was investigating the behaviour of Mathematica with matrices, and found the following very strange fact.

For the following matrix V = 5 {{0.0030, 0.0008}, {0.0008, 0.0037}} with some very nice Eigenvalues[V] {0.0211161, 0.0123839} the two ways of calculation give very different results Log[Det[V]] // FullForm -8.249076274459297 Tr[Log[V]] // FullForm -8.189689624777785

I wonder what is the nature of such huge discrepancy in whats should have been equal?

2 Replies
Posted 4 years ago

You might want to use MatrixLog instead of Log.

POSTED BY: J Coss

Note that Log threads over the matrix:

In[1]:= v = {a, b, c, d}

Out[1]= {a, b, c, d}

In[2]:= Log[v]

Out[2]= {Log[a], Log[b], Log[c], Log[d]}
POSTED BY: S M Blinder
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract