Search for mechanical design articles

Sunday, February 20, 2011

Solving System of Equations using Gauss Elimination Method (Part 4)

After you download an excel program Gauss Elimination Method from our web site and open it, you'll find the following screen.


You have to click "Options..." and "Enable this content" to enable the VBA otherwise the VBA code will be blocked and can't run the program.

The program will show a form asking for your agreement confirmation.


After you've agreed, you'll find the main screen, then click Start.


You'll find the menu whether you need to review or recalculate the previous equations or you want to add new equations. Let's try review the earlier equations by clicking at "Existing equations" button.


The program will move to another screen where you can change values in matrix [A] or vector {B} and recalculation to solve the equations with the same number of equations. For this example, the dimension of matrix [A] is 3x3. So if you want to solve another set of linear equations with 3 unknowns then you can modify this existing table or you can either create new table which we will explain later.


In this screen, you will be able to change values only in matrix [A] and vector {B}. Other cells are locked. The program will show the values of solution vector {X} as soon as the calculation is complete.

Now, let's test the case of "division by zero" that we explained in [Solving System of Equations using Gauss Elimination Method (Part 3)] by swapping equation (1) and (3) as follows then click "Solve" button. The screen will show the same result in solution vector {X}.


Let's try to change equations and click "Solve". If there's nothing wrong with equations, you'll find solutions.


In case something wrong with equations, the program will shows the error message. The following equations have no solution and program terminated automatically.


Let's see how to setup the program to solve more equations such as 10 unknowns in the next post.
Sponsored links

0 comments:

Mechanical Design Handbook Mechanical-Design-Handbook.blogspot.com
Online reference for mechanical design engineers. Besides the general topics related to mechanical component design, we provide the techniques with calculation sheets made with Microsoft Excel VBA. With help of Microsoft Excel VBA, we can reduce the repetitive calculation processes. We also show you simple techniques to use Microsoft Excel VBA and Solid Edge 3D CAD software to do motion simulation without using simulation module of Solid Edge. The graphing technique to make motion simulation can be found as well. The Mechanical Engineering computation using Microsoft Excel VBA can help reduce repetitive task as well as dynamic simulation using Unigraphics (UG) motion in mechanical engineering design.


Free Download Excel Files excel.best-buy-electronics-stores.com
Mechanical Design Handbook provides some excel files as examples from the articles for free. The users just simply register and download them from the link. You need to have a valid email address for registration. Please note that once you've downloaded the zipped file, you must enter password to extract it. Password is shown below the download link. Join us now!

Why don't you join us?

iOS Application

Popular Posts