Need help to solve simultaneous equation in Mathematica

  • Context: Mathematica 
  • Thread starter Thread starter kaizen.moto
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary
SUMMARY

The discussion focuses on solving simultaneous equations using Mathematica, specifically utilizing the functions CoefficientArrays and SingularValueList. The user initially encounters issues determining the existence of a solution but discovers that the determinant of the matrix formed by CoefficientArrays is non-zero, indicating a solution exists. However, the presence of degenerate singular values suggests that the solution may not be unique. The user also questions the relevance of small imaginary numbers in their results.

PREREQUISITES
  • Familiarity with Mathematica 12.0 syntax and functions
  • Understanding of linear algebra concepts, particularly matrices and determinants
  • Knowledge of singular value decomposition (SVD)
  • Basic grasp of complex numbers and their significance in mathematical solutions
NEXT STEPS
  • Explore the Mathematica documentation for CoefficientArrays and its applications
  • Learn about SingularValueList and its implications in linear algebra
  • Study the concept of singular value decomposition and its uniqueness
  • Investigate how to handle small imaginary components in numerical solutions
USEFUL FOR

Mathematics students, data scientists, and researchers using Mathematica for solving linear equations and analyzing matrix properties.

kaizen.moto
Messages
94
Reaction score
0
Hi everyone, please help me to solve my difficulties with regard to simultaneous equations using Mathematica.

Thanks for any response.
 

Attachments

Physics news on Phys.org
It looks like your system of equations does not have a solution. You might try using CoefficientArrays to turn it into a matrix problem.

EDIT: Hmm, something seems strange. I turned this into a matrix problem by

{b, m} = CoefficientArrays[eqn, vars]

And it turns out that Det[m] gives a non-zero result, so there should be a solution. And, in fact, Inverse[m].b gives a good array of coefficients. However, SingularValueList[m] shows that there are a lot of degenerate singular values, so the singular value decomposition is not unique. I don't know if that means that maybe there is not a unique solution.

Are the small imaginary numbers correct, or can we Chop those off?
 
Last edited:
Thanks for reply..

Actually, I have chopped off the real values of U1, U2, V1 and V2, because they are too lenghty, and I could not fit in the attachement file. Perhaps, if I use the full expressions of U1, U2, V1 and V2, it would give me the good response. I don't know if I could send you the complete file.

Yes the imaginary parts are very small, they are correct. I think I just better keep them throughout.

By the way, I have checked from the manual and books, I really don't have idea how the CoefficientArrays and SingularValueList[m] works as Iam relatively new to Mathematica. For now, Iam trying to figure out what those terms mean and help me to solve my problems.

Thanks anyway.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K