Guest User

Untitled

a guest
Jan 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. [Lambda][n_] := ((n [Pi])/L)^2
  2.  
  3. [ScriptCapitalX][
  4. x_] := [ScriptCapitalC][1] Cos[Sqrt[[Lambda][n]] x]
  5.  
  6. [ScriptCapitalT][t_] := 50 E^(-[Lambda] t)
  7.  
  8. [ScriptCapitalU][x_,
  9. t_, [ScriptCapitalN]_] := [ScriptCapitalX][x] [ScriptCapitalT][t]
  10.  
  11. Plot[Evaluate@
  12. ReplaceAll[
  13. Table[[ScriptCapitalX][x] [ScriptCapitalT][t], {n, 1, 3}, {L, 1,
  14. 1}], {[ScriptCapitalC][1] -> 1, [Lambda] -> 1, t -> 0}], {x, 0,
  15. 1}, PlotLegends -> "Expressions", AxesLabel -> {"x", "t"},
  16. PlotLabel -> "2D Plot Behaviour for [ScriptCapitalU](x,t)"]
  17.  
  18. Plot3D[ReplaceAll[
  19. Table[[ScriptCapitalU][x, t, [ScriptCapitalN]], {n, 1, 3}, {L, 1,
  20. 1}], {[ScriptCapitalC][1] -> 1, [Lambda] -> 1}], {t, 0, 1}, {x,
  21. 0, 1}, AxesLabel -> Automatic,
  22. PlotLabel -> "3D Plot Behaviour for [ScriptCapitalU](x,t)"]
Add Comment
Please, Sign In to add comment