SHARE
TWEET

Punto4

cardel Jul 29th, 2018 (edited) 120 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. A = [10 -2;-3 12];
  2. b = [8 9]';
  3. lambda = 1.2;
  4. [x, ea, iter] = GaussSeidelR(A,b,lambda,0.0001,50)
  5.  
  6.  iter  =
  7.  
  8.    11.
  9.  
  10.  ea  =
  11.  
  12.    0.0000139
  13.    0.0000117
  14.  
  15.  x  =
  16.  
  17.    1.
  18.    1.
  19.  
  20. A = [0.8 -0.4 0; -0.4 0.8 -0.4; 0 -0.4 0.8];
  21. b = [41 25 105]';
  22. lambda = 1.2;
  23. [x, ea, iter] = GaussSeidelR(A,b,lambda,0.0001,50)
  24.  
  25.  iter  =
  26.  
  27.    11.
  28.  
  29.  ea  =
  30.  
  31.    0.0000169
  32.    0.0000091
  33.    0.0000098
  34.  
  35.  x  =
  36.  
  37.    173.74998
  38.    244.99998
  39.    253.74999
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top