ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି

ଗସ-ସିଡ଼ାଲ ପଦ୍ଧତି ହୋଇଛି ଏକ iterative technique ଏବଂ ଏହା ଅଜଣା x ଥିବା n ଗୋଟି linear equation ବିଶିଷ୍ଟ ଗୋଟିଏ square systemକୁ ସମାଧାନ କରିବାରେ ବ୍ୟବହାର କରାଯାଏ:

ବ୍ୟାଖ୍ୟା

    ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି .

iterationଦ୍ୱାରା ନିମ୍ନ ମତେ ଏହାର ସଂଜ୍ଞା ପ୍ରକରଣ କରାଯାଇପାରେ

ଏବଂ  ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି  is the kth approximation or iteration of ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି  is the next or k + 1 iteration of ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି , and the matrix A is decomposed into a lower triangular component ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି , and a strictly upper triangular component U: ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି .

ଆଲ୍‌ଗୋରିଦିମ୍

Inputs: A, A Output: ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି   Choose an initial guess ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି  to the solution repeat until convergence     for A from 1 until A do         ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି          for A from 1 until A do             if AA then                 ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି              end if         end (A-loop)         ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି      end (A-loop)     check if convergence is reached end (repeat) 

ଉଦାହରଣ

ମାଟ୍ରିକ୍ସ ସଂସ୍କରଣ ପାଇଁ ଗୋଟିଏ ଉଦାହରଣ

ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି  ଭାବେ ଗୋଟିଏ linear system ଦର୍ଶଯାଇଛି, ଯଥା:

    ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି  ଏବଂ ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି 

ଆମେ ନିମ୍ନୋକ୍ତ ସମୀକରଣ

କୁ ନିମ୍ନୋକ୍ତ ରୂପେ ବ୍ୟବହାର କରିବାକୁ ଚାହୁଁ

ଯେଉଁଠାରେ କି:

    ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି  ଏବଂ ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି 

ପାଇଥନ ୩ ଏବଂ NumPy ବ୍ୟବହାର କରାଯାଇଥିବା ଏକ ଉଦାହରଣ

The following numerical procedure simply iterates to produce the solution vector.

import numpy as np  ITERATION_LIMIT = 1000  # initialize the matrix A = np.array([[10., -1., 2., 0.],               [-1., 11., -1., 3.],               [2., -1., 10., -1.],               [0.0, 3., -1., 8.]]) # initialize the RHS vector b = np.array([6., 25., -11., 15.])  # prints the system print("System:") for i in range(A.shape[0]):     row = ["{}*x{}".format(A[i, j], j + 1) for j in range(A.shape[1])]     print(" + ".join(row), "=", b[i]) print()  x = np.zeros_like(b) for it_count in range(ITERATION_LIMIT):     print("Current solution:", x)     x_new = np.zeros_like(x)      for i in range(A.shape[0]):         s1 = np.dot(A[i, :i], x_new[:i])         s2 = np.dot(A[i, i + 1:], x[i + 1:])         x_new[i] = (b[i] - s1 - s2) / A[i, i]      if np.allclose(x, x_new, rtol=1e-8):         break      x = x_new  print("Solution:") print(x) error = np.dot(A, x) - b print("Error:") print(error) 

ଏହାର output ଆସିବ:

System: 10.0*x1 + -1.0*x2 + 2.0*x3 + 0.0*x4 = 6.0 -1.0*x1 + 11.0*x2 + -1.0*x3 + 3.0*x4 = 25.0 2.0*x1 + -1.0*x2 + 10.0*x3 + -1.0*x4 = -11.0 0.0*x1 + 3.0*x2 + -1.0*x3 + 8.0*x4 = 15.0  Current solution: [ 0.  0.  0.  0.] Current solution: [ 0.6         2.32727273 -0.98727273  0.87886364] Current solution: [ 1.03018182  2.03693802 -1.0144562   0.98434122] Current solution: [ 1.00658504  2.00355502 -1.00252738  0.99835095] Current solution: [ 1.00086098  2.00029825 -1.00030728  0.99984975] Current solution: [ 1.00009128  2.00002134 -1.00003115  0.9999881 ] Current solution: [ 1.00000836  2.00000117 -1.00000275  0.99999922] Current solution: [ 1.00000067  2.00000002 -1.00000021  0.99999996] Current solution: [ 1.00000004  1.99999999 -1.00000001  1.        ] Current solution: [ 1.  2. -1.  1.] Solution: [ 1.  2. -1.  1.] Error: [  2.06480930e-08  -1.25551054e-08   3.61417563e-11   0.00000000e+00] 

Program to solve arbitrary no. of equations using Matlab

The following code uses the formula

ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି 

function [x] = gauss_seidel(A, b, x0, iters)     n = length(A);     x = x0;     for k = 1:iters         for i = 1:n             x(i) = (1/A(i, i))*(b(i) - A(i, 1:n)*x + A(i, i)*x(i));         end     end end 

ଆହୁରି ଦେଖନ୍ତୁ

  • Jacobi method
  • Successive over-relaxation
  • Iterative method. Linear systems
  • Gaussian belief propagation
  • Matrix splitting
  • Richardson iteration

ଟୀକା

ଆଧାର

  • Gauss, Carl Friedrich (1903), Werke (in German), vol. 9, Göttingen: Köninglichen Gesellschaft der Wissenschaften{{citation}}: CS1 maint: unrecognized language (link).
  • Gauss, Carl Friedrich (1903), Werke (in German), vol. 9, Göttingen: Köninglichen Gesellschaft der Wissenschaften{{citation}}: CS1 maint: unrecognized language (link).
  • Gauss, Carl Friedrich (1903), Werke (in German), vol. 9, Göttingen: Köninglichen Gesellschaft der Wissenschaften{{citation}}: CS1 maint: unrecognized language (link)

ବାହାର ଲିଙ୍କ

Tags:

ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି ବ୍ୟାଖ୍ୟାଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି ଆଲ୍‌ଗୋରିଦିମ୍ଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି ଉଦାହରଣଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି ଆହୁରି ଦେଖନ୍ତୁଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି ଟୀକାଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି ଆଧାରଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି ବାହାର ଲିଙ୍କଗସ୍ - ସିଡ଼ାଲ୍ ପଦ୍ଧତି

🔥 Trending searches on Wiki ଓଡ଼ିଆ:

ଶାରଳା ପୁରସ୍କାରଏଣ୍ଡୋମେଟ୍ରିଓସିସରାୟଗଡ଼ା ଜିଲ୍ଲାସରସ୍ୱତୀ ସମ୍ମାନମେହମୁଦ ହୁସେନହେମୋଫିଲିଆଶ୍ୱେତସାରସାରଳା ମନ୍ଦିରଦେବସ୍ନାନ ପୂର୍ଣ୍ଣିମାଭୀମ ପୃଷ୍ଟିସୌଭାଗ୍ୟ କୁମାର ମିଶ୍ରକୋଣାର୍କମହିଳା ଯୌନାଙ୍ଗ ଛେଦନଲସିପୂରଣବାଚକ ସଂଖ୍ୟାସାଇକେଲସାଲଭାଡୋର ଡାଲିପୋଟଳ ରସାଟିଣ୨୦୧୨ଉଇକିଅଭିଧାନଆକବରବିସ୍ଥାପିତ କାନ୍ଧ ଗଣ୍ଠିଦ୍ୱିତୀୟ ଭାସ୍କରଓଡ଼ିଶା ପ୍ରିମିଅର ଲିଗବିଜୟ ଶଙ୍କର ଦାସମଙ୍ଗଳା ମନ୍ଦିରକାଳିନ୍ଦୀ ଚରଣ ପାଣିଗ୍ରାହୀମାଣବସା ଗୁରୁବାରବିଶ୍ୱତାପନଅକ୍ଷାଂଶଯଦୁମଣି ମହାପାତ୍ରବୁଧପ୍ରତୀକ୍ଷାନୀଳକଣ୍ଠ ଦାସଗୌତମ ବୁଦ୍ଧଆନନ୍ଦ ଶଙ୍କର ଦାସଭଗବତୀ ଚରଣ ପାଣିଗ୍ରାହୀ୧ମ ଓଡ଼ିଶା ବିଧାନ ସଭାଅଂଶୁଘାତ୧୮ ଅକ୍ଟୋବରକଳାପାହାଡ଼ସେଇ ଝିଅଟିଦାସିଆ ବାଉରୀଅଣସରବର୍ଷା ପ୍ରିୟଦର୍ଶିନୀ୨୧୧୯୮୪ଜୟୀ ରାଜଗୁରୁଜନ୍ମ ନିରୋଧଗୋପାଳ କୃଷ୍ଣ ରଥପ୍ରାଣବନ୍ଧୁ କରସୁଇଜରଲ୍ୟାଣ୍ଡ୧୯ ମାର୍ଚ୍ଚଯକୃତପାରାଦୀପ ବନ୍ଦରପଞ୍ଚୁ ପାଣ୍ଡବ (ଓଡ଼ିଆ କଥାଚିତ୍ର)ବିଜ୍ଞାନକୋରାପୁଟ (ବିଧାନ ସଭା ନିର୍ବାଚନ ମଣ୍ଡଳୀ)୦ (ସଂଖ୍ୟା)ମୁମ୍ବାଇକଳାହାଣ୍ଡି ଜିଲ୍ଲାଉତ୍କଳ ଦୀପିକାଅଷ୍ଟ୍ରିଆଆଖୁନଟବର ସାମନ୍ତରାୟନିର୍ମଳା (ଉପନ୍ୟାସ)ପିଙ୍କି ପ୍ରଧାନବ୍ୟଞ୍ଜନ ବର୍ଣ୍ଣପୂର୍ଣ୍ଣଚ୍ଛେଦଦୀନକୃଷ୍ଣ ଦାସଜୀବସାର ଗଆନନ୍ଦ ଭବନ ସଂଗ୍ରହାଳୟ ଓ ଅଧ୍ୟୟନ କେନ୍ଦ୍ର🡆 More