Guest User

Untitled

a guest
Jan 17th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. Manipulate[
  2. Grid[{{
  3. Show[
  4. Graphics[{
  5. Text[Style["+", Large], {25, d/2}],
  6. Text[Style["-", Large], {25, -d/2}],
  7. Arrow[{{-2, 0}, {0, 0}}],
  8. Line[{{0, d/2}, {22, d /2}}],
  9. Line[{{0, -d /2}, {22, -d /2}}]
  10. }],
  11. d1 = d;
  12. ParametricPlot[{v*t*Cos[a],
  13. Piecewise[{
  14. {0, t < 0},
  15. {If[
  16. c == "-", (v*t*Sin[a]) + U q/(2 d m) (t)^2, (v*t*Sin[a]) -
  17. U q/(2 d m)*(t )^2], t > 0}}]}, {t,
  18. 0, (v^2*Sin[2*a]/ (U q/(d m )))},
  19. PlotStyle -> {Red, Dashing[Small]}
  20. ],
  21. Axes -> {True, True},
  22. AxesOrigin -> {0, 0},
  23. PlotRange -> {{-25, 25}, {-d/2, d/2}},
  24. AspectRatio -> 0.5,
  25. ImageSize -> 1.3 {400, 200}]},
  26. {Text@Grid[{
  27. {"Jačina el. polja " , "=", NumberForm[N[ U / d], {4, 2}] ,
  28. "V/m" },
  29. {"Domet " , "=",
  30. NumberForm[N[ v^2*Sin[2*a]/ (U q/(d m ))], {4, 2}], "m"}},
  31. Alignment -> Right]
  32. }}],
  33. {{d, 2, "Širina kondenzatora (m)"}, 1, 5, Appearance -> {"Labeled"}},
  34. {{U, 50, "Napon na kondenzatoru (V)"}, 10, 100,
  35. Appearance -> "Labeled"},
  36. {{v, 5, "Početna brzina čestice (m/s)"}, 1, 10,
  37. Appearance -> "Labeled"},
  38. {{m, .5, "Masa čestice (kg)"}, .1, 1, Appearance -> "Labeled"},
  39. {{q, 5, "Naelektrisanje čestice (C)"}, 1, 10,
  40. Appearance -> "Labeled"},
  41. {{a, Pi/3, "Upadni ugao"}, 0, 6.28, Appearance -> "Labeled"},
  42. {{c, "+", "Znak naelektrisanja"}, {"+", "-"}}, ControlPlacement -> Top
  43. ]
Add Comment
Please, Sign In to add comment