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

  • Context: Mathematica 
  • Thread starter Thread starter waldy73
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary
SUMMARY

The Mathematica code provided works in version 4 but fails in version 5, specifically during the execution of the DSolve function. The error message "DSolve::bvnul" indicates that the boundary conditions lead to an empty solution. Users are advised to check the compatibility of the syntax and functions between versions, particularly focusing on how boundary conditions are handled in Mathematica 5 compared to version 4.

PREREQUISITES
  • Familiarity with Mathematica programming language
  • Understanding of differential equations and boundary conditions
  • Knowledge of vector calculus and cross products
  • Experience with the DSolve function in Mathematica
NEXT STEPS
  • Review Mathematica 5 documentation for changes in DSolve behavior
  • Investigate boundary condition syntax differences between Mathematica versions
  • Explore alternative methods for solving differential equations in Mathematica
  • Join the comp.soft-sys.math.mathematica forum for community support and solutions
USEFUL FOR

Mathematica users, physicists, and engineers working with differential equations who need to transition code from version 4 to version 5.

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 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
7
Views
3K