11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Copyright (c) P.J.Gawthrop, 1996.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.2 1996/08/15 16:24:43 peter
## Uses T in place of t to avoid name clash within function.
##
## Revision 1.1 1996/08/15 11:56:38 peter
## Initial revision
##
###############################################################
|
>
>
>
|
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Copyright (c) P.J.Gawthrop, 1996.
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.3 1996/08/16 06:36:03 peter
## Removed u from default arg list.
##
## Revision 1.2 1996/08/15 16:24:43 peter
## Uses T in place of t to avoid name clash within function.
##
## Revision 1.1 1996/08/15 11:56:38 peter
## Initial revision
##
###############################################################
|
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
end;
x = lsode('$1_ode', x0, T);
i=0;
for tt=T'
i=i+1;
y(i) = $1_odeo(x(i,:),tt);
end;
write_matrix([T,y], '$1_odesol');
EOF
|
|
|
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
end;
x = lsode('$1_ode', x0, T);
i=0;
for tt=T'
i=i+1;
y(i,:) = $1_odeo(x(i,:),tt)';
end;
write_matrix([T,y], '$1_odesol');
EOF
|