Mathematica and MatLab Differences

1 reply · 4K views · last reply
Philosophaie
Messages
456
Reaction score
0
I am going thru the same itterations for solving a Matrix in both Mathematica and MatLab. MatLab gives a different answer.

I am given a matrix:

[tex]\Gamma^{i}_{jk} or \Gamma(i,j,k)[/tex] that is correct.

The Equation for the resultant matrix is:

[tex]R^{i}_{jkl}=\Gamma(i,k,r)*\Gamma(r,j,l)-\Gamma(i,l,r)*\Gamma(r,j,k)+d/dx^{k}\Gamma(i,j,l)-d/dx^{l}\Gamma((i,j,k)[/tex]

with starting from summing the r then i and j and k and l.

I am trying to do the same in MatLab as in Mathematica but cannot get them to agree.
 
I answered it for myself. Matlab didn't simplify the whole way. I needed to use the simple command to simpllify the whole riemann matrix to get the same results as Mathematica.