Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Monitor[Epot1 =
  2. Table[NIntegrate[
  3. fun1[[i]][x]^2 Vdc[x, distTab[[i]]], {x, -20, 20}], {i, 1,
  4. Length[fun1]}], i];
  5. Monitor[Epot2 =
  6. Table[NIntegrate[
  7. fun2[[i]][x]^2 Vdc[x, distTab[[i]]], {x, -20, 20}], {i, 1,
  8. Length[fun1]}], i];
  9. Show[{ListPlot[{distTab, Epot1}\[Transpose], PlotStyle -> Blue],
  10. ListPlot[{distTab, Epot2}\[Transpose], PlotStyle -> Red]},
  11. PlotRange -> All]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement