Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. x = Array[0 &, {10000}];
  2. y = Array[0 &, {10000}];
  3. [Sigma] = Array[0 &, {10000}];
  4. S = 0
  5. x[[1]] = 0.1;
  6. y[[1]] = x[[1]];
  7. [Alpha] = 0.4*Pi;
  8. Do[x[[i + 1]] = x[[i]]*Cos[[Alpha]] - Sin[[Alpha]]*(y[[i]] - x[[i]]^2);
  9. y[[i + 1]] =
  10. x[[i]]*Sin[[Alpha]] + Cos[[Alpha]]*(y[[i]] - x[[i]]^2);[Sigma][[i]] =
  11. ArcCos[y[[i + 1]]/(Sqrt[x[[i + 1]]^2 + y[[i + 1]]^2])] -
  12. ArcCos[y[[i]]/(Sqrt[x[[i]]^2 + y[[i]]^2])], {i, 9999}]
  13. ListPlot[Table[{x[[i]], y[[i]]}, {i, 1, 10000}]]
  14. ListPlot[Table[[Sigma][[i]], {i, 1, 9999}]]
  15. Do[S = (S + [Sigma][[i]])/10^4, {i, 9999}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement