example 15.12

2
CVODE NEQ 2 /* number of equa NOUT 15 /* number of output ti RTOL 1.00E-06 /* scalar relative tolerance T0 0 /* initial time T1 0.00005 /* first output time TMULT 10 /* output time factor initial y components vector absolute tolerance c Y1 4 ATOL1 1.00E-18 Y2 6 ATOL2 1.00E-18 Results y1 y2 5.0000E-05 3.9999E+00 6.0001E+00 5.0000E-04 3.9990E+00 6.0009E+00 5.0000E-03 3.9900E+00 6.0090E+00 5.0000E-02 3.9012E+00 6.0896E+00 5.0000E-01 3.1152E+00 6.8577E+00 5.0000E+00 3.2834E-01 1.1415E+01 5.0000E+01 5.5563E-11 1.3333E+01 5.0000E+02 -2.8032E-23 1.3333E+01 5.0000E+03 -1.6815E-26 1.3333E+01 5.0000E+04 -2.9223E-30 1.3333E+01 5.0000E+05 -3.9139E-34 1.3333E+01 5.0000E+06 -1.2226E-37 1.3333E+01 5.0000E+07 -1.8942E-41 1.3333E+01 5.0000E+08 -6.0045E-45 1.3333E+01 5.0000E+09 -9.3159E-49 1.3333E+01

Upload: cymy

Post on 18-Aug-2015

216 views

Category:

Documents


2 download

DESCRIPTION

ex15.12

TRANSCRIPT

CVODENEQ 2/* number of equations*/NOUT15 /* number of output times */ RTOL1.00E-0 /* s!a"ar re"ati#e to"eran!e*/ T00 /* initia" time */ T1 0.00005 /* first output time*/ T$ULT10 /* output time fa!tor */initial y components #e!tor abso"ute to"eran!e !omponents Y1 % &TOL1 1.00E-1' Y2&TOL2 1.00E-1'Resu"ts (1 (25.0000E-05 3.9999E+00 6.0001E+005.0000E-04 3.9990E+00 6.0009E+005.0000E-03 3.9900E+00 6.0090E+005.0000E-02 3.9012E+00 6.0896E+005.0000E-01 3.1152E+00 6.8577E+005.0000E+00 3.2834E-01 1.1415E+015.0000E+01 5.5563E-11 1.3333E+015.0000E+02 -2.8032E-23 1.3333E+015.0000E+03 -1.6815E-26 1.3333E+015.0000E+04 -2.9223E-30 1.3333E+015.0000E+05 -3.9139E-34 1.3333E+015.0000E+06 -1.2226E-37 1.3333E+015.0000E+07 -1.8942E-41 1.3333E+015.0000E+08 -6.0045E-45 1.3333E+015.0000E+09 -9.3159E-49 1.3333E+01