What is exactly pivoting ( in Gaussian elimination)?

Click For Summary
SUMMARY

The discussion centers on the concept of "pivoting" in Gaussian elimination, which involves manipulating a matrix to solve linear equations. Pivoting refers to selecting a specific entry in a matrix row, transforming it into 1, and then zeroing out entries below it in the same column. Participants express a need for programming tools that can automate Gaussian elimination processes, particularly for equations formatted with constants on one side. The conversation highlights the importance of understanding numerical methods and the limitations of existing code solutions for Gaussian elimination.

PREREQUISITES
  • Understanding of Gaussian elimination
  • Familiarity with matrix operations
  • Knowledge of numerical methods for solving linear equations
  • Basic programming skills in a relevant language (e.g., Python, MATLAB)
NEXT STEPS
  • Research "Gaussian elimination algorithms" for efficient implementations
  • Explore "matrix manipulation libraries" in programming languages like Python (e.g., NumPy)
  • Learn about "numerical stability" in linear algebra
  • Investigate "graphical user interfaces for equation solvers" to enhance usability
USEFUL FOR

Students, educators, and software developers interested in implementing Gaussian elimination for solving systems of linear equations, as well as those looking to enhance their understanding of numerical methods.

XodoX
Messages
195
Reaction score
0
In terms of programming. Like, let's say you have F1+F2+F3+15=0 and you move the 15 to the other side, just as you're supposed to, which would be F1+F2+F3= -15. Is that what they mean by pivoting? The code moves the 15?

thanks
 
Physics news on Phys.org
No. The "pivot" is a single entry in a row of a matrix. "Pivoting" refers to a process involving several steps. The row is divided by the value of the pivot to turn the pivot into 1. Then all the entries in the column of the pivot and directly below it are turned into zeroes by subtracting some multiple of the pivot's row from them.

If you're planning to write a serious program to solve linear equations, you should consult a text on numerical methods. The better numerical algorithms do not simply march down the main diagonal using each entry as a pivot.
 
Stephen Tashi said:
No. The "pivot" is a single entry in a row of a matrix. "Pivoting" refers to a process involving several steps. The row is divided by the value of the pivot to turn the pivot into 1. Then all the entries in the column of the pivot and directly below it are turned into zeroes by subtracting some multiple of the pivot's row from them.

If you're planning to write a serious program to solve linear equations, you should consult a text on numerical methods. The better numerical algorithms do not simply march down the main diagonal using each entry as a pivot.
Thanks. How would I call it then - to get each equation into the right format? I don't know how to program this, but I need it for reference for Gaussian elimination systems. It owuld be a nice tool to have. But usually they don't format the equations - at least the ones I could find online.
 
How would I call it then - to get each equation into the right format?

What do you mean by "it"? Do you mean the example, you gave? What you did (as best I can determine) is not a process that has a distinctive name. You transformed the equation into one that has no constant on the left hand side.


I need it for reference for Gaussian elimination systems.

I can't tell whether you are merely interested in terminology for something or whether you want to know how to write a computer program to do Gaussian elimination.
 
Stephen Tashi said:
What do you mean by "it"? Do you mean the example, you gave? What you did (as best I can determine) is not a process that has a distinctive name. You transformed the equation into one that has no constant on the left hand side.




I can't tell whether you are merely interested in terminology for something or whether you want to know how to write a computer program to do Gaussian elimination.

I'd like to have a program for my Gaussian elimination equations, but the codes I found won't do F1+F2+F3+10=0 since the 10, in this case, has to be moved over to the right. I was wondering if someone knew where to get a code like this. I want to try it out.
 
You shouldn't make up terminology like "Gaussian elimination systems" and "Gaussian elimination equations" without explaining what you mean.

I think what you're trying to say is that you would like a computer program that will solve a systems of equations by using Gaussian elimination. That still leaves questions unanswered.

You say you want "a code". Does this mean source code? If so, what computer language would you want this code to be in? Or do you want a program with a graphical interface where you can enter the equations and see the Gaussian elimination done step by step? Are you mainly interested in solving the equations or mainly interested in Gaussian elimination? (As I mentioned before, Gaussian elimination is usually not the best way to solve systems of equations. )
 

Similar threads

Replies
17
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K