© 2001 by CRC Press LLC
Out[1] = {{X1 -> InterpolatingFunction[{0., 25.}, <>],
X2 -> InterpolatingFunction[{0., 25.}, <>]}}
In[1] shows that NDSolve has three arguments: the first argument defines the
two ordinary differential equations and the initial conditions, the second argument
lists the dependent variables, and the third argument specifies the independent
variable and the range of investigation. Id is a name selected for easy later reference
of the results generated. Out[1] indicates that interpolation functions have been
generated for X1 and X2 for t in the range from 0 to 25. To print the values of X1
and X2, Id can be referred to interpolate the needs as follows:
In[2]: = (Do[Print["t =", tv," X1 =", X1[tv]/. Id, " X2 =", X2[tv]/. Id],
{tv, 0, 25, 1}])
Out[2] = t = 0 X1 = {0.} X2 = {0.}
t = 1 X1 = {0.13827} X2 = {0.183528}
t = 2 X1 = {0.267432} X2 = {0.0629972}
t = 3 X1 = {0.280915} X2 = {–0.0193286}
t = 4 X1 = {0.256722} X2 = {–0.0206924}
t = 5 X1 = {0.245409} X2 = {–0.00278874}
t = 6 X1 = {0.246925} X2 = {0.00365961}
t = 7 X1 = {0.249969} X2 = {0.00187841}
t = 8 X1 = {0.250675} X2 = {–0.000172054}
t = 9 X1 = {0.250238} X2 = {–0.000477574}
t = 10 X1 = {0.249931} X2 = {–0.000125015}
t = 11 X1 = {0.249923} X2 = {0.0000639464}
t = 12 X1 = {0.24999} X2 = {0.0000489215}
t = 13 X1 = {0.250014} X2 = {4.83211 10–7}
t = 14 X1 = {0.250006} X2 = {–0.0000104109}
t = 15 X1 = {0.249999} X2 = {–3.5685 10–6}
t = 16 X1 = {0.249998} X2 = {1.38473 10–6}
t = 17 X1 = {0.25} X2 = {1.35708 10–6}
t = 18 X1 = {0.25} X2 = {1.39173 10–7}
t = 19 X1 = {0.25} X2 = {–4.40766 10–7}
t = 20 X1 = {0.25} X2 = {–4.61875 10–7}
t = 21 X1 = {0.25} X2 = {–1.93084 10–8}
t = 22 X1 = {0.25} X2 = {2.47763 10–8}
t = 23 X1 = {0.25} X2 = {9.81364 10–8}
t = 24 X1 = {0.25} X2 = {6.7364 10–8}
t = 25 X1 = {0.25} X2 = {3.57288 10–8}