Calculation of simultaneous equations

Click For Summary

Discussion Overview

The discussion revolves around the calculation of simultaneous equations using computers, exploring various methods and techniques applicable to both linear and non-linear systems. Participants share insights on specific algorithms, coding implementations, and the challenges associated with different approaches.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants mention that simultaneous equations can be solved using various methods, including numerical approaches and analytical methods like Cramer's rule.
  • One participant emphasizes the importance of understanding the type of simultaneous equations being addressed, particularly distinguishing between linear and non-linear systems.
  • Another participant notes that massive parallel processor supercomputers are often used for simultaneous processing, highlighting the complexity of encoding the solutions correctly.
  • Gaussian elimination is suggested as an intuitive technique for solving linear equations, although it may not be the fastest method for larger systems.
  • Some participants discuss the availability of efficient sparse solvers and iterative methods that can improve performance and reduce storage requirements for larger problems.
  • Concerns are raised about the limitations of Cramer's rule, with one participant describing it as "bad news" and noting that many non-linear systems are often solved by repeatedly linearizing them.
  • A participant expresses a desire to implement the vortex panel method in Java and seeks guidance on encoding elementary row operations for Gaussian elimination.
  • Suggestions are made regarding systematic approaches to Gaussian elimination and considerations for LU decomposition and pivoting to address round-off errors.

Areas of Agreement / Disagreement

Participants generally agree that there are multiple methods for solving simultaneous equations, but there is no consensus on the best approach, especially regarding non-linear systems. The discussion includes differing opinions on the efficacy of specific methods like Cramer's rule and Gaussian elimination.

Contextual Notes

Participants express uncertainty about the best methods for non-linear equations, noting the lack of standard procedures compared to linear systems. The discussion also highlights the complexity involved in encoding algorithms for matrix operations.

Who May Find This Useful

This discussion may be useful for individuals interested in numerical methods, computer programming for mathematical applications, and those looking to implement algorithms for solving simultaneous equations.

sid_galt
Messages
503
Reaction score
1
How are simultaneous equations calculated using a computer?
 
Physics news on Phys.org
By a solver of some type.
Be a bit more specific, please.
 
There are lots of different methods. For example, numerically. Here is an analytical method I wrote using Cramer's rule to invert the matrix. Delphi source code included.
http://www.geocities.com/peterbone3/LinearEquations.zip
I assume you're familiar with the matrix representation of a set of linear equations.

Peter Bone
 
I wouldn't disagree with there being a lot of methods, peterbone; we agree on that.
I was sort of thinking what kinds of simultaneous equations OP had in mind, in particular if I needed to go into the whole mucky business of solvers involving non-linear loop structures and so on..


At the end, of course, since we really only can solve systems of linear equations, one ought perhaps to focus on solutions techniques for linear systems, as you did.
 
Last edited:
Massive parallel processor supercomputers are typically used to effect simultaneous processing.
Of course, the hard part is encoding correctly.
 
sid_galt said:
How are simultaneous equations calculated using a computer?
As long as the equations are linear, you can solve them by using Gaussian elimination on the augmented matrix. It's not the fastest way to do it, especially for larger systems of equations, but it's the most intuitive technique, IMO, and pretty simple to code up. Are you looking to write something for yourself to help you learn more about linear algebra?

Or, as was stated earlier, if your systems of equations contain non-linear terms, things get a lot more complicated...
 
There are pretty efficient sparse solvers available in many codes (and the implementations aren't that many lines of code actually), when it gets bigger in many problems iterative solvers can produce a nice performance increase (and lessen e.g. storage requirements) ... lots of stuff available about this topic.
 
At the end, of course, since we really only can solve systems of linear equations

What do you mean by that?
 
peterbone said:
There are lots of different methods. For example, numerically. Here is an analytical method I wrote using Cramer's rule to invert the matrix.
I hope you know the evils of cramer's rule. It is bad news.
 
  • #10
Hurkyl said:
What do you mean by that?


Probably that most nonlinear systems are "solved" by linearizing over and over and solving the linear systems.
 
  • #12
Hurkyl said:
What do you mean by that?
As LeBrad mentioned, there aren't any standard, foolproof solution procedure for non-linear equations in general in the way there are for linear systems.

I'm not saying that various types of iteration processes are "wrong".
Most definitely, they are not.
 
  • #13
Thank you for all the replies.

Actually I am looking forward to implementing the vortex panel method in Java. Thing is, methods like Gaussian elimination are fine, only I am finding it difficult how to encode the appropriate elementary row operations to convert the matrix to a triangular one.
 
  • #14
sid_galt said:
Thank you for all the replies.

Actually I am looking forward to implementing the vortex panel method in Java. Thing is, methods like Gaussian elimination are fine, only I am finding it difficult how to encode the appropriate elementary row operations to convert the matrix to a triangular one.
You just need to think of about Gaussian elimination in a systematic way. That is for an arbitrary matrix at an arbitrary stage in reduction what should be done next. A few whiles and fors and it is done. Other things to think about are if you need to solve multiple systems having the same matrix you might consider using a LU decomposition. To help with round off you might consider full or partial pivoting, or conbining iterative and direct methods.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
5K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 35 ·
2
Replies
35
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K