MATLAB Mathematica and MatLab Differences

  • Thread starter Thread starter Philosophaie
  • Start date Start date
  • Tags Tags
    Mathematica Matlab
Click For Summary
The discussion centers on discrepancies encountered while solving a matrix equation in both Mathematica and MATLAB. The matrix in question is represented as Γ(i,j,k), and the resultant matrix R is defined by a specific equation involving derivatives and summation over indices. The user notes that MATLAB produces different results compared to Mathematica. Upon further investigation, it was found that MATLAB did not simplify the Riemann matrix fully, which led to the differing outcomes. The solution involved using a specific command in MATLAB to achieve the same level of simplification as Mathematica, ensuring consistency in results.
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:

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

The Equation for the resultant matrix is:

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)

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.
 
Physics news on Phys.org
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.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 71 ·
3
Replies
71
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K