-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoperations.asn
197 lines (171 loc) · 3.67 KB
/
operations.asn
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
Poly DEFINITIONS ::= BEGIN
Exercises ::= SET {
exercises SEQUENCE OF Exercise
}
Poly ::= SEQUENCE OF INTEGER
Row ::= SEQUENCE OF IA5String
RowPoly ::= SEQUENCE OF Poly
DisplayPoly ::= SET {
mod INTEGER,
f Poly,
answer IA5String
}
AddPoly ::= SET {
mod INTEGER,
f Poly,
g Poly,
answer IA5String,
answer-poly Poly
}
SubtractPoly ::= SET {
mod INTEGER,
f Poly,
g Poly,
answer IA5String,
answer-poly Poly
}
MultiplyPoly ::= SET {
mod INTEGER,
f Poly,
g Poly,
answer IA5String,
answer-poly Poly
}
LongDivPoly ::= SET {
mod INTEGER,
f Poly,
g Poly,
answ-q IA5String,
answ-r IA5String,
answ-q-poly Poly,
answ-r-poly Poly
}
EuclidPoly ::= SET {
mod INTEGER,
f Poly,
g Poly,
answ-a IA5String,
answ-b IA5String,
answ-d IA5String,
answ-a-poly Poly,
answ-b-poly Poly,
answ-d-poly Poly
}
EqualsPolyMod ::= SET {
mod INTEGER,
f Poly,
g Poly,
h Poly,
answer BOOLEAN
}
Irreducible ::= SET {
mod INTEGER,
f Poly,
answer BOOLEAN
}
FindIrred ::= SET {
mod INTEGER,
deg INTEGER,
answer IA5String,
answer-poly Poly
}
AddTable ::= SET {
mod INTEGER,
mod-poly Poly,
answer SEQUENCE OF Row,
answer-poly SEQUENCE OF RowPoly
}
MultTable ::= SET {
mod INTEGER,
mod-poly Poly,
answer SEQUENCE OF Row,
answer-poly SEQUENCE OF RowPoly
}
DisplayField ::= SET {
mod INTEGER,
mod-poly Poly,
a Poly,
answer IA5String,
answer-poly Poly
}
AddField ::= SET {
mod INTEGER,
mod-poly Poly,
a Poly,
b Poly,
answer IA5String,
answer-poly Poly
}
SubtractField ::= SET {
mod INTEGER,
mod-poly Poly,
a Poly,
b Poly,
answer IA5String,
answer-poly Poly
}
MultiplyField ::= SET {
mod INTEGER,
mod-poly Poly,
a Poly,
b Poly,
answer IA5String,
answer-poly Poly
}
InverseField ::= SET {
mod INTEGER,
mod-poly Poly,
a Poly,
answer IA5String,
answer-poly Poly
}
DivisionField ::= SET {
mod INTEGER,
mod-poly Poly,
a Poly,
b Poly,
answer IA5String,
answer-poly Poly
}
EqualsField ::= SET {
mod INTEGER,
mod-poly Poly,
a Poly,
b Poly,
answer BOOLEAN
}
Primitive ::= SET {
mod INTEGER,
mod-poly Poly,
a Poly,
answer BOOLEAN
}
FindPrim ::= SET {
mod INTEGER,
mod-poly Poly,
answer IA5String,
answer-poly Poly
}
Exercise ::= CHOICE {
display-poly DisplayPoly,
add-poly AddPoly,
subtract-poly SubtractPoly,
multiply-poly MultiplyPoly,
long-div-poly LongDivPoly,
euclid-poly EuclidPoly,
equals-poly-mod EqualsPolyMod,
irreducible Irreducible,
find-irred FindIrred,
add-table AddTable,
mult-table MultTable,
display-field DisplayField,
add-field AddField,
subtract-field SubtractField,
multiply-field MultiplyField,
inverse-field InverseField,
division-field DivisionField,
equals-field EqualsField,
primitive Primitive,
find-prim FindPrim
}
END