Advertisement
Skylighty

Untitled

Jan 18th, 2019
496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.98 KB | None | 0 0
  1. %FUNKCJA PIERWSZA
  2. clear, clc
  3. r1 = 0.2;
  4. r2 = 0.9;
  5. r3 = 1.1;
  6. r4 = 1.5;
  7. x1 = 0.23;
  8. r = r2;
  9. suma = 0;
  10. for x=2:1:500
  11.    if x1(x-1)<=0.5
  12.       x1 = [x1 r*x1(x-1)];
  13.       suma = suma + log(abs(r));
  14.    else
  15.       x1 = [x1 -r*x1(x-1)+r];
  16.       suma = suma + log(abs(r));
  17.  end
  18. end
  19. N = 500;
  20. lambda = 1/N*suma %"-" - NIE CHAOS, "+" - CHAOS, im wieksa lambda tym WIEKSZY CHAOS!Q!N!@#!!!
  21. x=x1;
  22. plot (x1);
  23.  
  24.  
  25.  
  26. %FUNKCJA DRUGA
  27. clear, clc
  28. r1 = 1.5;
  29. r2 = 3.4;
  30. r3 = 3.5;
  31. r4 = 3.6;
  32. x1 = 0.501;
  33. r = r4;
  34. suma = 0;
  35. for x=2:1:500
  36.    x1 = [x1 r*(x1(x-1))*(1-x1(x-1))];
  37.    suma = suma + log(abs(r-2*r*x1(x-1)));
  38. end
  39. N = 500;
  40. lambda = 1/N*suma %"-" - NIE CHAOS, "+" - CHAOS, im wieksa lambda tym WIEKSZY CHAOS!Q!N!@#!!!
  41. x=x1;
  42. plot (x1);
  43.  
  44.  
  45.  
  46. %FUNKCJA HENNONA
  47. clear, clc
  48. x = 0.5; %od 0 do 1
  49. y = 0.5 %od 0 do 1
  50. a = 0.85; %od -1 do 1
  51. b = -0.56; %od -1 do 1
  52. for i=2:1:500
  53.     y = [y b*x(i-1)];
  54.     x = [x 1-a*(x(i-1))^2+y(i-1)];
  55. end
  56. N = 500;
  57. plot (y,x);
  58.  
  59.  
  60. FUNKCJA HENNONA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement