SHARE
TWEET

Untitled

a guest Nov 13th, 2016 481 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function returnValue=main
  2. % Setze zunaechst die Konstanten:
  3. n = 9;
  4. max_fehler = zeros(1, 11);
  5. condition = zeros(1, 11);
  6.  
  7. for n = n:20
  8.     H = hilb(n);
  9.     b = zeros(1, n);
  10.     for i = 1:length(H(1:n))
  11.         b(i) = sum(H(i:n));
  12.     end
  13.    
  14.     % Einfluss auf diese Methode nicht gegeben ?
  15.     x = H\b';
  16.  
  17.    m_diff = 0;
  18.    for i = 1:length(x)
  19.        if m_diff < abs(x(i)) -1
  20.            m_diff = abs(x(i)) -1;
  21.        end
  22.    end
  23.    
  24.    max_fehler(n) = m_diff;
  25.    condition(n) = log(cond(H));
  26. end
  27. %max_fehler = max_fehler(10:length(max_fehler));
  28. %condition = condition(10:length(condition));
  29. plot(max_fehler, condition)
  30. plot(condition, max_fehler)
  31. end
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top