Mathematica Why Isn't My Mathematica Version 4 Code Working in Version 5?

  • Thread starter Thread starter waldy73
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
The discussion centers on issues encountered when running Mathematica code originally designed for version 4 in version 5. The user reports that the code, which involves defining forces, positions, and solving differential equations, generates an error message indicating that the boundary conditions lead to an empty solution. Suggestions include seeking assistance from a specialized forum for Mathematica users, where experienced members may provide effective solutions. The conversation highlights the challenges of code compatibility across software versions and the importance of community support in troubleshooting complex mathematical programming issues.
waldy73
Messages
1
Reaction score
0
This mathematica code works for version 4 but i can't get it to work in version 5. Does anybody have any sugestions.

F = {Fx, Fy, Fz};
r = {x[t], y[t], z[t]};
EF = {Ex, Ey, Ez};
BF = {Bx, By, Bz};
v = D[r, t]

F = q EF + q Cross[v, BF]

eq1 = F - m D[r, {t, 2}] == 0 // Thread;
eq1 // ColumnForm

initial = {
x[0] == 0, x'[0] == 0,
y[0] == 0, y'[0] == 0,
z[0] == 0, z'[0] == 0};

fields = Thread /@ {BF -> {0, 0, m ω0/
q}, EF -> {E0 Cos[ω t], 0, 0}} // Flatten

eqs = Join[eq1, initial] /. fields

dsol = DSolve[eqs, {x[t], y[t], z[t]}, t] // Flatten // FullSimplify
when i do this last part i get this message

DSolve::bvnul: "For some branches of the general solution, the given boundary \
conditions lead to an empty solution.

Thanks!
 
Physics news on Phys.org

Similar threads

Replies
1
Views
2K
Replies
5
Views
2K
Replies
10
Views
2K
Replies
2
Views
3K
Replies
3
Views
2K
Replies
3
Views
2K
Back
Top