Advertisement
_VAGNER

Untitled

Jan 31st, 2019
20,715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. Manipulate[
  2. C1[Q0_, q0_, w_] := -((-4*I*Pi*q0 - I*w*Q0 - Sqrt[-1 +
  3. 16*Pi^2]*w*Q0)/(2*Sqrt[-1 + 16*Pi^2]*w));
  4. C2[Q0_, q0_, w_] := -((4*I*Pi*q0 + I*w*Q0 - Sqrt[-1 +
  5. 16*Pi^2]*w*Q0)/(2*Sqrt[-1 + 16*Pi^2]*w));
  6. Func[t_, Q0_, q0_, w_] := C1[Q0, q0, w]/E^((I*t*((-I)*w + Sqrt[-1 +
  7. 16*Pi^2]*w))/(4*Pi))
  8. + E^((I*t*(I*w + Sqrt[-1 + 16*Pi^2]*w))/(4*Pi))*C2[Q0, q0, w];
  9. Plot[{Func[t, Q0, q0, w1], Func[t, Q0, q0, w2]}, {t, 0, tmax},
  10. PlotRange -> All, AxesLabel -> {t, Q},
  11. PlotLegends -> {"Volume increases", "Volume decreases"}],
  12. {{tmax, 5, "plot time (!(*SubscriptBox[(t), (max)]))"}, 0,
  13. 20, Appearance -> "Labeled"},
  14. {{Q0, 10, "initial condition (!(*SubscriptBox[(Q),
  15. (0)]))"}, 0, 100, Appearance -> "Labeled"},
  16. {{q0, 0, "initial change rate(!(*SubscriptBox[(q),
  17. (0)]))"}, -10, 10, Appearance -> "Labeled"},
  18. {{w1, 3.1415, "positive volume variation (!(*SubscriptBox[(
  19. [Omega]), (1)]))"}, 0, 6.2831, Appearance -> "Labeled"},
  20. {{w2, -1.5708, "negative volume variation (!(*SubscriptBox[(
  21. [Omega]), (2)]))"}, -3.1415, 0, Appearance -> "Labeled"},
  22. TrackedSymbols -> {tmax, Q0, q0, w1, w2}
  23. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement