admission in india 2015

17
Admission in India 2015 By: admission.edhole.com

Upload: edholecom

Post on 01-Nov-2014

48 views

Category:

Education


7 download

DESCRIPTION

admissions in India 2015

TRANSCRIPT

Page 1: Admission in india 2015

Admission in India 2015

By:admission.edhole.com

Page 2: Admission in india 2015

2

Gauss-Siedel Method

admission.edhole.com

Page 3: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel MethodAn iterative method.

Basic Procedure:

-Algebraically solve each linear equation for xi

-Assume an initial guess solution array

-Solve for each xi and repeat

-Use absolute relative approximate error after each iteration to check if error is within a pre-specified tolerance.

admission.edhole.com

Page 4: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel MethodWhy?

The Gauss-Seidel Method allows the user to control round-off error.

Elimination methods such as Gaussian Elimination and LU Decomposition are prone to prone to round-off error.

Also: If the physics of the problem are understood, a close initial guess can be made, decreasing the number of iterations needed.

admission.edhole.com

Page 5: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel MethodAlgorithm

A set of n equations and n unknowns:

11313212111 ... bxaxaxaxa nn

2323222121 ... bxaxaxaxa n2n

nnnnnnn bxaxaxaxa ...332211

. . . . . .

If: the diagonal elements are non-zero

Rewrite each equation solving for the corresponding unknown

ex:

First equation, solve for x1

Second equation, solve for x2

admission.edhole.com

Page 6: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel MethodAlgorithm

Rewriting each equation

11

131321211 a

xaxaxacx nn

nn

nnnnnnn

nn

nnnnnnnnnn

nn

a

xaxaxacx

a

xaxaxaxacx

a

xaxaxacx

11,2211

1,1

,122,122,111,111

22

232312122

From Equation 1

From equation 2

From equation n-1

From equation n

admission.edhole.com

Page 7: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel MethodAlgorithm

General Form of each equation

11

11

11

1 a

xac

x

n

jj

jj

22

21

22

2 a

xac

x

j

n

jj

j

1,1

11

,11

1

nn

n

njj

jjnn

n a

xac

x

nn

n

njj

jnjn

n a

xac

x

1

admission.edhole.com

Page 8: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel MethodAlgorithm

General Form for any row ‘i’

.,,2,1,1

nia

xac

xii

n

ijj

jiji

i

How or where can this equation be used?

admission.edhole.com

Page 9: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel MethodSolve for the unknowns

Assume an initial guess for [X]

n

-n

2

x

x

x

x

1

1

Use rewritten equations to solve for each value of xi.

Important: Remember to use the most recent value of xi. Which means to apply values calculated to the calculations remaining in the current iteration.

admission.edhole.com

Page 10: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel MethodCalculate the Absolute Relative Approximate Error

100x

xxnewi

oldi

newi

ia

So when has the answer been found?

The iterations are stopped when the absolute relative approximate error is less than a prespecified tolerance for all unknowns.

admission.edhole.com

Page 11: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel Method: Example 2

Given the system of equations1 5x -3x 12x 321

28 3x 5x x 321 76 13x 7x 3x 321

1

0

1

3

2

1

x

x

x

With an initial guess of

The coefficient matrix is:

1373

351

5312

A

Will the solution converge using the Gauss-Siedel method?

admission.edhole.com

Page 12: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel Method: Example 2

1373

351

5312

A

Checking if the coefficient matrix is diagonally dominant

43155 232122 aaa

10731313 323133 aaa

8531212 131211 aaa

The inequalities are all true and at least one row is strictly greater than:

Therefore: The solution should converge using the Gauss-Siedel Method

admission.edhole.com

Page 13: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel Method: Example 2

76

28

1

1373

351

5312

3

2

1

a

a

a

Rewriting each equation

12

531 321

xxx

5

328 312

xxx

13

7376 213

xxx

With an initial guess of

1

0

1

3

2

1

x

x

x

50000.0

12

150311

x

9000.4

5

135.0282

x

0923.3

13

9000.4750000.03763

x

admission.edhole.com

Page 14: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel Method: Example 2

The absolute relative approximate error

%662.6710050000.0

0000.150000.01a

%00.1001009000.4

09000.42a

%662.671000923.3

0000.10923.33a

The maximum absolute relative error after the first iteration is 100%

admission.edhole.com

Page 15: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel Method: Example 2

8118.3

7153.3

14679.0

3

2

1

x

x

x

After Iteration #1

14679.0

12

0923.359000.4311

x

7153.3

5

0923.3314679.0282

x

8118.3

13

900.4714679.03763

x

Substituting the x values into the equations After Iteration #2

0923.3

9000.4

5000.0

3

2

1

x

x

x

admission.edhole.com

Page 16: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel Method: Example 2

Iteration #2 absolute relative approximate error

%62.24010014679.0

50000.014679.01

a

%887.311007153.3

9000.47153.32

a

%876.181008118.3

0923.38118.33

a

The maximum absolute relative error after the first iteration is 240.62%

This is much larger than the maximum absolute relative error obtained in iteration #1. Is this a problem?admission.edhole.c

om

Page 17: Admission in india 2015

http://numericalmethods.eng.usf.edu

Gauss-Seidel Method: Example 2

Repeating more iterations, the following values are obtained

1a2a

3aIteration a1 a2 a3

123456

0.500000.146790.742750.946750.991770.99919

67.662240.6280.23

21.5474.5394

0.74260

4.9003.71533.16443.02813.00343.0001

100.0031.88717.4094.5012

0.822400.11000

3.09233.81183.97083.99714.00014.0001

67.66218.8764.0042

0.657980.074990.00000

4

3

1

3

2

1

x

x

x

0001.4

0001.3

99919.0

3

2

1

x

x

xThe solution obtained

is close to the exact solution ofadmission.edhole.c

om