List of system of differiential equations in mathematica

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 3K views
kalish
Messages
27
Reaction score
0
Hello, I have a system of DE involving two variables depending on the parameter t. To solve it I need to specify x(0),y(0),x'(0),y'(0). I know how to solve it with NDSolve, (analytical solution doesn't work), and I want to make a list of different solutions with different initial conditions. I tried to use Table, but it refuses to compute and states :

"\!\(\*
StyleBox[\"Argument\", \"MT\"]\)\!\(\*
StyleBox[\" \", \"MT\"]\)\!\(\*
StyleBox[\"\"\", \"MT\"]\)(y^\[Prime]\[Prime])[t]-(0.1 x[t])/(10^3 \
(Power[<<2>>]+<<1>>))+(0.001 (x^\[Prime])[t])/(10^3 \
Sqrt[Power[<<2>>]+Power[<<2>>]])==0 at position 2 does not have the \
correct form for an iterator.

I just want to have thousands of solutions in one formula, how can I do that?

Thanks.
 
Physics news on Phys.org
Without seeing your code it is very hard to be certain, but often the message "at position 2 does not have the correct form for an iterator" means that your

Table[StuffToCalculate,{i,1,20}]
or
Table[StuffToCalculate,{20}]
is either missing the {} or something similar to this.

If this doesn't give you the clue to find the problem then post your code in a nice readable form that someone could execute and someone can probably point out the problem in a moment.