-
Notifications
You must be signed in to change notification settings - Fork 1
/
readdpack
210 lines (125 loc) · 3.22 KB
/
readdpack
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
#:mode=maple:
MAPLEHOME := `/home/juergen/maple`:
DPACKPATH := cat ( MAPLEHOME, `/packages/dpack/` ):
if not has ( [libname], convert( DPACKPATH, string) ) then
libname := libname, DPACKPATH:
fi:
#
#
initprintcnt := 0:
initprint := proc ( stra )
local str;
global initprintcnt;
str := convert(convert (stra, string), list);
str := str[1..-6];
str := op(foldl ((x,y)->cat(x,y),"", op(str))) ;
printf ( "+ %16.16s +", str );
initprintcnt := initprintcnt + 1;
if initprintcnt = 4 then
printf ( "\n" );
initprintcnt := 0;
fi;
RETURN ();
end:
READDPACK := proc ( name )
local filename;
global DPACKPATH, view;
filename := cat ( DPACKPATH, name );
if has ( [args], view ) then
interface ( echo = 3 );
printlevel := 5;
fi;
read filename;
if has ( [args], view ) then
interface ( echo = 1 );
printlevel := 1;
fi;
end:
#
#
printf ( "\n" );
printf ( "%s", ` dpack version 0.1.0\n` );
printf ( "%s", ` a package for differential equations ` );
printf ("\n\n");
#
#
kernelopts ( ASSERT = true ):
#
#
macro ( dcoeffs = dpack[dcoeffs] ):
macro ( dsubs = dpack[dsubs] ):
READDPACK ( `vsubs` );
initprint ( `vsubs read` );
READDPACK ( `dtdsubs` );
initprint ( `dtdsubs read` );
READDPACK ( `dpackc` );
initprint ( `dpackc read` );
READDPACK ( `dcotes` );
initprint ( `dcotes read` );
READDPACK ( `ddepend` );
initprint ( `ddepend read` );
READDPACK ( `dorders` );
initprint ( `dorders read` );
READDPACK ( `dsort` );
initprint ( `dsort read` );
READDPACK ( `dextd` );
initprint ( `dextd read` );
READDPACK ( `djanetbase` );
initprint ( `djanetbase read` );
READDPACK ( `dgrobnerjanbas` );
initprint ( `dgrobnerjanbas read` );
READDPACK ( `dlie` );
initprint ( `dlie read` );
READDPACK ( `dprolong1` );
initprint ( `dprolong1 read` );
READDPACK ( `dxpack` );
initprint ( `dxpack read` );
READDPACK ( `dsymm` );
initprint ( `dsymm read` );
READDPACK ( `class` );
initprint ( `class read` );
READDPACK ( `dexperi` );
initprint ( `dexperi read` );
READDPACK ( `dlieclass` );
initprint ( `dlieclass read` );
READDPACK ( `dsolvexpde` );
initprint ( `dsolvexpde read` );
READDPACK ( `dsolvelpde1` );
initprint ( `dsolvelpde1 read` );
READDPACK ( `dsolvexpdeX` );
initprint ( `dsolvexpdeX read` );
READDPACK ( `driccati` );
initprint ( `driccati read` );
READDPACK ( `dintegrate` );
initprint ( `dintegrate read` );
READDPACK ( `dcancoord` );
initprint ( `dcancoord read` );
READDPACK ( `groupdiscuss` );
initprint ( `groupdiscuss read` );
READDPACK ( `dgenjanetbase` );
initprint ( `dgenjanetbase read` );
READDPACK ( `dtypinfo` );
initprint ( `dtypinfo read` );
READDPACK ( `dfilecomm` );
initprint ( `dfilecomm read` );
READDPACK ( `dbasisprog` );
initprint ( `dbasisprog read` );
READDPACK ( `dbasislist` );
initprint ( `dbasislist read` );
READDPACK ( `dbasismath` );
initprint ( `dbasismath read` );
READDPACK ( `dbasisconv` );
initprint ( `dbasisconv read` );
READDPACK ( `dmakejac` );
initprint ( `dmakejac read` );
READDPACK ( `dmisc` );
initprint ( `dmisc read` );
READDPACK ( `dintrat` );
initprint ( `dintrat read` );
READDPACK ( `ejanetbase` );
initprint ( `ejanetbase read` );
READDPACK ( `efactor` );
initprint ( `efactor read` );
macro ( dcoeffs = dcoeffs ):
macro ( dsubs = dsubs ):
printf ("\n\n");