SHARE
TWEET

Perihelion Shift of Mercury

Yukterez Mar 1st, 2019 (edited) 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (* |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| *)
  2. (* ||||||||| Mathematica Syntax || yukterez.net || Perihelion Shift of Mercury |||||||||| *)
  3. (* |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| *)
  4.  
  5. ClearAll["Global`*"]; ClearAll["Local`*"];
  6. Needs["DifferentialEquations`NDSolveProblems`"];
  7. Needs["DifferentialEquations`NDSolveUtilities`"];
  8.  
  9. Amp = 1; kg = 1; m = 1; sek = 1; km = 1000 m; (* SI Einheiten *)
  10.  
  11. mt1 = {"StiffnessSwitching", Method-> {"ExplicitRungeKutta", Automatic}};
  12. mt2 = {"ImplicitRungeKutta", "DifferenceOrder"-> 20};
  13. mt3 = {"EquationSimplification"-> "Residual"};
  14. mt0 = Automatic;
  15. mta = mt2;
  16. wp  = MachinePrecision;
  17.  
  18. (* Zeitrahmen *)
  19.  
  20. T1   = (1697-2019) yr;
  21. T2   = (1848-2019) yr;
  22. T0   = Min[T1, T2]-50 yr;
  23.  
  24. (* Konstanten *)
  25.  
  26. G   = 667384/10^16 m^3/kg/sek^2;
  27. ε0  = 8854187817*^-21 Amp^2 sek^4/kg/m^3;
  28. c   = 299792458 m/sek;
  29. Au  = 149597870700 m;
  30. dy  = 24*3600 sek;
  31. yr  = 36525*dy/100;
  32.                                                (* Ephemeriden vom 19.02.2019, 0:00:00 TDB *)
  33. (* Sonne *)
  34.  
  35. m1  = +1.988435*^30 kg;
  36. q1  = +77 Amp sek;
  37.  
  38. x1x = -1.147196570503204*^-03 Au;
  39. y1y = +7.515074431920434*^-03 Au;
  40. z1z = -4.730273651193038*^-05 Au;
  41.  
  42. v1x = -8.107931162902937*^-06 Au/dy;
  43. v1y = +1.520849732928662*^-06 Au/dy;
  44. v1z = +2.095554598567427*^-07 Au/dy;
  45.  
  46. (* Merkur *)
  47.  
  48. m2  = +3.30104*^23 kg;
  49. q2  = +0 Amp sek;
  50.  
  51. x2x = +2.493682187528474*^-01 Au;
  52. y2y = +2.060848667278006*^-01 Au;
  53. z2z = -6.803162776737710*^-03 Au;
  54.  
  55. v2x = -2.301828852252654*^-02 Au/dy;
  56. v2y = +2.326003199133993*^-02 Au/dy;
  57. v2z = +4.011640539083395*^-03 Au/dy;
  58.  
  59. (* Venus *)
  60.  
  61. m3  = +4.86732*^24 kg;
  62. q3  = +0 Amp sek;
  63.  
  64. x3x = -5.604572600267276*^-01 Au;
  65. y3y = -4.500554270408416*^-01 Au;
  66. z3z = +2.595073246894732*^-02 Au;
  67.  
  68. v3x = +1.265689462094818*^-02 Au/dy;
  69. v3y = -1.574829638876520*^-02 Au/dy;
  70. v3z = -9.467652690844731*^-04 Au/dy;
  71.  
  72. (* Erde + Mond *)
  73.  
  74. m4  = +5.9721986*^24 kg+7.3459*^22 kg;
  75. q4  = +0 Amp sek;
  76.  
  77. x4x = -8.552072163834489*^-01 Au;
  78. y4y = +5.049715021822364*^-01 Au;
  79. z4z = -6.849877545851131*^-05 Au;
  80.  
  81. v4x = -8.942912568116291*^-03 Au/dy;
  82. v4y = -1.492365678503182*^-02 Au/dy;
  83. v4z = +2.741178622694643*^-07 Au/dy;
  84.  
  85. (* Mars *)
  86.  
  87. m5  = +6.41693*^23 kg;
  88. q5  = +0 Amp sek;
  89.  
  90. x5x = +5.580724605736193*^-01 Au;
  91. y5y = +1.416261572201534*^+00 Au;
  92. z5z = +1.574925082740965*^-02 Au;
  93.  
  94. v5x = -1.248544019487808*^-02 Au/dy;
  95. v5y = +6.355083417008326*^-03 Au/dy;
  96. v5z = +4.394992947386628*^-04 Au/dy;
  97.  
  98. (* Jupiter *)
  99.  
  100. m6  = +1.89813*^27 kg;
  101. q6  = +0 Amp sek;
  102.  
  103. x6x = -1.795821860926694*^+00 Au;
  104. y6y = -5.016469167174772*^+00 Au;
  105. z6z = +6.097587180308248*^-02 Au;
  106.  
  107. v6x = +7.014525824256318*^-03 Au/dy;
  108. v6y = -2.183010990796764*^-03 Au/dy;
  109. v6z = -1.478090774743338*^-04 Au/dy;
  110.  
  111. (* Saturn *)
  112.  
  113. m7  = +5.68319*^26 kg;
  114. q7  = +0 Amp sek;
  115.  
  116. x7x = +2.211165351380597*^+00 Au;
  117. y7y = -9.803846216723874*^+00 Au;
  118. z7z = +8.244475037063657*^-02 Au;
  119.  
  120. v7x = +5.133965065556525*^-03 Au/dy;
  121. v7y = +1.210333590471664*^-03 Au/dy;
  122. v7z = -2.255855621236429*^-04 Au/dy;
  123.  
  124. (* Uranus *)
  125.  
  126. m8  = +8.68103*^25 kg;
  127. q8  = +0 Amp sek;
  128.  
  129. x8x = +1.691367572961052*^+01 Au;
  130. y8y = +1.040615964042521*^+01 Au;
  131. z8z = -1.804702052122950*^-01 Au;
  132.  
  133. v8x = -2.089933372733080*^-03 Au/dy;
  134. v8y = +3.166549064213605*^-03 Au/dy;
  135. v8z = +3.884093561739733*^-05 Au/dy;
  136.  
  137. (* Neptun *)
  138.  
  139. m9  = +1.02413*^26 kg;
  140. q9  = +0 Amp sek;
  141.  
  142. x9x = +2.901867480863295*^+01 Au;
  143. y9y = -7.331260396521146*^+00 Au;
  144. z9z = -5.177914737734761*^-01 Au;
  145.  
  146. v9x = +7.476131405747911*^-04 Au/dy;
  147. v9y = +3.062101642790218*^-03 Au/dy;
  148. v9z = -8.000840096853115*^-05 Au/dy;
  149.  
  150. (* Pluto + Charon *)
  151.  
  152. m0  = +1.303*^22 kg+1.586*^21 kg;
  153. q0  = +0 Amp sek;
  154.  
  155. x0x = +1.202894612500549*^+01 Au;
  156. y0y = -3.151878221568063*^+01 Au;
  157. z0z = -1.067812248721266*^-01 Au;
  158.  
  159. v0x = +3.004427922255182*^-03 Au/dy;
  160. v0y = +4.501898344345873*^-04 Au/dy;
  161. v0z = -9.299030165680609*^-04 Au/dy;
  162.  
  163. (* Differentialgleichung *)
  164.  
  165. nds=NDSolve[{
  166.  
  167. x1'[t] == vx1[t], y1'[t] == vy1[t], z1'[t] == vz1[t],
  168. x2'[t] == vx2[t], y2'[t] == vy2[t], z2'[t] == vz2[t],
  169. x3'[t] == vx3[t], y3'[t] == vy3[t], z3'[t] == vz3[t],
  170. x4'[t] == vx4[t], y4'[t] == vy4[t], z4'[t] == vz4[t],
  171. x5'[t] == vx5[t], y5'[t] == vy5[t], z5'[t] == vz5[t],
  172. x6'[t] == vx6[t], y6'[t] == vy6[t], z6'[t] == vz6[t],
  173. x7'[t] == vx7[t], y7'[t] == vy7[t], z7'[t] == vz7[t],
  174. x8'[t] == vx8[t], y8'[t] == vy8[t], z8'[t] == vz8[t],
  175. x9'[t] == vx9[t], y9'[t] == vy9[t], z9'[t] == vz9[t],
  176. x0'[t] == vx0[t], y0'[t] == vy0[t], z0'[t] == vz0[t],
  177.  
  178. vx1'[t] ==
  179. (G m2 (x2[t]-x1[t]))/Sqrt[((x2[t]-x1[t])^2+(y2[t]-y1[t])^2+(z2[t]-z1[t])^2)^3]+
  180. (G m3 (x3[t]-x1[t]))/Sqrt[((x3[t]-x1[t])^2+(y3[t]-y1[t])^2+(z3[t]-z1[t])^2)^3]+
  181. (G m4 (x4[t]-x1[t]))/Sqrt[((x4[t]-x1[t])^2+(y4[t]-y1[t])^2+(z4[t]-z1[t])^2)^3]+
  182. (G m5 (x5[t]-x1[t]))/Sqrt[((x5[t]-x1[t])^2+(y5[t]-y1[t])^2+(z5[t]-z1[t])^2)^3]+
  183. (G m6 (x6[t]-x1[t]))/Sqrt[((x6[t]-x1[t])^2+(y6[t]-y1[t])^2+(z6[t]-z1[t])^2)^3]+
  184. (G m7 (x7[t]-x1[t]))/Sqrt[((x7[t]-x1[t])^2+(y7[t]-y1[t])^2+(z7[t]-z1[t])^2)^3]+
  185. (G m8 (x8[t]-x1[t]))/Sqrt[((x8[t]-x1[t])^2+(y8[t]-y1[t])^2+(z8[t]-z1[t])^2)^3]+
  186. (G m9 (x9[t]-x1[t]))/Sqrt[((x9[t]-x1[t])^2+(y9[t]-y1[t])^2+(z9[t]-z1[t])^2)^3]+
  187. (G m0 (x0[t]-x1[t]))/Sqrt[((x0[t]-x1[t])^2+(y0[t]-y1[t])^2+(z0[t]-z1[t])^2)^3]+
  188. If[q1 == 0, 0,
  189. (-q1*q2/(4π ε0 )/m1 (x2[t]-x1[t]))/Sqrt[((x2[t]-x1[t])^2+(y2[t]-y1[t])^2+(z2[t]-z1[t])^2)^3]+
  190. (-q1*q3/(4π ε0 )/m1 (x3[t]-x1[t]))/Sqrt[((x3[t]-x1[t])^2+(y3[t]-y1[t])^2+(z3[t]-z1[t])^2)^3]+
  191. (-q1*q4/(4π ε0 )/m1 (x4[t]-x1[t]))/Sqrt[((x4[t]-x1[t])^2+(y4[t]-y1[t])^2+(z4[t]-z1[t])^2)^3]+
  192. (-q1*q5/(4π ε0 )/m1 (x5[t]-x1[t]))/Sqrt[((x5[t]-x1[t])^2+(y5[t]-y1[t])^2+(z5[t]-z1[t])^2)^3]+
  193. (-q1*q6/(4π ε0 )/m1 (x6[t]-x1[t]))/Sqrt[((x6[t]-x1[t])^2+(y6[t]-y1[t])^2+(z6[t]-z1[t])^2)^3]+
  194. (-q1*q7/(4π ε0 )/m1 (x7[t]-x1[t]))/Sqrt[((x7[t]-x1[t])^2+(y7[t]-y1[t])^2+(z7[t]-z1[t])^2)^3]+
  195. (-q1*q8/(4π ε0 )/m1 (x8[t]-x1[t]))/Sqrt[((x8[t]-x1[t])^2+(y8[t]-y1[t])^2+(z8[t]-z1[t])^2)^3]+
  196. (-q1*q9/(4π ε0 )/m1 (x9[t]-x1[t]))/Sqrt[((x9[t]-x1[t])^2+(y9[t]-y1[t])^2+(z9[t]-z1[t])^2)^3]+
  197. (-q1*q0/(4π ε0 )/m1 (x0[t]-x1[t]))/Sqrt[((x0[t]-x1[t])^2+(y0[t]-y1[t])^2+(z0[t]-z1[t])^2)^3]],
  198.  
  199. vy1'[t] ==
  200. (G m2 (y2[t]-y1[t]))/Sqrt[((x2[t]-x1[t])^2+(y2[t]-y1[t])^2+(z2[t]-z1[t])^2)^3]+
  201. (G m3 (y3[t]-y1[t]))/Sqrt[((x3[t]-x1[t])^2+(y3[t]-y1[t])^2+(z3[t]-z1[t])^2)^3]+
  202. (G m4 (y4[t]-y1[t]))/Sqrt[((x4[t]-x1[t])^2+(y4[t]-y1[t])^2+(z4[t]-z1[t])^2)^3]+
  203. (G m5 (y5[t]-y1[t]))/Sqrt[((x5[t]-x1[t])^2+(y5[t]-y1[t])^2+(z5[t]-z1[t])^2)^3]+
  204. (G m6 (y6[t]-y1[t]))/Sqrt[((x6[t]-x1[t])^2+(y6[t]-y1[t])^2+(z6[t]-z1[t])^2)^3]+
  205. (G m7 (y7[t]-y1[t]))/Sqrt[((x7[t]-x1[t])^2+(y7[t]-y1[t])^2+(z7[t]-z1[t])^2)^3]+
  206. (G m8 (y8[t]-y1[t]))/Sqrt[((x8[t]-x1[t])^2+(y8[t]-y1[t])^2+(z8[t]-z1[t])^2)^3]+
  207. (G m9 (y9[t]-y1[t]))/Sqrt[((x9[t]-x1[t])^2+(y9[t]-y1[t])^2+(z9[t]-z1[t])^2)^3]+
  208. (G m0 (y0[t]-y1[t]))/Sqrt[((x0[t]-x1[t])^2+(y0[t]-y1[t])^2+(z0[t]-z1[t])^2)^3]+
  209. If[q1 == 0, 0,
  210. (-q1*q2/(4π ε0 )/m1 (y2[t]-y1[t]))/Sqrt[((x2[t]-x1[t])^2+(y2[t]-y1[t])^2+(z2[t]-z1[t])^2)^3]+
  211. (-q1*q3/(4π ε0 )/m1 (y3[t]-y1[t]))/Sqrt[((x3[t]-x1[t])^2+(y3[t]-y1[t])^2+(z3[t]-z1[t])^2)^3]+
  212. (-q1*q4/(4π ε0 )/m1 (y4[t]-y1[t]))/Sqrt[((x4[t]-x1[t])^2+(y4[t]-y1[t])^2+(z4[t]-z1[t])^2)^3]+
  213. (-q1*q5/(4π ε0 )/m1 (y5[t]-y1[t]))/Sqrt[((x5[t]-x1[t])^2+(y5[t]-y1[t])^2+(z5[t]-z1[t])^2)^3]+
  214. (-q1*q6/(4π ε0 )/m1 (y6[t]-y1[t]))/Sqrt[((x6[t]-x1[t])^2+(y6[t]-y1[t])^2+(z6[t]-z1[t])^2)^3]+
  215. (-q1*q7/(4π ε0 )/m1 (y7[t]-y1[t]))/Sqrt[((x7[t]-x1[t])^2+(y7[t]-y1[t])^2+(z7[t]-z1[t])^2)^3]+
  216. (-q1*q8/(4π ε0 )/m1 (y8[t]-y1[t]))/Sqrt[((x8[t]-x1[t])^2+(y8[t]-y1[t])^2+(z8[t]-z1[t])^2)^3]+
  217. (-q1*q9/(4π ε0 )/m1 (y9[t]-y1[t]))/Sqrt[((x9[t]-x1[t])^2+(y9[t]-y1[t])^2+(z9[t]-z1[t])^2)^3]+
  218. (-q1*q0/(4π ε0 )/m1 (y0[t]-y1[t]))/Sqrt[((x0[t]-x1[t])^2+(y0[t]-y1[t])^2+(z0[t]-z1[t])^2)^3]],
  219.  
  220. vz1'[t] ==
  221. (G m2 (z2[t]-z1[t]))/Sqrt[((x2[t]-x1[t])^2+(y2[t]-y1[t])^2+(z2[t]-z1[t])^2)^3]+
  222. (G m3 (z3[t]-z1[t]))/Sqrt[((x3[t]-x1[t])^2+(y3[t]-y1[t])^2+(z3[t]-z1[t])^2)^3]+
  223. (G m4 (z4[t]-z1[t]))/Sqrt[((x4[t]-x1[t])^2+(y4[t]-y1[t])^2+(z4[t]-z1[t])^2)^3]+
  224. (G m5 (z5[t]-z1[t]))/Sqrt[((x5[t]-x1[t])^2+(y5[t]-y1[t])^2+(z5[t]-z1[t])^2)^3]+
  225. (G m6 (z6[t]-z1[t]))/Sqrt[((x6[t]-x1[t])^2+(y6[t]-y1[t])^2+(z6[t]-z1[t])^2)^3]+
  226. (G m7 (z7[t]-z1[t]))/Sqrt[((x7[t]-x1[t])^2+(y7[t]-y1[t])^2+(z7[t]-z1[t])^2)^3]+
  227. (G m8 (z8[t]-z1[t]))/Sqrt[((x8[t]-x1[t])^2+(y8[t]-y1[t])^2+(z8[t]-z1[t])^2)^3]+
  228. (G m9 (z9[t]-z1[t]))/Sqrt[((x9[t]-x1[t])^2+(y9[t]-y1[t])^2+(z9[t]-z1[t])^2)^3]+
  229. (G m0 (z0[t]-z1[t]))/Sqrt[((x0[t]-x1[t])^2+(y0[t]-y1[t])^2+(z0[t]-z1[t])^2)^3]+
  230. If[q1 == 0, 0,
  231. (-q1*q2/(4π ε0 )/m1 (z2[t]-z1[t]))/Sqrt[((x2[t]-x1[t])^2+(y2[t]-y1[t])^2+(z2[t]-z1[t])^2)^3]+
  232. (-q1*q3/(4π ε0 )/m1 (z3[t]-z1[t]))/Sqrt[((x3[t]-x1[t])^2+(y3[t]-y1[t])^2+(z3[t]-z1[t])^2)^3]+
  233. (-q1*q4/(4π ε0 )/m1 (z4[t]-z1[t]))/Sqrt[((x4[t]-x1[t])^2+(y4[t]-y1[t])^2+(z4[t]-z1[t])^2)^3]+
  234. (-q1*q5/(4π ε0 )/m1 (z5[t]-z1[t]))/Sqrt[((x5[t]-x1[t])^2+(y5[t]-y1[t])^2+(z5[t]-z1[t])^2)^3]+
  235. (-q1*q6/(4π ε0 )/m1 (z6[t]-z1[t]))/Sqrt[((x6[t]-x1[t])^2+(y6[t]-y1[t])^2+(z6[t]-z1[t])^2)^3]+
  236. (-q1*q7/(4π ε0 )/m1 (z7[t]-z1[t]))/Sqrt[((x7[t]-x1[t])^2+(y7[t]-y1[t])^2+(z7[t]-z1[t])^2)^3]+
  237. (-q1*q8/(4π ε0 )/m1 (z8[t]-z1[t]))/Sqrt[((x8[t]-x1[t])^2+(y8[t]-y1[t])^2+(z8[t]-z1[t])^2)^3]+
  238. (-q1*q9/(4π ε0 )/m1 (z9[t]-z1[t]))/Sqrt[((x9[t]-x1[t])^2+(y9[t]-y1[t])^2+(z9[t]-z1[t])^2)^3]+
  239. (-q1*q0/(4π ε0 )/m1 (z0[t]-z1[t]))/Sqrt[((x0[t]-x1[t])^2+(y0[t]-y1[t])^2+(z0[t]-z1[t])^2)^3]],
  240.  
  241. vx2'[t] ==
  242. (G m1 (x1[t]-x2[t]))/Sqrt[((x1[t]-x2[t])^2+(y1[t]-y2[t])^2+(z1[t]-z2[t])^2)^3]+
  243. (G m3 (x3[t]-x2[t]))/Sqrt[((x3[t]-x2[t])^2+(y3[t]-y2[t])^2+(z3[t]-z2[t])^2)^3]+
  244. (G m4 (x4[t]-x2[t]))/Sqrt[((x4[t]-x2[t])^2+(y4[t]-y2[t])^2+(z4[t]-z2[t])^2)^3]+
  245. (G m5 (x5[t]-x2[t]))/Sqrt[((x5[t]-x2[t])^2+(y5[t]-y2[t])^2+(z5[t]-z2[t])^2)^3]+
  246. (G m6 (x6[t]-x2[t]))/Sqrt[((x6[t]-x2[t])^2+(y6[t]-y2[t])^2+(z6[t]-z2[t])^2)^3]+
  247. (G m7 (x7[t]-x2[t]))/Sqrt[((x7[t]-x2[t])^2+(y7[t]-y2[t])^2+(z7[t]-z2[t])^2)^3]+
  248. (G m8 (x8[t]-x2[t]))/Sqrt[((x8[t]-x2[t])^2+(y8[t]-y2[t])^2+(z8[t]-z2[t])^2)^3]+
  249. (G m9 (x9[t]-x2[t]))/Sqrt[((x9[t]-x2[t])^2+(y9[t]-y2[t])^2+(z9[t]-z2[t])^2)^3]+
  250. (G m0 (x0[t]-x2[t]))/Sqrt[((x0[t]-x2[t])^2+(y0[t]-y2[t])^2+(z0[t]-z2[t])^2)^3]+
  251. If[q2 == 0, 0,
  252. (-q2*q1/(4π ε0 )/m2 (x1[t]-x2[t]))/Sqrt[((x1[t]-x2[t])^2+(y1[t]-y2[t])^2+(z1[t]-z2[t])^2)^3]+
  253. (-q2*q3/(4π ε0 )/m2 (x3[t]-x2[t]))/Sqrt[((x3[t]-x2[t])^2+(y3[t]-y2[t])^2+(z3[t]-z2[t])^2)^3]+
  254. (-q2*q4/(4π ε0 )/m2 (x4[t]-x2[t]))/Sqrt[((x4[t]-x2[t])^2+(y4[t]-y2[t])^2+(z4[t]-z2[t])^2)^3]+
  255. (-q2*q5/(4π ε0 )/m2 (x5[t]-x2[t]))/Sqrt[((x5[t]-x2[t])^2+(y5[t]-y2[t])^2+(z5[t]-z2[t])^2)^3]+
  256. (-q2*q6/(4π ε0 )/m2 (x6[t]-x2[t]))/Sqrt[((x6[t]-x2[t])^2+(y6[t]-y2[t])^2+(z6[t]-z2[t])^2)^3]+
  257. (-q2*q7/(4π ε0 )/m2 (x7[t]-x2[t]))/Sqrt[((x7[t]-x2[t])^2+(y7[t]-y2[t])^2+(z7[t]-z2[t])^2)^3]+
  258. (-q2*q8/(4π ε0 )/m2 (x8[t]-x2[t]))/Sqrt[((x8[t]-x2[t])^2+(y8[t]-y2[t])^2+(z8[t]-z2[t])^2)^3]+
  259. (-q2*q9/(4π ε0 )/m2 (x9[t]-x2[t]))/Sqrt[((x9[t]-x2[t])^2+(y9[t]-y2[t])^2+(z9[t]-z2[t])^2)^3]+
  260. (-q2*q0/(4π ε0 )/m2 (x0[t]-x2[t]))/Sqrt[((x0[t]-x2[t])^2+(y0[t]-y2[t])^2+(z0[t]-z2[t])^2)^3]],
  261.  
  262. vy2'[t] ==
  263. (G m1 (y1[t]-y2[t]))/Sqrt[((x1[t]-x2[t])^2+(y1[t]-y2[t])^2+(z1[t]-z2[t])^2)^3]+
  264. (G m3 (y3[t]-y2[t]))/Sqrt[((x3[t]-x2[t])^2+(y3[t]-y2[t])^2+(z3[t]-z2[t])^2)^3]+
  265. (G m4 (y4[t]-y2[t]))/Sqrt[((x4[t]-x2[t])^2+(y4[t]-y2[t])^2+(z4[t]-z2[t])^2)^3]+
  266. (G m5 (y5[t]-y2[t]))/Sqrt[((x5[t]-x2[t])^2+(y5[t]-y2[t])^2+(z5[t]-z2[t])^2)^3]+
  267. (G m6 (y6[t]-y2[t]))/Sqrt[((x6[t]-x2[t])^2+(y6[t]-y2[t])^2+(z6[t]-z2[t])^2)^3]+
  268. (G m7 (y7[t]-y2[t]))/Sqrt[((x7[t]-x2[t])^2+(y7[t]-y2[t])^2+(z7[t]-z2[t])^2)^3]+
  269. (G m8 (y8[t]-y2[t]))/Sqrt[((x8[t]-x2[t])^2+(y8[t]-y2[t])^2+(z8[t]-z2[t])^2)^3]+
  270. (G m9 (y9[t]-y2[t]))/Sqrt[((x9[t]-x2[t])^2+(y9[t]-y2[t])^2+(z9[t]-z2[t])^2)^3]+
  271. (G m0 (y0[t]-y2[t]))/Sqrt[((x0[t]-x2[t])^2+(y0[t]-y2[t])^2+(z0[t]-z2[t])^2)^3]+
  272. If[q2 == 0, 0,
  273. (-q2*q1/(4π ε0 )/m2 (y1[t]-y2[t]))/Sqrt[((x1[t]-x2[t])^2+(y1[t]-y2[t])^2+(z1[t]-z2[t])^2)^3]+
  274. (-q2*q3/(4π ε0 )/m2 (y3[t]-y2[t]))/Sqrt[((x3[t]-x2[t])^2+(y3[t]-y2[t])^2+(z3[t]-z2[t])^2)^3]+
  275. (-q2*q4/(4π ε0 )/m2 (y4[t]-y2[t]))/Sqrt[((x4[t]-x2[t])^2+(y4[t]-y2[t])^2+(z4[t]-z2[t])^2)^3]+
  276. (-q2*q5/(4π ε0 )/m2 (y5[t]-y2[t]))/Sqrt[((x5[t]-x2[t])^2+(y5[t]-y2[t])^2+(z5[t]-z2[t])^2)^3]+
  277. (-q2*q6/(4π ε0 )/m2 (y6[t]-y2[t]))/Sqrt[((x6[t]-x2[t])^2+(y6[t]-y2[t])^2+(z6[t]-z2[t])^2)^3]+
  278. (-q2*q7/(4π ε0 )/m2 (y7[t]-y2[t]))/Sqrt[((x7[t]-x2[t])^2+(y7[t]-y2[t])^2+(z7[t]-z2[t])^2)^3]+
  279. (-q2*q8/(4π ε0 )/m2 (y8[t]-y2[t]))/Sqrt[((x8[t]-x2[t])^2+(y8[t]-y2[t])^2+(z8[t]-z2[t])^2)^3]+
  280. (-q2*q9/(4π ε0 )/m2 (y9[t]-y2[t]))/Sqrt[((x9[t]-x2[t])^2+(y9[t]-y2[t])^2+(z9[t]-z2[t])^2)^3]+
  281. (-q2*q0/(4π ε0 )/m2 (y0[t]-y2[t]))/Sqrt[((x0[t]-x2[t])^2+(y0[t]-y2[t])^2+(z0[t]-z2[t])^2)^3]],
  282.  
  283. vz2'[t] ==
  284. (G m1 (z1[t]-z2[t]))/Sqrt[((x2[t]-x1[t])^2+(y2[t]-y1[t])^2+(z2[t]-z1[t])^2)^3]+
  285. (G m3 (z3[t]-z2[t]))/Sqrt[((x3[t]-x2[t])^2+(y3[t]-y2[t])^2+(z3[t]-z2[t])^2)^3]+
  286. (G m4 (z4[t]-z2[t]))/Sqrt[((x4[t]-x2[t])^2+(y4[t]-y2[t])^2+(z4[t]-z2[t])^2)^3]+
  287. (G m5 (z5[t]-z2[t]))/Sqrt[((x5[t]-x2[t])^2+(y5[t]-y2[t])^2+(z5[t]-z2[t])^2)^3]+
  288. (G m6 (z6[t]-z2[t]))/Sqrt[((x6[t]-x2[t])^2+(y6[t]-y2[t])^2+(z6[t]-z2[t])^2)^3]+
  289. (G m7 (z7[t]-z2[t]))/Sqrt[((x7[t]-x2[t])^2+(y7[t]-y2[t])^2+(z7[t]-z2[t])^2)^3]+
  290. (G m8 (z8[t]-z2[t]))/Sqrt[((x8[t]-x2[t])^2+(y8[t]-y2[t])^2+(z8[t]-z2[t])^2)^3]+
  291. (G m9 (z9[t]-z2[t]))/Sqrt[((x9[t]-x2[t])^2+(y9[t]-y2[t])^2+(z9[t]-z2[t])^2)^3]+
  292. (G m0 (z0[t]-z2[t]))/Sqrt[((x0[t]-x2[t])^2+(y0[t]-y2[t])^2+(z0[t]-z2[t])^2)^3]+
  293. If[q2 == 0, 0,
  294. (-q2*q1/(4π ε0 )/m2 (z1[t]-z2[t]))/Sqrt[((x2[t]-x1[t])^2+(y2[t]-y1[t])^2+(z2[t]-z1[t])^2)^3]+
  295. (-q2*q3/(4π ε0 )/m2 (z3[t]-z2[t]))/Sqrt[((x3[t]-x2[t])^2+(y3[t]-y2[t])^2+(z3[t]-z2[t])^2)^3]+
  296. (-q2*q4/(4π ε0 )/m2 (z4[t]-z2[t]))/Sqrt[((x4[t]-x2[t])^2+(y4[t]-y2[t])^2+(z4[t]-z2[t])^2)^3]+
  297. (-q2*q5/(4π ε0 )/m2 (z5[t]-z2[t]))/Sqrt[((x5[t]-x2[t])^2+(y5[t]-y2[t])^2+(z5[t]-z2[t])^2)^3]+
  298. (-q2*q6/(4π ε0 )/m2 (z6[t]-z2[t]))/Sqrt[((x6[t]-x2[t])^2+(y6[t]-y2[t])^2+(z6[t]-z2[t])^2)^3]+
  299. (-q2*q7/(4π ε0 )/m2 (z7[t]-z2[t]))/Sqrt[((x7[t]-x2[t])^2+(y7[t]-y2[t])^2+(z7[t]-z2[t])^2)^3]+
  300. (-q2*q8/(4π ε0 )/m2 (z8[t]-z2[t]))/Sqrt[((x8[t]-x2[t])^2+(y8[t]-y2[t])^2+(z8[t]-z2[t])^2)^3]+
  301. (-q2*q9/(4π ε0 )/m2 (z9[t]-z2[t]))/Sqrt[((x9[t]-x2[t])^2+(y9[t]-y2[t])^2+(z9[t]-z2[t])^2)^3]+
  302. (-q2*q0/(4π ε0 )/m2 (z0[t]-z2[t]))/Sqrt[((x0[t]-x2[t])^2+(y0[t]-y2[t])^2+(z0[t]-z2[t])^2)^3]],
  303.  
  304. vx3'[t] ==
  305. (G m1 (x1[t]-x3[t]))/Sqrt[((x1[t]-x3[t])^2+(y1[t]-y3[t])^2+(z1[t]-z3[t])^2)^3]+
  306. (G m2 (x2[t]-x3[t]))/Sqrt[((x2[t]-x3[t])^2+(y2[t]-y3[t])^2+(z2[t]-z3[t])^2)^3]+
  307. (G m4 (x4[t]-x3[t]))/Sqrt[((x4[t]-x3[t])^2+(y4[t]-y3[t])^2+(z4[t]-z3[t])^2)^3]+
  308. (G m5 (x5[t]-x3[t]))/Sqrt[((x5[t]-x3[t])^2+(y5[t]-y3[t])^2+(z5[t]-z3[t])^2)^3]+
  309. (G m6 (x6[t]-x3[t]))/Sqrt[((x6[t]-x3[t])^2+(y6[t]-y3[t])^2+(z6[t]-z3[t])^2)^3]+
  310. (G m7 (x7[t]-x3[t]))/Sqrt[((x7[t]-x3[t])^2+(y7[t]-y3[t])^2+(z7[t]-z3[t])^2)^3]+
  311. (G m8 (x8[t]-x3[t]))/Sqrt[((x8[t]-x3[t])^2+(y8[t]-y3[t])^2+(z8[t]-z3[t])^2)^3]+
  312. (G m9 (x9[t]-x3[t]))/Sqrt[((x9[t]-x3[t])^2+(y9[t]-y3[t])^2+(z9[t]-z3[t])^2)^3]+
  313. (G m0 (x0[t]-x3[t]))/Sqrt[((x0[t]-x3[t])^2+(y0[t]-y3[t])^2+(z0[t]-z3[t])^2)^3]+
  314. If[q3 == 0, 0,
  315. (-q3*q1/(4π ε0 )/m3 (x1[t]-x3[t]))/Sqrt[((x1[t]-x3[t])^2+(y1[t]-y3[t])^2+(z1[t]-z3[t])^2)^3]+
  316. (-q3*q2/(4π ε0 )/m3 (x2[t]-x3[t]))/Sqrt[((x2[t]-x3[t])^2+(y2[t]-y3[t])^2+(z2[t]-z3[t])^2)^3]+
  317. (-q3*q4/(4π ε0 )/m3 (x4[t]-x3[t]))/Sqrt[((x4[t]-x3[t])^2+(y4[t]-y3[t])^2+(z4[t]-z3[t])^2)^3]+
  318. (-q3*q5/(4π ε0 )/m3 (x5[t]-x3[t]))/Sqrt[((x5[t]-x3[t])^2+(y5[t]-y3[t])^2+(z5[t]-z3[t])^2)^3]+
  319. (-q3*q6/(4π ε0 )/m3 (x6[t]-x3[t]))/Sqrt[((x6[t]-x3[t])^2+(y6[t]-y3[t])^2+(z6[t]-z3[t])^2)^3]+
  320. (-q3*q7/(4π ε0 )/m3 (x7[t]-x3[t]))/Sqrt[((x7[t]-x3[t])^2+(y7[t]-y3[t])^2+(z7[t]-z3[t])^2)^3]+
  321. (-q3*q8/(4π ε0 )/m3 (x8[t]-x3[t]))/Sqrt[((x8[t]-x3[t])^2+(y8[t]-y3[t])^2+(z8[t]-z3[t])^2)^3]+
  322. (-q3*q9/(4π ε0 )/m3 (x9[t]-x3[t]))/Sqrt[((x9[t]-x3[t])^2+(y9[t]-y3[t])^2+(z9[t]-z3[t])^2)^3]+
  323. (-q3*q0/(4π ε0 )/m3 (x0[t]-x3[t]))/Sqrt[((x0[t]-x3[t])^2+(y0[t]-y3[t])^2+(z0[t]-z3[t])^2)^3]],
  324.  
  325. vy3'[t] ==
  326. (G m1 (y1[t]-y3[t]))/Sqrt[((x1[t]-x3[t])^2+(y1[t]-y3[t])^2+(z1[t]-z3[t])^2)^3]+
  327. (G m2 (y2[t]-y3[t]))/Sqrt[((x2[t]-x3[t])^2+(y2[t]-y3[t])^2+(z2[t]-z3[t])^2)^3]+
  328. (G m4 (y4[t]-y3[t]))/Sqrt[((x4[t]-x3[t])^2+(y4[t]-y3[t])^2+(z4[t]-z3[t])^2)^3]+
  329. (G m5 (y5[t]-y3[t]))/Sqrt[((x5[t]-x3[t])^2+(y5[t]-y3[t])^2+(z5[t]-z3[t])^2)^3]+
  330. (G m6 (y6[t]-y3[t]))/Sqrt[((x6[t]-x3[t])^2+(y6[t]-y3[t])^2+(z6[t]-z3[t])^2)^3]+
  331. (G m7 (y7[t]-y3[t]))/Sqrt[((x7[t]-x3[t])^2+(y7[t]-y3[t])^2+(z7[t]-z3[t])^2)^3]+
  332. (G m8 (y8[t]-y3[t]))/Sqrt[((x8[t]-x3[t])^2+(y8[t]-y3[t])^2+(z8[t]-z3[t])^2)^3]+
  333. (G m9 (y9[t]-y3[t]))/Sqrt[((x9[t]-x3[t])^2+(y9[t]-y3[t])^2+(z9[t]-z3[t])^2)^3]+
  334. (G m0 (y0[t]-y3[t]))/Sqrt[((x0[t]-x3[t])^2+(y0[t]-y3[t])^2+(z0[t]-z3[t])^2)^3]+
  335. If[q3 == 0, 0,
  336. (-q3*q1/(4π ε0 )/m3 (y1[t]-y3[t]))/Sqrt[((x1[t]-x3[t])^2+(y1[t]-y3[t])^2+(z1[t]-z3[t])^2)^3]+
  337. (-q3*q2/(4π ε0 )/m3 (y2[t]-y3[t]))/Sqrt[((x2[t]-x3[t])^2+(y2[t]-y3[t])^2+(z2[t]-z3[t])^2)^3]+
  338. (-q3*q4/(4π ε0 )/m3 (y4[t]-y3[t]))/Sqrt[((x4[t]-x3[t])^2+(y4[t]-y3[t])^2+(z4[t]-z3[t])^2)^3]+
  339. (-q3*q5/(4π ε0 )/m3 (y5[t]-y3[t]))/Sqrt[((x5[t]-x3[t])^2+(y5[t]-y3[t])^2+(z5[t]-z3[t])^2)^3]+
  340. (-q3*q6/(4π ε0 )/m3 (y6[t]-y3[t]))/Sqrt[((x6[t]-x3[t])^2+(y6[t]-y3[t])^2+(z6[t]-z3[t])^2)^3]+
  341. (-q3*q7/(4π ε0 )/m3 (y7[t]-y3[t]))/Sqrt[((x7[t]-x3[t])^2+(y7[t]-y3[t])^2+(z7[t]-z3[t])^2)^3]+
  342. (-q3*q8/(4π ε0 )/m3 (y8[t]-y3[t]))/Sqrt[((x8[t]-x3[t])^2+(y8[t]-y3[t])^2+(z8[t]-z3[t])^2)^3]+
  343. (-q3*q9/(4π ε0 )/m3 (y9[t]-y3[t]))/Sqrt[((x9[t]-x3[t])^2+(y9[t]-y3[t])^2+(z9[t]-z3[t])^2)^3]+
  344. (-q3*q0/(4π ε0 )/m3 (y0[t]-y3[t]))/Sqrt[((x0[t]-x3[t])^2+(y0[t]-y3[t])^2+(z0[t]-z3[t])^2)^3]],
  345.  
  346. vz3'[t] ==
  347. (G m1 (z1[t]-z3[t]))/Sqrt[((x1[t]-x3[t])^2+(y1[t]-y3[t])^2+(z1[t]-z3[t])^2)^3]+
  348. (G m2 (z2[t]-z3[t]))/Sqrt[((x2[t]-x3[t])^2+(y2[t]-y3[t])^2+(z2[t]-z3[t])^2)^3]+
  349. (G m4 (z4[t]-z3[t]))/Sqrt[((x4[t]-x3[t])^2+(y4[t]-y3[t])^2+(z4[t]-z3[t])^2)^3]+
  350. (G m5 (z5[t]-z3[t]))/Sqrt[((x5[t]-x3[t])^2+(y5[t]-y3[t])^2+(z5[t]-z3[t])^2)^3]+
  351. (G m6 (z6[t]-z3[t]))/Sqrt[((x6[t]-x3[t])^2+(y6[t]-y3[t])^2+(z6[t]-z3[t])^2)^3]+
  352. (G m7 (z7[t]-z3[t]))/Sqrt[((x7[t]-x3[t])^2+(y7[t]-y3[t])^2+(z7[t]-z3[t])^2)^3]+
  353. (G m8 (z8[t]-z3[t]))/Sqrt[((x8[t]-x3[t])^2+(y8[t]-y3[t])^2+(z8[t]-z3[t])^2)^3]+
  354. (G m9 (z9[t]-z3[t]))/Sqrt[((x9[t]-x3[t])^2+(y9[t]-y3[t])^2+(z9[t]-z3[t])^2)^3]+
  355. (G m0 (z0[t]-z3[t]))/Sqrt[((x0[t]-x3[t])^2+(y0[t]-y3[t])^2+(z0[t]-z3[t])^2)^3]+
  356. If[q3 == 0, 0,
  357. (-q3*q1/(4π ε0 )/m3 (z1[t]-z3[t]))/Sqrt[((x1[t]-x3[t])^2+(y1[t]-y3[t])^2+(z1[t]-z3[t])^2)^3]+
  358. (-q3*q2/(4π ε0 )/m3 (z2[t]-z3[t]))/Sqrt[((x2[t]-x3[t])^2+(y2[t]-y3[t])^2+(z2[t]-z3[t])^2)^3]+
  359. (-q3*q4/(4π ε0 )/m3 (z4[t]-z3[t]))/Sqrt[((x4[t]-x3[t])^2+(y4[t]-y3[t])^2+(z4[t]-z3[t])^2)^3]+
  360. (-q3*q5/(4π ε0 )/m3 (z5[t]-z3[t]))/Sqrt[((x5[t]-x3[t])^2+(y5[t]-y3[t])^2+(z5[t]-z3[t])^2)^3]+
  361. (-q3*q6/(4π ε0 )/m3 (z6[t]-z3[t]))/Sqrt[((x6[t]-x3[t])^2+(y6[t]-y3[t])^2+(z6[t]-z3[t])^2)^3]+
  362. (-q3*q7/(4π ε0 )/m3 (z7[t]-z3[t]))/Sqrt[((x7[t]-x3[t])^2+(y7[t]-y3[t])^2+(z7[t]-z3[t])^2)^3]+
  363. (-q3*q8/(4π ε0 )/m3 (z8[t]-z3[t]))/Sqrt[((x8[t]-x3[t])^2+(y8[t]-y3[t])^2+(z8[t]-z3[t])^2)^3]+
  364. (-q3*q9/(4π ε0 )/m3 (z9[t]-z3[t]))/Sqrt[((x9[t]-x3[t])^2+(y9[t]-y3[t])^2+(z9[t]-z3[t])^2)^3]+
  365. (-q3*q0/(4π ε0 )/m3 (z0[t]-z3[t]))/Sqrt[((x0[t]-x3[t])^2+(y0[t]-y3[t])^2+(z0[t]-z3[t])^2)^3]],
  366.  
  367. vx4'[t] ==
  368. (G m1 (x1[t]-x4[t]))/Sqrt[((x1[t]-x4[t])^2+(y1[t]-y4[t])^2+(z1[t]-z4[t])^2)^3]+
  369. (G m2 (x2[t]-x4[t]))/Sqrt[((x2[t]-x4[t])^2+(y2[t]-y4[t])^2+(z2[t]-z4[t])^2)^3]+
  370. (G m3 (x3[t]-x4[t]))/Sqrt[((x3[t]-x4[t])^2+(y3[t]-y4[t])^2+(z3[t]-z4[t])^2)^3]+
  371. (G m5 (x5[t]-x4[t]))/Sqrt[((x5[t]-x4[t])^2+(y5[t]-y4[t])^2+(z5[t]-z4[t])^2)^3]+
  372. (G m6 (x6[t]-x4[t]))/Sqrt[((x6[t]-x4[t])^2+(y6[t]-y4[t])^2+(z6[t]-z4[t])^2)^3]+
  373. (G m7 (x7[t]-x4[t]))/Sqrt[((x7[t]-x4[t])^2+(y7[t]-y4[t])^2+(z7[t]-z4[t])^2)^3]+
  374. (G m8 (x8[t]-x4[t]))/Sqrt[((x8[t]-x4[t])^2+(y8[t]-y4[t])^2+(z8[t]-z4[t])^2)^3]+
  375. (G m9 (x9[t]-x4[t]))/Sqrt[((x9[t]-x4[t])^2+(y9[t]-y4[t])^2+(z9[t]-z4[t])^2)^3]+
  376. (G m0 (x0[t]-x4[t]))/Sqrt[((x0[t]-x4[t])^2+(y0[t]-y4[t])^2+(z0[t]-z4[t])^2)^3]+
  377. If[q4 == 0, 0,
  378. (-q4*q1/(4π ε0 )/m4 (x1[t]-x4[t]))/Sqrt[((x1[t]-x4[t])^2+(y1[t]-y4[t])^2+(z1[t]-z4[t])^2)^3]+
  379. (-q4*q2/(4π ε0 )/m4 (x2[t]-x4[t]))/Sqrt[((x2[t]-x4[t])^2+(y2[t]-y4[t])^2+(z2[t]-z4[t])^2)^3]+
  380. (-q4*q3/(4π ε0 )/m4 (x3[t]-x4[t]))/Sqrt[((x3[t]-x4[t])^2+(y3[t]-y4[t])^2+(z3[t]-z4[t])^2)^3]+
  381. (-q4*q5/(4π ε0 )/m4 (x5[t]-x4[t]))/Sqrt[((x5[t]-x4[t])^2+(y5[t]-y4[t])^2+(z5[t]-z4[t])^2)^3]+
  382. (-q4*q6/(4π ε0 )/m4 (x6[t]-x4[t]))/Sqrt[((x6[t]-x4[t])^2+(y6[t]-y4[t])^2+(z6[t]-z4[t])^2)^3]+
  383. (-q4*q7/(4π ε0 )/m4 (x7[t]-x4[t]))/Sqrt[((x7[t]-x4[t])^2+(y7[t]-y4[t])^2+(z7[t]-z4[t])^2)^3]+
  384. (-q4*q8/(4π ε0 )/m4 (x8[t]-x4[t]))/Sqrt[((x8[t]-x4[t])^2+(y8[t]-y4[t])^2+(z8[t]-z4[t])^2)^3]+
  385. (-q4*q9/(4π ε0 )/m4 (x9[t]-x4[t]))/Sqrt[((x9[t]-x4[t])^2+(y9[t]-y4[t])^2+(z9[t]-z4[t])^2)^3]+
  386. (-q4*q0/(4π ε0 )/m4 (x0[t]-x4[t]))/Sqrt[((x0[t]-x4[t])^2+(y0[t]-y4[t])^2+(z0[t]-z4[t])^2)^3]],
  387.  
  388. vy4'[t] ==
  389. (G m1 (y1[t]-y4[t]))/Sqrt[((x1[t]-x4[t])^2+(y1[t]-y4[t])^2+(z1[t]-z4[t])^2)^3]+
  390. (G m2 (y2[t]-y4[t]))/Sqrt[((x2[t]-x4[t])^2+(y2[t]-y4[t])^2+(z2[t]-z4[t])^2)^3]+
  391. (G m3 (y3[t]-y4[t]))/Sqrt[((x3[t]-x4[t])^2+(y3[t]-y4[t])^2+(z3[t]-z4[t])^2)^3]+
  392. (G m5 (y5[t]-y4[t]))/Sqrt[((x5[t]-x4[t])^2+(y5[t]-y4[t])^2+(z5[t]-z4[t])^2)^3]+
  393. (G m6 (y6[t]-y4[t]))/Sqrt[((x6[t]-x4[t])^2+(y6[t]-y4[t])^2+(z6[t]-z4[t])^2)^3]+
  394. (G m7 (y7[t]-y4[t]))/Sqrt[((x7[t]-x4[t])^2+(y7[t]-y4[t])^2+(z7[t]-z4[t])^2)^3]+
  395. (G m8 (y8[t]-y4[t]))/Sqrt[((x8[t]-x4[t])^2+(y8[t]-y4[t])^2+(z8[t]-z4[t])^2)^3]+
  396. (G m9 (y9[t]-y4[t]))/Sqrt[((x9[t]-x4[t])^2+(y9[t]-y4[t])^2+(z9[t]-z4[t])^2)^3]+
  397. (G m0 (y0[t]-y4[t]))/Sqrt[((x0[t]-x4[t])^2+(y0[t]-y4[t])^2+(z0[t]-z4[t])^2)^3]+
  398. If[q4 == 0, 0,
  399. (-q4*q1/(4π ε0 )/m4 (y1[t]-y4[t]))/Sqrt[((x1[t]-x4[t])^2+(y1[t]-y4[t])^2+(z1[t]-z4[t])^2)^3]+
  400. (-q4*q2/(4π ε0 )/m4 (y2[t]-y4[t]))/Sqrt[((x2[t]-x4[t])^2+(y2[t]-y4[t])^2+(z2[t]-z4[t])^2)^3]+
  401. (-q4*q3/(4π ε0 )/m4 (y3[t]-y4[t]))/Sqrt[((x3[t]-x4[t])^2+(y3[t]-y4[t])^2+(z3[t]-z4[t])^2)^3]+
  402. (-q4*q5/(4π ε0 )/m4 (y5[t]-y4[t]))/Sqrt[((x5[t]-x4[t])^2+(y5[t]-y4[t])^2+(z5[t]-z4[t])^2)^3]+
  403. (-q4*q6/(4π ε0 )/m4 (y6[t]-y4[t]))/Sqrt[((x6[t]-x4[t])^2+(y6[t]-y4[t])^2+(z6[t]-z4[t])^2)^3]+
  404. (-q4*q7/(4π ε0 )/m4 (y7[t]-y4[t]))/Sqrt[((x7[t]-x4[t])^2+(y7[t]-y4[t])^2+(z7[t]-z4[t])^2)^3]+
  405. (-q4*q8/(4π ε0 )/m4 (y8[t]-y4[t]))/Sqrt[((x8[t]-x4[t])^2+(y8[t]-y4[t])^2+(z8[t]-z4[t])^2)^3]+
  406. (-q4*q9/(4π ε0 )/m4 (y9[t]-y4[t]))/Sqrt[((x9[t]-x4[t])^2+(y9[t]-y4[t])^2+(z9[t]-z4[t])^2)^3]+
  407. (-q4*q0/(4π ε0 )/m4 (y0[t]-y4[t]))/Sqrt[((x0[t]-x4[t])^2+(y0[t]-y4[t])^2+(z0[t]-z4[t])^2)^3]],
  408.  
  409. vz4'[t] ==
  410. (G m1 (z1[t]-z4[t]))/Sqrt[((x1[t]-x4[t])^2+(y1[t]-y4[t])^2+(z1[t]-z4[t])^2)^3]+
  411. (G m2 (z2[t]-z4[t]))/Sqrt[((x2[t]-x4[t])^2+(y2[t]-y4[t])^2+(z2[t]-z4[t])^2)^3]+
  412. (G m3 (z3[t]-z4[t]))/Sqrt[((x3[t]-x4[t])^2+(y3[t]-y4[t])^2+(z3[t]-z4[t])^2)^3]+
  413. (G m5 (z5[t]-z4[t]))/Sqrt[((x5[t]-x4[t])^2+(y5[t]-y4[t])^2+(z5[t]-z4[t])^2)^3]+
  414. (G m6 (z6[t]-z4[t]))/Sqrt[((x6[t]-x4[t])^2+(y6[t]-y4[t])^2+(z6[t]-z4[t])^2)^3]+
  415. (G m7 (z7[t]-z4[t]))/Sqrt[((x7[t]-x4[t])^2+(y7[t]-y4[t])^2+(z7[t]-z4[t])^2)^3]+
  416. (G m8 (z8[t]-z4[t]))/Sqrt[((x8[t]-x4[t])^2+(y8[t]-y4[t])^2+(z8[t]-z4[t])^2)^3]+
  417. (G m9 (z9[t]-z4[t]))/Sqrt[((x9[t]-x4[t])^2+(y9[t]-y4[t])^2+(z9[t]-z4[t])^2)^3]+
  418. (G m0 (z0[t]-z4[t]))/Sqrt[((x0[t]-x4[t])^2+(y0[t]-y4[t])^2+(z0[t]-z4[t])^2)^3]+
  419. If[q4 == 0, 0,
  420. (-q4*q1/(4π ε0 )/m4 (z1[t]-z4[t]))/Sqrt[((x1[t]-x4[t])^2+(y1[t]-y4[t])^2+(z1[t]-z4[t])^2)^3]+
  421. (-q4*q2/(4π ε0 )/m4 (z2[t]-z4[t]))/Sqrt[((x2[t]-x4[t])^2+(y2[t]-y4[t])^2+(z2[t]-z4[t])^2)^3]+
  422. (-q4*q3/(4π ε0 )/m4 (z3[t]-z4[t]))/Sqrt[((x3[t]-x4[t])^2+(y3[t]-y4[t])^2+(z3[t]-z4[t])^2)^3]+
  423. (-q4*q5/(4π ε0 )/m4 (z5[t]-z4[t]))/Sqrt[((x5[t]-x4[t])^2+(y5[t]-y4[t])^2+(z5[t]-z4[t])^2)^3]+
  424. (-q4*q6/(4π ε0 )/m4 (z6[t]-z4[t]))/Sqrt[((x6[t]-x4[t])^2+(y6[t]-y4[t])^2+(z6[t]-z4[t])^2)^3]+
  425. (-q4*q7/(4π ε0 )/m4 (z7[t]-z4[t]))/Sqrt[((x7[t]-x4[t])^2+(y7[t]-y4[t])^2+(z7[t]-z4[t])^2)^3]+
  426. (-q4*q8/(4π ε0 )/m4 (z8[t]-z4[t]))/Sqrt[((x8[t]-x4[t])^2+(y8[t]-y4[t])^2+(z8[t]-z4[t])^2)^3]+
  427. (-q4*q9/(4π ε0 )/m4 (z9[t]-z4[t]))/Sqrt[((x9[t]-x4[t])^2+(y9[t]-y4[t])^2+(z9[t]-z4[t])^2)^3]+
  428. (-q4*q0/(4π ε0 )/m4 (z0[t]-z4[t]))/Sqrt[((x0[t]-x4[t])^2+(y0[t]-y4[t])^2+(z0[t]-z4[t])^2)^3]],
  429.  
  430. vx5'[t] ==
  431. (G m1 (x1[t]-x5[t]))/Sqrt[((x1[t]-x5[t])^2+(y1[t]-y5[t])^2+(z1[t]-z5[t])^2)^3]+
  432. (G m2 (x2[t]-x5[t]))/Sqrt[((x2[t]-x5[t])^2+(y2[t]-y5[t])^2+(z2[t]-z5[t])^2)^3]+
  433. (G m3 (x3[t]-x5[t]))/Sqrt[((x3[t]-x5[t])^2+(y3[t]-y5[t])^2+(z3[t]-z5[t])^2)^3]+
  434. (G m4 (x4[t]-x5[t]))/Sqrt[((x4[t]-x5[t])^2+(y4[t]-y5[t])^2+(z4[t]-z5[t])^2)^3]+
  435. (G m6 (x6[t]-x5[t]))/Sqrt[((x6[t]-x5[t])^2+(y6[t]-y5[t])^2+(z6[t]-z5[t])^2)^3]+
  436. (G m7 (x7[t]-x5[t]))/Sqrt[((x7[t]-x5[t])^2+(y7[t]-y5[t])^2+(z7[t]-z5[t])^2)^3]+
  437. (G m8 (x8[t]-x5[t]))/Sqrt[((x8[t]-x5[t])^2+(y8[t]-y5[t])^2+(z8[t]-z5[t])^2)^3]+
  438. (G m9 (x9[t]-x5[t]))/Sqrt[((x9[t]-x5[t])^2+(y9[t]-y5[t])^2+(z9[t]-z5[t])^2)^3]+
  439. (G m0 (x0[t]-x5[t]))/Sqrt[((x0[t]-x5[t])^2+(y0[t]-y5[t])^2+(z0[t]-z5[t])^2)^3]+
  440. If[q5 == 0, 0,
  441. (-q5*q1/(4π ε0 )/m5 (x1[t]-x5[t]))/Sqrt[((x1[t]-x5[t])^2+(y1[t]-y5[t])^2+(z1[t]-z5[t])^2)^3]+
  442. (-q5*q2/(4π ε0 )/m5 (x2[t]-x5[t]))/Sqrt[((x2[t]-x5[t])^2+(y2[t]-y5[t])^2+(z2[t]-z5[t])^2)^3]+
  443. (-q5*q3/(4π ε0 )/m5 (x3[t]-x5[t]))/Sqrt[((x3[t]-x5[t])^2+(y3[t]-y5[t])^2+(z3[t]-z5[t])^2)^3]+
  444. (-q5*q4/(4π ε0 )/m5 (x4[t]-x5[t]))/Sqrt[((x4[t]-x5[t])^2+(y4[t]-y5[t])^2+(z4[t]-z5[t])^2)^3]+
  445. (-q5*q6/(4π ε0 )/m5 (x6[t]-x5[t]))/Sqrt[((x6[t]-x5[t])^2+(y6[t]-y5[t])^2+(z6[t]-z5[t])^2)^3]+
  446. (-q5*q7/(4π ε0 )/m5 (x7[t]-x5[t]))/Sqrt[((x7[t]-x5[t])^2+(y7[t]-y5[t])^2+(z7[t]-z5[t])^2)^3]+
  447. (-q5*q8/(4π ε0 )/m5 (x8[t]-x5[t]))/Sqrt[((x8[t]-x5[t])^2+(y8[t]-y5[t])^2+(z8[t]-z5[t])^2)^3]+
  448. (-q5*q9/(4π ε0 )/m5 (x9[t]-x5[t]))/Sqrt[((x9[t]-x5[t])^2+(y9[t]-y5[t])^2+(z9[t]-z5[t])^2)^3]+
  449. (-q5*q0/(4π ε0 )/m5 (x0[t]-x5[t]))/Sqrt[((x0[t]-x5[t])^2+(y0[t]-y5[t])^2+(z0[t]-z5[t])^2)^3]],
  450.  
  451. vy5'[t] ==
  452. (G m1 (y1[t]-y5[t]))/Sqrt[((x1[t]-x5[t])^2+(y1[t]-y5[t])^2+(z1[t]-z5[t])^2)^3]+
  453. (G m2 (y2[t]-y5[t]))/Sqrt[((x2[t]-x5[t])^2+(y2[t]-y5[t])^2+(z2[t]-z5[t])^2)^3]+
  454. (G m3 (y3[t]-y5[t]))/Sqrt[((x3[t]-x5[t])^2+(y3[t]-y5[t])^2+(z3[t]-z5[t])^2)^3]+
  455. (G m4 (y4[t]-y5[t]))/Sqrt[((x4[t]-x5[t])^2+(y4[t]-y5[t])^2+(z4[t]-z5[t])^2)^3]+
  456. (G m6 (y6[t]-y5[t]))/Sqrt[((x6[t]-x5[t])^2+(y6[t]-y5[t])^2+(z6[t]-z5[t])^2)^3]+
  457. (G m7 (y7[t]-y5[t]))/Sqrt[((x7[t]-x5[t])^2+(y7[t]-y5[t])^2+(z7[t]-z5[t])^2)^3]+
  458. (G m8 (y8[t]-y5[t]))/Sqrt[((x8[t]-x5[t])^2+(y8[t]-y5[t])^2+(z8[t]-z5[t])^2)^3]+
  459. (G m9 (y9[t]-y5[t]))/Sqrt[((x9[t]-x5[t])^2+(y9[t]-y5[t])^2+(z9[t]-z5[t])^2)^3]+
  460. (G m0 (y0[t]-y5[t]))/Sqrt[((x0[t]-x5[t])^2+(y0[t]-y5[t])^2+(z0[t]-z5[t])^2)^3]+
  461. If[q5 == 0, 0,
  462. (-q5*q1/(4π ε0 )/m5 (y1[t]-y5[t]))/Sqrt[((x1[t]-x5[t])^2+(y1[t]-y5[t])^2+(z1[t]-z5[t])^2)^3]+
  463. (-q5*q2/(4π ε0 )/m5 (y2[t]-y5[t]))/Sqrt[((x2[t]-x5[t])^2+(y2[t]-y5[t])^2+(z2[t]-z5[t])^2)^3]+
  464. (-q5*q3/(4π ε0 )/m5 (y3[t]-y5[t]))/Sqrt[((x3[t]-x5[t])^2+(y3[t]-y5[t])^2+(z3[t]-z5[t])^2)^3]+
  465. (-q5*q4/(4π ε0 )/m5 (y4[t]-y5[t]))/Sqrt[((x4[t]-x5[t])^2+(y4[t]-y5[t])^2+(z4[t]-z5[t])^2)^3]+
  466. (-q5*q6/(4π ε0 )/m5 (y6[t]-y5[t]))/Sqrt[((x6[t]-x5[t])^2+(y6[t]-y5[t])^2+(z6[t]-z5[t])^2)^3]+
  467. (-q5*q7/(4π ε0 )/m5 (y7[t]-y5[t]))/Sqrt[((x7[t]-x5[t])^2+(y7[t]-y5[t])^2+(z7[t]-z5[t])^2)^3]+
  468. (-q5*q8/(4π ε0 )/m5 (y8[t]-y5[t]))/Sqrt[((x8[t]-x5[t])^2+(y8[t]-y5[t])^2+(z8[t]-z5[t])^2)^3]+
  469. (-q5*q9/(4π ε0 )/m5 (y9[t]-y5[t]))/Sqrt[((x9[t]-x5[t])^2+(y9[t]-y5[t])^2+(z9[t]-z5[t])^2)^3]+
  470. (-q5*q0/(4π ε0 )/m5 (y0[t]-y5[t]))/Sqrt[((x0[t]-x5[t])^2+(y0[t]-y5[t])^2+(z0[t]-z5[t])^2)^3]],
  471.  
  472. vz5'[t] ==
  473. (G m1 (z1[t]-z5[t]))/Sqrt[((x1[t]-x5[t])^2+(y1[t]-y5[t])^2+(z1[t]-z5[t])^2)^3]+
  474. (G m2 (z2[t]-z5[t]))/Sqrt[((x2[t]-x5[t])^2+(y2[t]-y5[t])^2+(z2[t]-z5[t])^2)^3]+
  475. (G m3 (z3[t]-z5[t]))/Sqrt[((x3[t]-x5[t])^2+(y3[t]-y5[t])^2+(z3[t]-z5[t])^2)^3]+
  476. (G m4 (z4[t]-z5[t]))/Sqrt[((x4[t]-x5[t])^2+(y4[t]-y5[t])^2+(z4[t]-z5[t])^2)^3]+
  477. (G m6 (z6[t]-z5[t]))/Sqrt[((x6[t]-x5[t])^2+(y6[t]-y5[t])^2+(z6[t]-z5[t])^2)^3]+
  478. (G m7 (z7[t]-z5[t]))/Sqrt[((x7[t]-x5[t])^2+(y7[t]-y5[t])^2+(z7[t]-z5[t])^2)^3]+
  479. (G m8 (z8[t]-z5[t]))/Sqrt[((x8[t]-x5[t])^2+(y8[t]-y5[t])^2+(z8[t]-z5[t])^2)^3]+
  480. (G m9 (z9[t]-z5[t]))/Sqrt[((x9[t]-x5[t])^2+(y9[t]-y5[t])^2+(z9[t]-z5[t])^2)^3]+
  481. (G m0 (z0[t]-z5[t]))/Sqrt[((x0[t]-x5[t])^2+(y0[t]-y5[t])^2+(z0[t]-z5[t])^2)^3]+
  482. If[q5 == 0, 0,
  483. (-q5*q1/(4π ε0 )/m5 (z1[t]-z5[t]))/Sqrt[((x1[t]-x5[t])^2+(y1[t]-y5[t])^2+(z1[t]-z5[t])^2)^3]+
  484. (-q5*q2/(4π ε0 )/m5 (z2[t]-z5[t]))/Sqrt[((x2[t]-x5[t])^2+(y2[t]-y5[t])^2+(z2[t]-z5[t])^2)^3]+
  485. (-q5*q3/(4π ε0 )/m5 (z3[t]-z5[t]))/Sqrt[((x3[t]-x5[t])^2+(y3[t]-y5[t])^2+(z3[t]-z5[t])^2)^3]+
  486. (-q5*q4/(4π ε0 )/m5 (z4[t]-z5[t]))/Sqrt[((x4[t]-x5[t])^2+(y4[t]-y5[t])^2+(z4[t]-z5[t])^2)^3]+
  487. (-q5*q6/(4π ε0 )/m5 (z6[t]-z5[t]))/Sqrt[((x6[t]-x5[t])^2+(y6[t]-y5[t])^2+(z6[t]-z5[t])^2)^3]+
  488. (-q5*q7/(4π ε0 )/m5 (z7[t]-z5[t]))/Sqrt[((x7[t]-x5[t])^2+(y7[t]-y5[t])^2+(z7[t]-z5[t])^2)^3]+
  489. (-q5*q8/(4π ε0 )/m5 (z8[t]-z5[t]))/Sqrt[((x8[t]-x5[t])^2+(y8[t]-y5[t])^2+(z8[t]-z5[t])^2)^3]+
  490. (-q5*q9/(4π ε0 )/m5 (z9[t]-z5[t]))/Sqrt[((x9[t]-x5[t])^2+(y9[t]-y5[t])^2+(z9[t]-z5[t])^2)^3]+
  491. (-q5*q0/(4π ε0 )/m5 (z0[t]-z5[t]))/Sqrt[((x0[t]-x5[t])^2+(y0[t]-y5[t])^2+(z0[t]-z5[t])^2)^3]],
  492.  
  493. vx6'[t] ==
  494. (G m1 (x1[t]-x6[t]))/Sqrt[((x1[t]-x6[t])^2+(y1[t]-y6[t])^2+(z1[t]-z6[t])^2)^3]+
  495. (G m2 (x2[t]-x6[t]))/Sqrt[((x2[t]-x6[t])^2+(y2[t]-y6[t])^2+(z2[t]-z6[t])^2)^3]+
  496. (G m3 (x3[t]-x6[t]))/Sqrt[((x3[t]-x6[t])^2+(y3[t]-y6[t])^2+(z3[t]-z6[t])^2)^3]+
  497. (G m4 (x4[t]-x6[t]))/Sqrt[((x4[t]-x6[t])^2+(y4[t]-y6[t])^2+(z4[t]-z6[t])^2)^3]+
  498. (G m5 (x5[t]-x6[t]))/Sqrt[((x5[t]-x6[t])^2+(y5[t]-y6[t])^2+(z5[t]-z6[t])^2)^3]+
  499. (G m7 (x7[t]-x6[t]))/Sqrt[((x7[t]-x6[t])^2+(y7[t]-y6[t])^2+(z7[t]-z6[t])^2)^3]+
  500. (G m8 (x8[t]-x6[t]))/Sqrt[((x8[t]-x6[t])^2+(y8[t]-y6[t])^2+(z8[t]-z6[t])^2)^3]+
  501. (G m9 (x9[t]-x6[t]))/Sqrt[((x9[t]-x6[t])^2+(y9[t]-y6[t])^2+(z9[t]-z6[t])^2)^3]+
  502. (G m0 (x0[t]-x6[t]))/Sqrt[((x0[t]-x6[t])^2+(y0[t]-y6[t])^2+(z0[t]-z6[t])^2)^3]+
  503. If[q6 == 0, 0,
  504. (-q6*q1/(4π ε0 )/m6 (x1[t]-x6[t]))/Sqrt[((x1[t]-x6[t])^2+(y1[t]-y6[t])^2+(z1[t]-z6[t])^2)^3]+
  505. (-q6*q2/(4π ε0 )/m6 (x2[t]-x6[t]))/Sqrt[((x2[t]-x6[t])^2+(y2[t]-y6[t])^2+(z2[t]-z6[t])^2)^3]+
  506. (-q6*q3/(4π ε0 )/m6 (x3[t]-x6[t]))/Sqrt[((x3[t]-x6[t])^2+(y3[t]-y6[t])^2+(z3[t]-z6[t])^2)^3]+
  507. (-q6*q4/(4π ε0 )/m6 (x4[t]-x6[t]))/Sqrt[((x4[t]-x6[t])^2+(y4[t]-y6[t])^2+(z4[t]-z6[t])^2)^3]+
  508. (-q6*q5/(4π ε0 )/m6 (x5[t]-x6[t]))/Sqrt[((x5[t]-x6[t])^2+(y5[t]-y6[t])^2+(z5[t]-z6[t])^2)^3]+
  509. (-q6*q7/(4π ε0 )/m6 (x7[t]-x6[t]))/Sqrt[((x7[t]-x6[t])^2+(y7[t]-y6[t])^2+(z7[t]-z6[t])^2)^3]+
  510. (-q6*q8/(4π ε0 )/m6 (x8[t]-x6[t]))/Sqrt[((x8[t]-x6[t])^2+(y8[t]-y6[t])^2+(z8[t]-z6[t])^2)^3]+
  511. (-q6*q9/(4π ε0 )/m6 (x9[t]-x6[t]))/Sqrt[((x9[t]-x6[t])^2+(y9[t]-y6[t])^2+(z9[t]-z6[t])^2)^3]+
  512. (-q6*q0/(4π ε0 )/m6 (x0[t]-x6[t]))/Sqrt[((x0[t]-x6[t])^2+(y0[t]-y6[t])^2+(z0[t]-z6[t])^2)^3]],
  513.  
  514. vy6'[t] ==
  515. (G m1 (y1[t]-y6[t]))/Sqrt[((x1[t]-x6[t])^2+(y1[t]-y6[t])^2+(z1[t]-z6[t])^2)^3]+
  516. (G m2 (y2[t]-y6[t]))/Sqrt[((x2[t]-x6[t])^2+(y2[t]-y6[t])^2+(z2[t]-z6[t])^2)^3]+
  517. (G m3 (y3[t]-y6[t]))/Sqrt[((x3[t]-x6[t])^2+(y3[t]-y6[t])^2+(z3[t]-z6[t])^2)^3]+
  518. (G m4 (y4[t]-y6[t]))/Sqrt[((x4[t]-x6[t])^2+(y4[t]-y6[t])^2+(z4[t]-z6[t])^2)^3]+
  519. (G m5 (y5[t]-y6[t]))/Sqrt[((x5[t]-x6[t])^2+(y5[t]-y6[t])^2+(z5[t]-z6[t])^2)^3]+
  520. (G m7 (y7[t]-y6[t]))/Sqrt[((x7[t]-x6[t])^2+(y7[t]-y6[t])^2+(z7[t]-z6[t])^2)^3]+
  521. (G m8 (y8[t]-y6[t]))/Sqrt[((x8[t]-x6[t])^2+(y8[t]-y6[t])^2+(z8[t]-z6[t])^2)^3]+
  522. (G m9 (y9[t]-y6[t]))/Sqrt[((x9[t]-x6[t])^2+(y9[t]-y6[t])^2+(z9[t]-z6[t])^2)^3]+
  523. (G m0 (y0[t]-y6[t]))/Sqrt[((x0[t]-x6[t])^2+(y0[t]-y6[t])^2+(z0[t]-z6[t])^2)^3]+
  524. If[q6 == 0, 0,
  525. (-q6*q1/(4π ε0 )/m6 (y1[t]-y6[t]))/Sqrt[((x1[t]-x6[t])^2+(y1[t]-y6[t])^2+(z1[t]-z6[t])^2)^3]+
  526. (-q6*q2/(4π ε0 )/m6 (y2[t]-y6[t]))/Sqrt[((x2[t]-x6[t])^2+(y2[t]-y6[t])^2+(z2[t]-z6[t])^2)^3]+
  527. (-q6*q3/(4π ε0 )/m6 (y3[t]-y6[t]))/Sqrt[((x3[t]-x6[t])^2+(y3[t]-y6[t])^2+(z3[t]-z6[t])^2)^3]+
  528. (-q6*q4/(4π ε0 )/m6 (y4[t]-y6[t]))/Sqrt[((x4[t]-x6[t])^2+(y4[t]-y6[t])^2+(z4[t]-z6[t])^2)^3]+
  529. (-q6*q5/(4π ε0 )/m6 (y5[t]-y6[t]))/Sqrt[((x5[t]-x6[t])^2+(y5[t]-y6[t])^2+(z5[t]-z6[t])^2)^3]+
  530. (-q6*q7/(4π ε0 )/m6 (y7[t]-y6[t]))/Sqrt[((x7[t]-x6[t])^2+(y7[t]-y6[t])^2+(z7[t]-z6[t])^2)^3]+
  531. (-q6*q8/(4π ε0 )/m6 (y8[t]-y6[t]))/Sqrt[((x8[t]-x6[t])^2+(y8[t]-y6[t])^2+(z8[t]-z6[t])^2)^3]+
  532. (-q6*q9/(4π ε0 )/m6 (y9[t]-y6[t]))/Sqrt[((x9[t]-x6[t])^2+(y9[t]-y6[t])^2+(z9[t]-z6[t])^2)^3]+
  533. (-q6*q0/(4π ε0 )/m6 (y0[t]-y6[t]))/Sqrt[((x0[t]-x6[t])^2+(y0[t]-y6[t])^2+(z0[t]-z6[t])^2)^3]],
  534.  
  535. vz6'[t] ==
  536. (G m1 (z1[t]-z6[t]))/Sqrt[((x1[t]-x6[t])^2+(y1[t]-y6[t])^2+(z1[t]-z6[t])^2)^3]+
  537. (G m2 (z2[t]-z6[t]))/Sqrt[((x2[t]-x6[t])^2+(y2[t]-y6[t])^2+(z2[t]-z6[t])^2)^3]+
  538. (G m3 (z3[t]-z6[t]))/Sqrt[((x3[t]-x6[t])^2+(y3[t]-y6[t])^2+(z3[t]-z6[t])^2)^3]+
  539. (G m4 (z4[t]-z6[t]))/Sqrt[((x4[t]-x6[t])^2+(y4[t]-y6[t])^2+(z4[t]-z6[t])^2)^3]+
  540. (G m5 (z5[t]-z6[t]))/Sqrt[((x5[t]-x6[t])^2+(y5[t]-y6[t])^2+(z5[t]-z6[t])^2)^3]+
  541. (G m7 (z7[t]-z6[t]))/Sqrt[((x7[t]-x6[t])^2+(y7[t]-y6[t])^2+(z7[t]-z6[t])^2)^3]+
  542. (G m8 (z8[t]-z6[t]))/Sqrt[((x8[t]-x6[t])^2+(y8[t]-y6[t])^2+(z8[t]-z6[t])^2)^3]+
  543. (G m9 (z9[t]-z6[t]))/Sqrt[((x9[t]-x6[t])^2+(y9[t]-y6[t])^2+(z9[t]-z6[t])^2)^3]+
  544. (G m0 (z0[t]-z6[t]))/Sqrt[((x0[t]-x6[t])^2+(y0[t]-y6[t])^2+(z0[t]-z6[t])^2)^3]+
  545. If[q6 == 0, 0,
  546. (-q6*q1/(4π ε0 )/m6 (z1[t]-z6[t]))/Sqrt[((x1[t]-x6[t])^2+(y1[t]-y6[t])^2+(z1[t]-z6[t])^2)^3]+
  547. (-q6*q2/(4π ε0 )/m6 (z2[t]-z6[t]))/Sqrt[((x2[t]-x6[t])^2+(y2[t]-y6[t])^2+(z2[t]-z6[t])^2)^3]+
  548. (-q6*q3/(4π ε0 )/m6 (z3[t]-z6[t]))/Sqrt[((x3[t]-x6[t])^2+(y3[t]-y6[t])^2+(z3[t]-z6[t])^2)^3]+
  549. (-q6*q4/(4π ε0 )/m6 (z4[t]-z6[t]))/Sqrt[((x4[t]-x6[t])^2+(y4[t]-y6[t])^2+(z4[t]-z6[t])^2)^3]+
  550. (-q6*q5/(4π ε0 )/m6 (z5[t]-z6[t]))/Sqrt[((x5[t]-x6[t])^2+(y5[t]-y6[t])^2+(z5[t]-z6[t])^2)^3]+
  551. (-q6*q7/(4π ε0 )/m6 (z7[t]-z6[t]))/Sqrt[((x7[t]-x6[t])^2+(y7[t]-y6[t])^2+(z7[t]-z6[t])^2)^3]+
  552. (-q6*q8/(4π ε0 )/m6 (z8[t]-z6[t]))/Sqrt[((x8[t]-x6[t])^2+(y8[t]-y6[t])^2+(z8[t]-z6[t])^2)^3]+
  553. (-q6*q9/(4π ε0 )/m6 (z9[t]-z6[t]))/Sqrt[((x9[t]-x6[t])^2+(y9[t]-y6[t])^2+(z9[t]-z6[t])^2)^3]+
  554. (-q6*q0/(4π ε0 )/m6 (z0[t]-z6[t]))/Sqrt[((x0[t]-x6[t])^2+(y0[t]-y6[t])^2+(z0[t]-z6[t])^2)^3]],
  555.  
  556. vx7'[t] ==
  557. (G m1 (x1[t]-x7[t]))/Sqrt[((x1[t]-x7[t])^2+(y1[t]-y7[t])^2+(z1[t]-z7[t])^2)^3]+
  558. (G m2 (x2[t]-x7[t]))/Sqrt[((x2[t]-x7[t])^2+(y2[t]-y7[t])^2+(z2[t]-z7[t])^2)^3]+
  559. (G m3 (x3[t]-x7[t]))/Sqrt[((x3[t]-x7[t])^2+(y3[t]-y7[t])^2+(z3[t]-z7[t])^2)^3]+
  560. (G m4 (x4[t]-x7[t]))/Sqrt[((x4[t]-x7[t])^2+(y4[t]-y7[t])^2+(z4[t]-z7[t])^2)^3]+
  561. (G m5 (x5[t]-x7[t]))/Sqrt[((x5[t]-x7[t])^2+(y5[t]-y7[t])^2+(z5[t]-z7[t])^2)^3]+
  562. (G m6 (x6[t]-x7[t]))/Sqrt[((x6[t]-x7[t])^2+(y6[t]-y7[t])^2+(z6[t]-z7[t])^2)^3]+
  563. (G m8 (x8[t]-x7[t]))/Sqrt[((x8[t]-x7[t])^2+(y8[t]-y7[t])^2+(z8[t]-z7[t])^2)^3]+
  564. (G m9 (x9[t]-x7[t]))/Sqrt[((x9[t]-x7[t])^2+(y9[t]-y7[t])^2+(z9[t]-z7[t])^2)^3]+
  565. (G m0 (x0[t]-x7[t]))/Sqrt[((x0[t]-x7[t])^2+(y0[t]-y7[t])^2+(z0[t]-z7[t])^2)^3]+
  566. If[q7 == 0, 0,
  567. (-q7*q1/(4π ε0 )/m7 (x1[t]-x7[t]))/Sqrt[((x1[t]-x7[t])^2+(y1[t]-y7[t])^2+(z1[t]-z7[t])^2)^3]+
  568. (-q7*q2/(4π ε0 )/m7 (x2[t]-x7[t]))/Sqrt[((x2[t]-x7[t])^2+(y2[t]-y7[t])^2+(z2[t]-z7[t])^2)^3]+
  569. (-q7*q3/(4π ε0 )/m7 (x3[t]-x7[t]))/Sqrt[((x3[t]-x7[t])^2+(y3[t]-y7[t])^2+(z3[t]-z7[t])^2)^3]+
  570. (-q7*q4/(4π ε0 )/m7 (x4[t]-x7[t]))/Sqrt[((x4[t]-x7[t])^2+(y4[t]-y7[t])^2+(z4[t]-z7[t])^2)^3]+
  571. (-q7*q5/(4π ε0 )/m7 (x5[t]-x7[t]))/Sqrt[((x5[t]-x7[t])^2+(y5[t]-y7[t])^2+(z5[t]-z7[t])^2)^3]+
  572. (-q7*q6/(4π ε0 )/m7 (x6[t]-x7[t]))/Sqrt[((x6[t]-x7[t])^2+(y6[t]-y7[t])^2+(z6[t]-z7[t])^2)^3]+
  573. (-q7*q8/(4π ε0 )/m7 (x8[t]-x7[t]))/Sqrt[((x8[t]-x7[t])^2+(y8[t]-y7[t])^2+(z8[t]-z7[t])^2)^3]+
  574. (-q7*q9/(4π ε0 )/m7 (x9[t]-x7[t]))/Sqrt[((x9[t]-x7[t])^2+(y9[t]-y7[t])^2+(z9[t]-z7[t])^2)^3]+
  575. (-q7*q0/(4π ε0 )/m7 (x0[t]-x7[t]))/Sqrt[((x0[t]-x7[t])^2+(y0[t]-y7[t])^2+(z0[t]-z7[t])^2)^3]],
  576.  
  577. vy7'[t] ==
  578. (G m1 (y1[t]-y7[t]))/Sqrt[((x1[t]-x7[t])^2+(y1[t]-y7[t])^2+(z1[t]-z7[t])^2)^3]+
  579. (G m2 (y2[t]-y7[t]))/Sqrt[((x2[t]-x7[t])^2+(y2[t]-y7[t])^2+(z2[t]-z7[t])^2)^3]+
  580. (G m3 (y3[t]-y7[t]))/Sqrt[((x3[t]-x7[t])^2+(y3[t]-y7[t])^2+(z3[t]-z7[t])^2)^3]+
  581. (G m4 (y4[t]-y7[t]))/Sqrt[((x4[t]-x7[t])^2+(y4[t]-y7[t])^2+(z4[t]-z7[t])^2)^3]+
  582. (G m5 (y5[t]-y7[t]))/Sqrt[((x5[t]-x7[t])^2+(y5[t]-y7[t])^2+(z5[t]-z7[t])^2)^3]+
  583. (G m6 (y6[t]-y7[t]))/Sqrt[((x6[t]-x7[t])^2+(y6[t]-y7[t])^2+(z6[t]-z7[t])^2)^3]+
  584. (G m8 (y8[t]-y7[t]))/Sqrt[((x8[t]-x7[t])^2+(y8[t]-y7[t])^2+(z8[t]-z7[t])^2)^3]+
  585. (G m9 (y9[t]-y7[t]))/Sqrt[((x9[t]-x7[t])^2+(y9[t]-y7[t])^2+(z9[t]-z7[t])^2)^3]+
  586. (G m0 (y0[t]-y7[t]))/Sqrt[((x0[t]-x7[t])^2+(y0[t]-y7[t])^2+(z0[t]-z7[t])^2)^3]+
  587. If[q7 == 0, 0,
  588. (-q7*q1/(4π ε0 )/m7 (y1[t]-y7[t]))/Sqrt[((x1[t]-x7[t])^2+(y1[t]-y7[t])^2+(z1[t]-z7[t])^2)^3]+
  589. (-q7*q2/(4π ε0 )/m7 (y2[t]-y7[t]))/Sqrt[((x2[t]-x7[t])^2+(y2[t]-y7[t])^2+(z2[t]-z7[t])^2)^3]+
  590. (-q7*q3/(4π ε0 )/m7 (y3[t]-y7[t]))/Sqrt[((x3[t]-x7[t])^2+(y3[t]-y7[t])^2+(z3[t]-z7[t])^2)^3]+
  591. (-q7*q4/(4π ε0 )/m7 (y4[t]-y7[t]))/Sqrt[((x4[t]-x7[t])^2+(y4[t]-y7[t])^2+(z4[t]-z7[t])^2)^3]+
  592. (-q7*q5/(4π ε0 )/m7 (y5[t]-y7[t]))/Sqrt[((x5[t]-x7[t])^2+(y5[t]-y7[t])^2+(z5[t]-z7[t])^2)^3]+
  593. (-q7*q6/(4π ε0 )/m7 (y6[t]-y7[t]))/Sqrt[((x6[t]-x7[t])^2+(y6[t]-y7[t])^2+(z6[t]-z7[t])^2)^3]+
  594. (-q7*q8/(4π ε0 )/m7 (y8[t]-y7[t]))/Sqrt[((x8[t]-x7[t])^2+(y8[t]-y7[t])^2+(z8[t]-z7[t])^2)^3]+
  595. (-q7*q9/(4π ε0 )/m7 (y9[t]-y7[t]))/Sqrt[((x9[t]-x7[t])^2+(y9[t]-y7[t])^2+(z9[t]-z7[t])^2)^3]+
  596. (-q7*q0/(4π ε0 )/m7 (y0[t]-y7[t]))/Sqrt[((x0[t]-x7[t])^2+(y0[t]-y7[t])^2+(z0[t]-z7[t])^2)^3]],
  597.  
  598. vz7'[t] ==
  599. (G m1 (z1[t]-z7[t]))/Sqrt[((x1[t]-x7[t])^2+(y1[t]-y7[t])^2+(z1[t]-z7[t])^2)^3]+
  600. (G m2 (z2[t]-z7[t]))/Sqrt[((x2[t]-x7[t])^2+(y2[t]-y7[t])^2+(z2[t]-z7[t])^2)^3]+
  601. (G m3 (z3[t]-z7[t]))/Sqrt[((x3[t]-x7[t])^2+(y3[t]-y7[t])^2+(z3[t]-z7[t])^2)^3]+
  602. (G m4 (z4[t]-z7[t]))/Sqrt[((x4[t]-x7[t])^2+(y4[t]-y7[t])^2+(z4[t]-z7[t])^2)^3]+
  603. (G m5 (z5[t]-z7[t]))/Sqrt[((x5[t]-x7[t])^2+(y5[t]-y7[t])^2+(z5[t]-z7[t])^2)^3]+
  604. (G m6 (z6[t]-z7[t]))/Sqrt[((x6[t]-x7[t])^2+(y6[t]-y7[t])^2+(z6[t]-z7[t])^2)^3]+
  605. (G m8 (z8[t]-z7[t]))/Sqrt[((x8[t]-x7[t])^2+(y8[t]-y7[t])^2+(z8[t]-z7[t])^2)^3]+
  606. (G m9 (z9[t]-z7[t]))/Sqrt[((x9[t]-x7[t])^2+(y9[t]-y7[t])^2+(z9[t]-z7[t])^2)^3]+
  607. (G m0 (z0[t]-z7[t]))/Sqrt[((x0[t]-x7[t])^2+(y0[t]-y7[t])^2+(z0[t]-z7[t])^2)^3]+
  608. If[q7 == 0, 0,
  609. (-q7*q1/(4π ε0 )/m7 (z1[t]-z7[t]))/Sqrt[((x1[t]-x7[t])^2+(y1[t]-y7[t])^2+(z1[t]-z7[t])^2)^3]+
  610. (-q7*q2/(4π ε0 )/m7 (z2[t]-z7[t]))/Sqrt[((x2[t]-x7[t])^2+(y2[t]-y7[t])^2+(z2[t]-z7[t])^2)^3]+
  611. (-q7*q3/(4π ε0 )/m7 (z3[t]-z7[t]))/Sqrt[((x3[t]-x7[t])^2+(y3[t]-y7[t])^2+(z3[t]-z7[t])^2)^3]+
  612. (-q7*q4/(4π ε0 )/m7 (z4[t]-z7[t]))/Sqrt[((x4[t]-x7[t])^2+(y4[t]-y7[t])^2+(z4[t]-z7[t])^2)^3]+
  613. (-q7*q5/(4π ε0 )/m7 (z5[t]-z7[t]))/Sqrt[((x5[t]-x7[t])^2+(y5[t]-y7[t])^2+(z5[t]-z7[t])^2)^3]+
  614. (-q7*q6/(4π ε0 )/m7 (z6[t]-z7[t]))/Sqrt[((x6[t]-x7[t])^2+(y6[t]-y7[t])^2+(z6[t]-z7[t])^2)^3]+
  615. (-q7*q8/(4π ε0 )/m7 (z8[t]-z7[t]))/Sqrt[((x8[t]-x7[t])^2+(y8[t]-y7[t])^2+(z8[t]-z7[t])^2)^3]+
  616. (-q7*q9/(4π ε0 )/m7 (z9[t]-z7[t]))/Sqrt[((x9[t]-x7[t])^2+(y9[t]-y7[t])^2+(z9[t]-z7[t])^2)^3]+
  617. (-q7*q0/(4π ε0 )/m7 (z0[t]-z7[t]))/Sqrt[((x0[t]-x7[t])^2+(y0[t]-y7[t])^2+(z0[t]-z7[t])^2)^3]],
  618.  
  619. vx8'[t] ==
  620. (G m1 (x1[t]-x8[t]))/Sqrt[((x1[t]-x8[t])^2+(y1[t]-y8[t])^2+(z1[t]-z8[t])^2)^3]+
  621. (G m2 (x2[t]-x8[t]))/Sqrt[((x2[t]-x8[t])^2+(y2[t]-y8[t])^2+(z2[t]-z8[t])^2)^3]+
  622. (G m3 (x3[t]-x8[t]))/Sqrt[((x3[t]-x8[t])^2+(y3[t]-y8[t])^2+(z3[t]-z8[t])^2)^3]+
  623. (G m4 (x4[t]-x8[t]))/Sqrt[((x4[t]-x8[t])^2+(y4[t]-y8[t])^2+(z4[t]-z8[t])^2)^3]+
  624. (G m5 (x5[t]-x8[t]))/Sqrt[((x5[t]-x8[t])^2+(y5[t]-y8[t])^2+(z5[t]-z8[t])^2)^3]+
  625. (G m6 (x6[t]-x8[t]))/Sqrt[((x6[t]-x8[t])^2+(y6[t]-y8[t])^2+(z6[t]-z8[t])^2)^3]+
  626. (G m7 (x7[t]-x8[t]))/Sqrt[((x7[t]-x8[t])^2+(y7[t]-y8[t])^2+(z7[t]-z8[t])^2)^3]+
  627. (G m9 (x9[t]-x8[t]))/Sqrt[((x9[t]-x8[t])^2+(y9[t]-y8[t])^2+(z9[t]-z8[t])^2)^3]+
  628. (G m0 (x0[t]-x8[t]))/Sqrt[((x0[t]-x8[t])^2+(y0[t]-y8[t])^2+(z0[t]-z8[t])^2)^3]+
  629. If[q8 == 0, 0,
  630. (-q8*q1/(4π ε0 )/m8 (x1[t]-x8[t]))/Sqrt[((x1[t]-x8[t])^2+(y1[t]-y8[t])^2+(z1[t]-z8[t])^2)^3]+
  631. (-q8*q2/(4π ε0 )/m8 (x2[t]-x8[t]))/Sqrt[((x2[t]-x8[t])^2+(y2[t]-y8[t])^2+(z2[t]-z8[t])^2)^3]+
  632. (-q8*q3/(4π ε0 )/m8 (x3[t]-x8[t]))/Sqrt[((x3[t]-x8[t])^2+(y3[t]-y8[t])^2+(z3[t]-z8[t])^2)^3]+
  633. (-q8*q4/(4π ε0 )/m8 (x4[t]-x8[t]))/Sqrt[((x4[t]-x8[t])^2+(y4[t]-y8[t])^2+(z4[t]-z8[t])^2)^3]+
  634. (-q8*q5/(4π ε0 )/m8 (x5[t]-x8[t]))/Sqrt[((x5[t]-x8[t])^2+(y5[t]-y8[t])^2+(z5[t]-z8[t])^2)^3]+
  635. (-q8*q6/(4π ε0 )/m8 (x6[t]-x8[t]))/Sqrt[((x6[t]-x8[t])^2+(y6[t]-y8[t])^2+(z6[t]-z8[t])^2)^3]+
  636. (-q8*q7/(4π ε0 )/m8 (x7[t]-x8[t]))/Sqrt[((x7[t]-x8[t])^2+(y7[t]-y8[t])^2+(z7[t]-z8[t])^2)^3]+
  637. (-q8*q9/(4π ε0 )/m8 (x9[t]-x8[t]))/Sqrt[((x9[t]-x8[t])^2+(y9[t]-y8[t])^2+(z9[t]-z8[t])^2)^3]+
  638. (-q8*q0/(4π ε0 )/m8 (x0[t]-x8[t]))/Sqrt[((x0[t]-x8[t])^2+(y0[t]-y8[t])^2+(z0[t]-z8[t])^2)^3]],
  639.  
  640. vy8'[t] ==
  641. (G m1 (y1[t]-y8[t]))/Sqrt[((x1[t]-x8[t])^2+(y1[t]-y8[t])^2+(z1[t]-z8[t])^2)^3]+
  642. (G m2 (y2[t]-y8[t]))/Sqrt[((x2[t]-x8[t])^2+(y2[t]-y8[t])^2+(z2[t]-z8[t])^2)^3]+
  643. (G m3 (y3[t]-y8[t]))/Sqrt[((x3[t]-x8[t])^2+(y3[t]-y8[t])^2+(z3[t]-z8[t])^2)^3]+
  644. (G m4 (y4[t]-y8[t]))/Sqrt[((x4[t]-x8[t])^2+(y4[t]-y8[t])^2+(z4[t]-z8[t])^2)^3]+
  645. (G m5 (y5[t]-y8[t]))/Sqrt[((x5[t]-x8[t])^2+(y5[t]-y8[t])^2+(z5[t]-z8[t])^2)^3]+
  646. (G m6 (y6[t]-y8[t]))/Sqrt[((x6[t]-x8[t])^2+(y6[t]-y8[t])^2+(z6[t]-z8[t])^2)^3]+
  647. (G m7 (y7[t]-y8[t]))/Sqrt[((x7[t]-x8[t])^2+(y7[t]-y8[t])^2+(z7[t]-z8[t])^2)^3]+
  648. (G m9 (y9[t]-y8[t]))/Sqrt[((x9[t]-x8[t])^2+(y9[t]-y8[t])^2+(z9[t]-z8[t])^2)^3]+
  649. (G m0 (y0[t]-y8[t]))/Sqrt[((x0[t]-x8[t])^2+(y0[t]-y8[t])^2+(z0[t]-z8[t])^2)^3]+
  650. If[q8 == 0, 0,
  651. (-q8*q1/(4π ε0 )/m8 (y1[t]-y8[t]))/Sqrt[((x1[t]-x8[t])^2+(y1[t]-y8[t])^2+(z1[t]-z8[t])^2)^3]+
  652. (-q8*q2/(4π ε0 )/m8 (y2[t]-y8[t]))/Sqrt[((x2[t]-x8[t])^2+(y2[t]-y8[t])^2+(z2[t]-z8[t])^2)^3]+
  653. (-q8*q3/(4π ε0 )/m8 (y3[t]-y8[t]))/Sqrt[((x3[t]-x8[t])^2+(y3[t]-y8[t])^2+(z3[t]-z8[t])^2)^3]+
  654. (-q8*q4/(4π ε0 )/m8 (y4[t]-y8[t]))/Sqrt[((x4[t]-x8[t])^2+(y4[t]-y8[t])^2+(z4[t]-z8[t])^2)^3]+
  655. (-q8*q5/(4π ε0 )/m8 (y5[t]-y8[t]))/Sqrt[((x5[t]-x8[t])^2+(y5[t]-y8[t])^2+(z5[t]-z8[t])^2)^3]+
  656. (-q8*q6/(4π ε0 )/m8 (y6[t]-y8[t]))/Sqrt[((x6[t]-x8[t])^2+(y6[t]-y8[t])^2+(z6[t]-z8[t])^2)^3]+
  657. (-q8*q7/(4π ε0 )/m8 (y7[t]-y8[t]))/Sqrt[((x7[t]-x8[t])^2+(y7[t]-y8[t])^2+(z7[t]-z8[t])^2)^3]+
  658. (-q8*q9/(4π ε0 )/m8 (y9[t]-y8[t]))/Sqrt[((x9[t]-x8[t])^2+(y9[t]-y8[t])^2+(z9[t]-z8[t])^2)^3]+
  659. (-q8*q0/(4π ε0 )/m8 (y0[t]-y8[t]))/Sqrt[((x0[t]-x8[t])^2+(y0[t]-y8[t])^2+(z0[t]-z8[t])^2)^3]],
  660.  
  661. vz8'[t] ==
  662. (G m1 (z1[t]-z8[t]))/Sqrt[((x1[t]-x8[t])^2+(y1[t]-y8[t])^2+(z1[t]-z8[t])^2)^3]+
  663. (G m2 (z2[t]-z8[t]))/Sqrt[((x2[t]-x8[t])^2+(y2[t]-y8[t])^2+(z2[t]-z8[t])^2)^3]+
  664. (G m3 (z3[t]-z8[t]))/Sqrt[((x3[t]-x8[t])^2+(y3[t]-y8[t])^2+(z3[t]-z8[t])^2)^3]+
  665. (G m4 (z4[t]-z8[t]))/Sqrt[((x4[t]-x8[t])^2+(y4[t]-y8[t])^2+(z4[t]-z8[t])^2)^3]+
  666. (G m5 (z5[t]-z8[t]))/Sqrt[((x5[t]-x8[t])^2+(y5[t]-y8[t])^2+(z5[t]-z8[t])^2)^3]+
  667. (G m6 (z6[t]-z8[t]))/Sqrt[((x6[t]-x8[t])^2+(y6[t]-y8[t])^2+(z6[t]-z8[t])^2)^3]+
  668. (G m7 (z7[t]-z8[t]))/Sqrt[((x7[t]-x8[t])^2+(y7[t]-y8[t])^2+(z7[t]-z8[t])^2)^3]+
  669. (G m9 (z9[t]-z8[t]))/Sqrt[((x9[t]-x8[t])^2+(y9[t]-y8[t])^2+(z9[t]-z8[t])^2)^3]+
  670. (G m0 (z0[t]-z8[t]))/Sqrt[((x0[t]-x8[t])^2+(y0[t]-y8[t])^2+(z0[t]-z8[t])^2)^3]+
  671. If[q8 == 0, 0,
  672. (-q8*q1/(4π ε0 )/m8 (z1[t]-z8[t]))/Sqrt[((x1[t]-x8[t])^2+(y1[t]-y8[t])^2+(z1[t]-z8[t])^2)^3]+
  673. (-q8*q2/(4π ε0 )/m8 (z2[t]-z8[t]))/Sqrt[((x2[t]-x8[t])^2+(y2[t]-y8[t])^2+(z2[t]-z8[t])^2)^3]+
  674. (-q8*q3/(4π ε0 )/m8 (z3[t]-z8[t]))/Sqrt[((x3[t]-x8[t])^2+(y3[t]-y8[t])^2+(z3[t]-z8[t])^2)^3]+
  675. (-q8*q4/(4π ε0 )/m8 (z4[t]-z8[t]))/Sqrt[((x4[t]-x8[t])^2+(y4[t]-y8[t])^2+(z4[t]-z8[t])^2)^3]+
  676. (-q8*q5/(4π ε0 )/m8 (z5[t]-z8[t]))/Sqrt[((x5[t]-x8[t])^2+(y5[t]-y8[t])^2+(z5[t]-z8[t])^2)^3]+
  677. (-q8*q6/(4π ε0 )/m8 (z6[t]-z8[t]))/Sqrt[((x6[t]-x8[t])^2+(y6[t]-y8[t])^2+(z6[t]-z8[t])^2)^3]+
  678. (-q8*q7/(4π ε0 )/m8 (z7[t]-z8[t]))/Sqrt[((x7[t]-x8[t])^2+(y7[t]-y8[t])^2+(z7[t]-z8[t])^2)^3]+
  679. (-q8*q9/(4π ε0 )/m8 (z9[t]-z8[t]))/Sqrt[((x9[t]-x8[t])^2+(y9[t]-y8[t])^2+(z9[t]-z8[t])^2)^3]+
  680. (-q8*q0/(4π ε0 )/m8 (z0[t]-z8[t]))/Sqrt[((x0[t]-x8[t])^2+(y0[t]-y8[t])^2+(z0[t]-z8[t])^2)^3]],
  681.  
  682. vx9'[t] ==
  683. (G m1 (x1[t]-x9[t]))/Sqrt[((x1[t]-x9[t])^2+(y1[t]-y9[t])^2+(z1[t]-z9[t])^2)^3]+
  684. (G m2 (x2[t]-x9[t]))/Sqrt[((x2[t]-x9[t])^2+(y2[t]-y9[t])^2+(z2[t]-z9[t])^2)^3]+
  685. (G m3 (x3[t]-x9[t]))/Sqrt[((x3[t]-x9[t])^2+(y3[t]-y9[t])^2+(z3[t]-z9[t])^2)^3]+
  686. (G m4 (x4[t]-x9[t]))/Sqrt[((x4[t]-x9[t])^2+(y4[t]-y9[t])^2+(z4[t]-z9[t])^2)^3]+
  687. (G m5 (x5[t]-x9[t]))/Sqrt[((x5[t]-x9[t])^2+(y5[t]-y9[t])^2+(z5[t]-z9[t])^2)^3]+
  688. (G m6 (x6[t]-x9[t]))/Sqrt[((x6[t]-x9[t])^2+(y6[t]-y9[t])^2+(z6[t]-z9[t])^2)^3]+
  689. (G m7 (x7[t]-x9[t]))/Sqrt[((x7[t]-x9[t])^2+(y7[t]-y9[t])^2+(z7[t]-z9[t])^2)^3]+
  690. (G m8 (x8[t]-x9[t]))/Sqrt[((x8[t]-x9[t])^2+(y8[t]-y9[t])^2+(z8[t]-z9[t])^2)^3]+
  691. (G m0 (x0[t]-x9[t]))/Sqrt[((x0[t]-x9[t])^2+(y0[t]-y9[t])^2+(z0[t]-z9[t])^2)^3]+
  692. If[q9 == 0, 0,
  693. (-q9*q1/(4π ε0 )/m9 (x1[t]-x9[t]))/Sqrt[((x1[t]-x9[t])^2+(y1[t]-y9[t])^2+(z1[t]-z9[t])^2)^3]+
  694. (-q9*q2/(4π ε0 )/m9 (x2[t]-x9[t]))/Sqrt[((x2[t]-x9[t])^2+(y2[t]-y9[t])^2+(z2[t]-z9[t])^2)^3]+
  695. (-q9*q3/(4π ε0 )/m9 (x3[t]-x9[t]))/Sqrt[((x3[t]-x9[t])^2+(y3[t]-y9[t])^2+(z3[t]-z9[t])^2)^3]+
  696. (-q9*q4/(4π ε0 )/m9 (x4[t]-x9[t]))/Sqrt[((x4[t]-x9[t])^2+(y4[t]-y9[t])^2+(z4[t]-z9[t])^2)^3]+
  697. (-q9*q5/(4π ε0 )/m9 (x5[t]-x9[t]))/Sqrt[((x5[t]-x9[t])^2+(y5[t]-y9[t])^2+(z5[t]-z9[t])^2)^3]+
  698. (-q9*q6/(4π ε0 )/m9 (x6[t]-x9[t]))/Sqrt[((x6[t]-x9[t])^2+(y6[t]-y9[t])^2+(z6[t]-z9[t])^2)^3]+
  699. (-q9*q7/(4π ε0 )/m9 (x7[t]-x9[t]))/Sqrt[((x7[t]-x9[t])^2+(y7[t]-y9[t])^2+(z7[t]-z9[t])^2)^3]+
  700. (-q9*q8/(4π ε0 )/m9 (x8[t]-x9[t]))/Sqrt[((x8[t]-x9[t])^2+(y8[t]-y9[t])^2+(z8[t]-z9[t])^2)^3]+
  701. (-q9*q0/(4π ε0 )/m9 (x0[t]-x9[t]))/Sqrt[((x0[t]-x9[t])^2+(y0[t]-y9[t])^2+(z0[t]-z9[t])^2)^3]],
  702.  
  703. vy9'[t] ==
  704. (G m1 (y1[t]-y9[t]))/Sqrt[((x1[t]-x9[t])^2+(y1[t]-y9[t])^2+(z1[t]-z9[t])^2)^3]+
  705. (G m2 (y2[t]-y9[t]))/Sqrt[((x2[t]-x9[t])^2+(y2[t]-y9[t])^2+(z2[t]-z9[t])^2)^3]+
  706. (G m3 (y3[t]-y9[t]))/Sqrt[((x3[t]-x9[t])^2+(y3[t]-y9[t])^2+(z3[t]-z9[t])^2)^3]+
  707. (G m4 (y4[t]-y9[t]))/Sqrt[((x4[t]-x9[t])^2+(y4[t]-y9[t])^2+(z4[t]-z9[t])^2)^3]+
  708. (G m5 (y5[t]-y9[t]))/Sqrt[((x5[t]-x9[t])^2+(y5[t]-y9[t])^2+(z5[t]-z9[t])^2)^3]+
  709. (G m6 (y6[t]-y9[t]))/Sqrt[((x6[t]-x9[t])^2+(y6[t]-y9[t])^2+(z6[t]-z9[t])^2)^3]+
  710. (G m7 (y7[t]-y9[t]))/Sqrt[((x7[t]-x9[t])^2+(y7[t]-y9[t])^2+(z7[t]-z9[t])^2)^3]+
  711. (G m8 (y8[t]-y9[t]))/Sqrt[((x8[t]-x9[t])^2+(y8[t]-y9[t])^2+(z8[t]-z9[t])^2)^3]+
  712. (G m0 (y0[t]-y9[t]))/Sqrt[((x0[t]-x9[t])^2+(y0[t]-y9[t])^2+(z0[t]-z9[t])^2)^3]+
  713. If[q9 == 0, 0,
  714. (-q9*q1/(4π ε0 )/m9 (y1[t]-y9[t]))/Sqrt[((x1[t]-x9[t])^2+(y1[t]-y9[t])^2+(z1[t]-z9[t])^2)^3]+
  715. (-q9*q2/(4π ε0 )/m9 (y2[t]-y9[t]))/Sqrt[((x2[t]-x9[t])^2+(y2[t]-y9[t])^2+(z2[t]-z9[t])^2)^3]+
  716. (-q9*q3/(4π ε0 )/m9 (y3[t]-y9[t]))/Sqrt[((x3[t]-x9[t])^2+(y3[t]-y9[t])^2+(z3[t]-z9[t])^2)^3]+
  717. (-q9*q4/(4π ε0 )/m9 (y4[t]-y9[t]))/Sqrt[((x4[t]-x9[t])^2+(y4[t]-y9[t])^2+(z4[t]-z9[t])^2)^3]+
  718. (-q9*q5/(4π ε0 )/m9 (y5[t]-y9[t]))/Sqrt[((x5[t]-x9[t])^2+(y5[t]-y9[t])^2+(z5[t]-z9[t])^2)^3]+
  719. (-q9*q6/(4π ε0 )/m9 (y6[t]-y9[t]))/Sqrt[((x6[t]-x9[t])^2+(y6[t]-y9[t])^2+(z6[t]-z9[t])^2)^3]+
  720. (-q9*q7/(4π ε0 )/m9 (y7[t]-y9[t]))/Sqrt[((x7[t]-x9[t])^2+(y7[t]-y9[t])^2+(z7[t]-z9[t])^2)^3]+
  721. (-q9*q8/(4π ε0 )/m9 (y8[t]-y9[t]))/Sqrt[((x8[t]-x9[t])^2+(y8[t]-y9[t])^2+(z8[t]-z9[t])^2)^3]+
  722. (-q9*q0/(4π ε0 )/m9 (y0[t]-y9[t]))/Sqrt[((x0[t]-x9[t])^2+(y0[t]-y9[t])^2+(z0[t]-z9[t])^2)^3]],
  723.  
  724. vz9'[t] ==
  725. (G m1 (z1[t]-z9[t]))/Sqrt[((x1[t]-x9[t])^2+(y1[t]-y9[t])^2+(z1[t]-z9[t])^2)^3]+
  726. (G m2 (z2[t]-z9[t]))/Sqrt[((x2[t]-x9[t])^2+(y2[t]-y9[t])^2+(z2[t]-z9[t])^2)^3]+
  727. (G m3 (z3[t]-z9[t]))/Sqrt[((x3[t]-x9[t])^2+(y3[t]-y9[t])^2+(z3[t]-z9[t])^2)^3]+
  728. (G m4 (z4[t]-z9[t]))/Sqrt[((x4[t]-x9[t])^2+(y4[t]-y9[t])^2+(z4[t]-z9[t])^2)^3]+
  729. (G m5 (z5[t]-z9[t]))/Sqrt[((x5[t]-x9[t])^2+(y5[t]-y9[t])^2+(z5[t]-z9[t])^2)^3]+
  730. (G m6 (z6[t]-z9[t]))/Sqrt[((x6[t]-x9[t])^2+(y6[t]-y9[t])^2+(z6[t]-z9[t])^2)^3]+
  731. (G m7 (z7[t]-z9[t]))/Sqrt[((x7[t]-x9[t])^2+(y7[t]-y9[t])^2+(z7[t]-z9[t])^2)^3]+
  732. (G m8 (z8[t]-z9[t]))/Sqrt[((x8[t]-x9[t])^2+(y8[t]-y9[t])^2+(z8[t]-z9[t])^2)^3]+
  733. (G m0 (z0[t]-z9[t]))/Sqrt[((x0[t]-x9[t])^2+(y0[t]-y9[t])^2+(z0[t]-z9[t])^2)^3]+
  734. If[q9 == 0, 0,
  735. (-q9*q1/(4π ε0 )/m9 (z1[t]-z9[t]))/Sqrt[((x1[t]-x9[t])^2+(y1[t]-y9[t])^2+(z1[t]-z9[t])^2)^3]+
  736. (-q9*q2/(4π ε0 )/m9 (z2[t]-z9[t]))/Sqrt[((x2[t]-x9[t])^2+(y2[t]-y9[t])^2+(z2[t]-z9[t])^2)^3]+
  737. (-q9*q3/(4π ε0 )/m9 (z3[t]-z9[t]))/Sqrt[((x3[t]-x9[t])^2+(y3[t]-y9[t])^2+(z3[t]-z9[t])^2)^3]+
  738. (-q9*q4/(4π ε0 )/m9 (z4[t]-z9[t]))/Sqrt[((x4[t]-x9[t])^2+(y4[t]-y9[t])^2+(z4[t]-z9[t])^2)^3]+
  739. (-q9*q5/(4π ε0 )/m9 (z5[t]-z9[t]))/Sqrt[((x5[t]-x9[t])^2+(y5[t]-y9[t])^2+(z5[t]-z9[t])^2)^3]+
  740. (-q9*q6/(4π ε0 )/m9 (z6[t]-z9[t]))/Sqrt[((x6[t]-x9[t])^2+(y6[t]-y9[t])^2+(z6[t]-z9[t])^2)^3]+
  741. (-q9*q7/(4π ε0 )/m9 (z7[t]-z9[t]))/Sqrt[((x7[t]-x9[t])^2+(y7[t]-y9[t])^2+(z7[t]-z9[t])^2)^3]+
  742. (-q9*q8/(4π ε0 )/m9 (z8[t]-z9[t]))/Sqrt[((x8[t]-x9[t])^2+(y8[t]-y9[t])^2+(z8[t]-z9[t])^2)^3]+
  743. (-q9*q0/(4π ε0 )/m9 (z0[t]-z9[t]))/Sqrt[((x0[t]-x9[t])^2+(y0[t]-y9[t])^2+(z0[t]-z9[t])^2)^3]],
  744.  
  745. vx0'[t] ==
  746. (G m1 (x1[t]-x0[t]))/Sqrt[((x1[t]-x0[t])^2+(y1[t]-y0[t])^2+(z1[t]-z0[t])^2)^3]+
  747. (G m2 (x2[t]-x0[t]))/Sqrt[((x2[t]-x0[t])^2+(y2[t]-y0[t])^2+(z2[t]-z0[t])^2)^3]+
  748. (G m3 (x3[t]-x0[t]))/Sqrt[((x3[t]-x0[t])^2+(y3[t]-y0[t])^2+(z3[t]-z0[t])^2)^3]+
  749. (G m4 (x4[t]-x0[t]))/Sqrt[((x4[t]-x0[t])^2+(y4[t]-y0[t])^2+(z4[t]-z0[t])^2)^3]+
  750. (G m5 (x5[t]-x0[t]))/Sqrt[((x5[t]-x0[t])^2+(y5[t]-y0[t])^2+(z5[t]-z0[t])^2)^3]+
  751. (G m6 (x6[t]-x0[t]))/Sqrt[((x6[t]-x0[t])^2+(y6[t]-y0[t])^2+(z6[t]-z0[t])^2)^3]+
  752. (G m7 (x7[t]-x0[t]))/Sqrt[((x7[t]-x0[t])^2+(y7[t]-y0[t])^2+(z7[t]-z0[t])^2)^3]+
  753. (G m8 (x8[t]-x0[t]))/Sqrt[((x8[t]-x0[t])^2+(y8[t]-y0[t])^2+(z8[t]-z0[t])^2)^3]+
  754. (G m9 (x9[t]-x0[t]))/Sqrt[((x9[t]-x0[t])^2+(y9[t]-y0[t])^2+(z9[t]-z0[t])^2)^3]+
  755. If[q0 == 0, 0,
  756. (-q0*q1/(4π ε0 )/m0 (x1[t]-x0[t]))/Sqrt[((x1[t]-x0[t])^2+(y1[t]-y0[t])^2+(z1[t]-z0[t])^2)^3]+
  757. (-q0*q2/(4π ε0 )/m0 (x2[t]-x0[t]))/Sqrt[((x2[t]-x0[t])^2+(y2[t]-y0[t])^2+(z2[t]-z0[t])^2)^3]+
  758. (-q0*q3/(4π ε0 )/m0 (x3[t]-x0[t]))/Sqrt[((x3[t]-x0[t])^2+(y3[t]-y0[t])^2+(z3[t]-z0[t])^2)^3]+
  759. (-q0*q4/(4π ε0 )/m0 (x4[t]-x0[t]))/Sqrt[((x4[t]-x0[t])^2+(y4[t]-y0[t])^2+(z4[t]-z0[t])^2)^3]+
  760. (-q0*q5/(4π ε0 )/m0 (x5[t]-x0[t]))/Sqrt[((x5[t]-x0[t])^2+(y5[t]-y0[t])^2+(z5[t]-z0[t])^2)^3]+
  761. (-q0*q6/(4π ε0 )/m0 (x6[t]-x0[t]))/Sqrt[((x6[t]-x0[t])^2+(y6[t]-y0[t])^2+(z6[t]-z0[t])^2)^3]+
  762. (-q0*q7/(4π ε0 )/m0 (x7[t]-x0[t]))/Sqrt[((x7[t]-x0[t])^2+(y7[t]-y0[t])^2+(z7[t]-z0[t])^2)^3]+
  763. (-q0*q8/(4π ε0 )/m0 (x8[t]-x0[t]))/Sqrt[((x8[t]-x0[t])^2+(y8[t]-y0[t])^2+(z8[t]-z0[t])^2)^3]+
  764. (-q0*q9/(4π ε0 )/m0 (x9[t]-x0[t]))/Sqrt[((x9[t]-x0[t])^2+(y9[t]-y0[t])^2+(z9[t]-z0[t])^2)^3]],
  765.  
  766. vy0'[t] ==
  767. (G m1 (y1[t]-y0[t]))/Sqrt[((x1[t]-x0[t])^2+(y1[t]-y0[t])^2+(z1[t]-z0[t])^2)^3]+
  768. (G m2 (y2[t]-y0[t]))/Sqrt[((x2[t]-x0[t])^2+(y2[t]-y0[t])^2+(z2[t]-z0[t])^2)^3]+
  769. (G m3 (y3[t]-y0[t]))/Sqrt[((x3[t]-x0[t])^2+(y3[t]-y0[t])^2+(z3[t]-z0[t])^2)^3]+
  770. (G m4 (y4[t]-y0[t]))/Sqrt[((x4[t]-x0[t])^2+(y4[t]-y0[t])^2+(z4[t]-z0[t])^2)^3]+
  771. (G m5 (y5[t]-y0[t]))/Sqrt[((x5[t]-x0[t])^2+(y5[t]-y0[t])^2+(z5[t]-z0[t])^2)^3]+
  772. (G m6 (y6[t]-y0[t]))/Sqrt[((x6[t]-x0[t])^2+(y6[t]-y0[t])^2+(z6[t]-z0[t])^2)^3]+
  773. (G m7 (y7[t]-y0[t]))/Sqrt[((x7[t]-x0[t])^2+(y7[t]-y0[t])^2+(z7[t]-z0[t])^2)^3]+
  774. (G m8 (y8[t]-y0[t]))/Sqrt[((x8[t]-x0[t])^2+(y8[t]-y0[t])^2+(z8[t]-z0[t])^2)^3]+
  775. (G m9 (y9[t]-y0[t]))/Sqrt[((x9[t]-x0[t])^2+(y9[t]-y0[t])^2+(z9[t]-z0[t])^2)^3]+
  776. If[q0 == 0, 0,
  777. (-q0*q1/(4π ε0 )/m0 (y1[t]-y0[t]))/Sqrt[((x1[t]-x0[t])^2+(y1[t]-y0[t])^2+(z1[t]-z0[t])^2)^3]+
  778. (-q0*q2/(4π ε0 )/m0 (y2[t]-y0[t]))/Sqrt[((x2[t]-x0[t])^2+(y2[t]-y0[t])^2+(z2[t]-z0[t])^2)^3]+
  779. (-q0*q3/(4π ε0 )/m0 (y3[t]-y0[t]))/Sqrt[((x3[t]-x0[t])^2+(y3[t]-y0[t])^2+(z3[t]-z0[t])^2)^3]+
  780. (-q0*q4/(4π ε0 )/m0 (y4[t]-y0[t]))/Sqrt[((x4[t]-x0[t])^2+(y4[t]-y0[t])^2+(z4[t]-z0[t])^2)^3]+
  781. (-q0*q5/(4π ε0 )/m0 (y5[t]-y0[t]))/Sqrt[((x5[t]-x0[t])^2+(y5[t]-y0[t])^2+(z5[t]-z0[t])^2)^3]+
  782. (-q0*q6/(4π ε0 )/m0 (y6[t]-y0[t]))/Sqrt[((x6[t]-x0[t])^2+(y6[t]-y0[t])^2+(z6[t]-z0[t])^2)^3]+
  783. (-q0*q7/(4π ε0 )/m0 (y7[t]-y0[t]))/Sqrt[((x7[t]-x0[t])^2+(y7[t]-y0[t])^2+(z7[t]-z0[t])^2)^3]+
  784. (-q0*q8/(4π ε0 )/m0 (y8[t]-y0[t]))/Sqrt[((x8[t]-x0[t])^2+(y8[t]-y0[t])^2+(z8[t]-z0[t])^2)^3]+
  785. (-q0*q9/(4π ε0 )/m0 (y9[t]-y0[t]))/Sqrt[((x9[t]-x0[t])^2+(y9[t]-y0[t])^2+(z9[t]-z0[t])^2)^3]],
  786.  
  787. vz0'[t] ==
  788. (G m1 (z1[t]-z0[t]))/Sqrt[((x1[t]-x0[t])^2+(y1[t]-y0[t])^2+(z1[t]-z0[t])^2)^3]+
  789. (G m2 (z2[t]-z0[t]))/Sqrt[((x2[t]-x0[t])^2+(y2[t]-y0[t])^2+(z2[t]-z0[t])^2)^3]+
  790. (G m3 (z3[t]-z0[t]))/Sqrt[((x3[t]-x0[t])^2+(y3[t]-y0[t])^2+(z3[t]-z0[t])^2)^3]+
  791. (G m4 (z4[t]-z0[t]))/Sqrt[((x4[t]-x0[t])^2+(y4[t]-y0[t])^2+(z4[t]-z0[t])^2)^3]+
  792. (G m5 (z5[t]-z0[t]))/Sqrt[((x5[t]-x0[t])^2+(y5[t]-y0[t])^2+(z5[t]-z0[t])^2)^3]+
  793. (G m6 (z6[t]-z0[t]))/Sqrt[((x6[t]-x0[t])^2+(y6[t]-y0[t])^2+(z6[t]-z0[t])^2)^3]+
  794. (G m7 (z7[t]-z0[t]))/Sqrt[((x7[t]-x0[t])^2+(y7[t]-y0[t])^2+(z7[t]-z0[t])^2)^3]+
  795. (G m8 (z8[t]-z0[t]))/Sqrt[((x8[t]-x0[t])^2+(y8[t]-y0[t])^2+(z8[t]-z0[t])^2)^3]+
  796. (G m9 (z9[t]-z0[t]))/Sqrt[((x9[t]-x0[t])^2+(y9[t]-y0[t])^2+(z9[t]-z0[t])^2)^3]+
  797. If[q0 == 0, 0,
  798. (-q0*q1/(4π ε0 )/m0 (z1[t]-z0[t]))/Sqrt[((x1[t]-x0[t])^2+(y1[t]-y0[t])^2+(z1[t]-z0[t])^2)^3]+
  799. (-q0*q2/(4π ε0 )/m0 (z2[t]-z0[t]))/Sqrt[((x2[t]-x0[t])^2+(y2[t]-y0[t])^2+(z2[t]-z0[t])^2)^3]+
  800. (-q0*q3/(4π ε0 )/m0 (z3[t]-z0[t]))/Sqrt[((x3[t]-x0[t])^2+(y3[t]-y0[t])^2+(z3[t]-z0[t])^2)^3]+
  801. (-q0*q4/(4π ε0 )/m0 (z4[t]-z0[t]))/Sqrt[((x4[t]-x0[t])^2+(y4[t]-y0[t])^2+(z4[t]-z0[t])^2)^3]+
  802. (-q0*q5/(4π ε0 )/m0 (z5[t]-z0[t]))/Sqrt[((x5[t]-x0[t])^2+(y5[t]-y0[t])^2+(z5[t]-z0[t])^2)^3]+
  803. (-q0*q6/(4π ε0 )/m0 (z6[t]-z0[t]))/Sqrt[((x6[t]-x0[t])^2+(y6[t]-y0[t])^2+(z6[t]-z0[t])^2)^3]+
  804. (-q0*q7/(4π ε0 )/m0 (z7[t]-z0[t]))/Sqrt[((x7[t]-x0[t])^2+(y7[t]-y0[t])^2+(z7[t]-z0[t])^2)^3]+
  805. (-q0*q8/(4π ε0 )/m0 (z8[t]-z0[t]))/Sqrt[((x8[t]-x0[t])^2+(y8[t]-y0[t])^2+(z8[t]-z0[t])^2)^3]+
  806. (-q0*q9/(4π ε0 )/m0 (z9[t]-z0[t]))/Sqrt[((x9[t]-x0[t])^2+(y9[t]-y0[t])^2+(z9[t]-z0[t])^2)^3]],
  807.  
  808. x1[0] == x1x, y1[0] == y1y, z1[0] == z1z,
  809. x2[0] == x2x, y2[0] == y2y, z2[0] == z2z,
  810. x3[0] == x3x, y3[0] == y3y, z3[0] == z3z,
  811. x4[0] == x4x, y4[0] == y4y, z4[0] == z4z,
  812. x5[0] == x5x, y5[0] == y5y, z5[0] == z5z,
  813. x6[0] == x6x, y6[0] == y6y, z6[0] == z6z,
  814. x7[0] == x7x, y7[0] == y7y, z7[0] == z7z,
  815. x8[0] == x8x, y8[0] == y8y, z8[0] == z8z,
  816. x9[0] == x9x, y9[0] == y9y, z9[0] == z9z,
  817. x0[0] == x0x, y0[0] == y0y, z0[0] == z0z,
  818.  
  819. vx1[0] == v1x, vy1[0] == v1y, vz1[0] == v1z,
  820. vx2[0] == v2x, vy2[0] == v2y, vz2[0] == v2z,
  821. vx3[0] == v3x, vy3[0] == v3y, vz3[0] == v3z,
  822. vx4[0] == v4x, vy4[0] == v4y, vz4[0] == v4z,
  823. vx5[0] == v5x, vy5[0] == v5y, vz5[0] == v5z,
  824. vx6[0] == v6x, vy6[0] == v6y, vz6[0] == v6z,
  825. vx7[0] == v7x, vy7[0] == v7y, vz7[0] == v7z,
  826. vx8[0] == v8x, vy8[0] == v8y, vz8[0] == v8z,
  827. vx9[0] == v9x, vy9[0] == v9y, vz9[0] == v9z,
  828. vx0[0] == v0x, vy0[0] == v0y, vz0[0] == v0z},
  829.  
  830. {x1, x2, x3, x4, x5, x6, x7, x8, x9, x0, y1, y2, y3, y4, y5, y6, y7, y8, y9, y0, z1, z2, z3, z4, z5, z6, z7, z8, z9, z0,
  831. vx1, vx2, vx3, vx4, vx5, vx6, vx7, vx8, vx9, vx0, vy1, vy2, vy3, vy4, vy5, vy6, vy7, vy8, vy9, vy0, vz1, vz2, vz3, vz4, vz5, vz6, vz7, vz8, vz9, vz0},
  832.  
  833. {t, 0, T0},
  834.  
  835. WorkingPrecision-> wp,
  836. MaxSteps-> Infinity,
  837. Method-> mta,
  838. InterpolationOrder-> All,
  839. StepMonitor :> (laststep=plunge; plunge=t;
  840. stepsize=plunge-laststep;), Method->{"EventLocator",
  841. "Event" :> (If[stepsize<1*^-4, 0, 1])}];
  842.  
  843. (* Position, Geschwindigkeit *)
  844.  
  845. f2p[t_]={{x1[t], y1[t], z1[t]}, {x2[t], y2[t], z2[t]}, {x3[t], y3[t], z3[t]}, {x4[t], y4[t], z4[t]}, {x5[t], y5[t], z5[t]}, {x6[t], y6[t], z6[t]}, {x7[t], y7[t], z7[t]}, {x8[t], y8[t], z8[t]}, {x9[t], y9[t], z9[t]}, {x0[t], y0[t], z0[t]}}/.nds[[1]];
  846. f2v[t_]={{vx1[t], vy1[t], vz1[t]}, {vx2[t], vy2[t], vz2[t]}, {vx3[t], vy3[t], vz3[t]}, {vx4[t], vy4[t], vz4[t]}, {vx5[t], vy5[t], vz5[t]}, {vx6[t], vy6[t], vz6[t]}, {vx7[t], vy7[t], vz7[t]}, {vx8[t], vy8[t], vz8[t]}, {vx9[t], vy9[t], vz9[t]}, {vx0[t], vy0[t], vz0[t]}}/.nds[[1]];
  847. swp[t_]=(m1 Evaluate[f2p[t][[1]]]+m2 Evaluate[f2p[t][[2]]]+m3 Evaluate[f2p[t][[3]]]+m4 Evaluate[f2p[t][[4]]]+m5 Evaluate[f2p[t][[5]]]+m6 Evaluate[f2p[t][[6]]]+m7 Evaluate[f2p[t][[7]]]+m8 Evaluate[f2p[t][[8]]]+m9 Evaluate[f2p[t][[9]]]+m0 Evaluate[f2p[t][[10]]])/(m1+m2+m3+m4+m5+m6+m7+m8+m9+m0);
  848.  
  849. (* Merkurjahr *)
  850.  
  851. ym = 87969/1000 dy;
  852.  
  853. (* Funktionen *)
  854.  
  855. w[n_, t_] := ArcTan[f2p[t][[n, 1]]-f2p[t][[1, 1]], f2p[t][[n, 2]]-f2p[t][[1, 2]]]
  856. r[n_, t_] := Norm[f2p[t][[n]]-f2p[t][[1]]]
  857. μ[n_, t_] := Quiet[τ/.FindMinimum[r[n, τ], {τ, t}][[2]]]
  858.  
  859. t1 = Quiet[μ[2, T1]]; "t1" -> t1/yr "yr"
  860. t2 = Quiet[μ[2, T2]]; "t2" -> t2/yr "yr"
  861. Δt = t2-t1; "Δt" -> Δt/yr "yr"
  862.  
  863. (* neutonischer Shift *)
  864.  
  865. Δα = (w[2, t2]-w[2, t1]);
  866. ΔΑ = Δα*3600*180/π/Δt*100 yr;
  867. "Δα" -> ΔΑ "arcsec per century"
  868.  
  869. (* große Halbachse, Exzentrizität, Umlaufperiode *)
  870.  
  871. a  = 0.387099273 Au;
  872. e  = 0.205635934;
  873. Δt = ym;
  874.  
  875. (* gravitoelektrischer Shift *)
  876.  
  877. Δβ = (24 π^3 a^2)/(Δt^2 c^2 (1-e^2));
  878. ΔΒ = Δβ*3600*180/π/Δt*100yr;
  879. "Δβ" -> ΔΒ "arcsec per century"
  880.  
  881. (* Gesamter Shift *)
  882.  
  883. "Δφ" -> (ΔΑ+ΔΒ) "arcsec per century"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top