Debian Codegraph @

texmf-dist/fonts/source/public/mnsymbol/Sym-Operators.mf

raw
1
2 for scale = 1, 1.4:
3 beginsquarebigop(scale, scale); "big plus";
4 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
5
6 draw (centre + op_height/2 * dir 0) -- (centre + op_height/2 * dir 180);
7 draw (centre + op_height/2 * dir 90) -- (centre + op_height/2 * dir 270);
8 endchar;
9 endfor;
10 charlist current_char - 1: current_char;
11
12 for scale = 1, 1.4:
13 beginbigop(scale, scale); "big times";
14 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
15
16 z1 - z0 = z3 - z2 = op_width * dir 0;
17 z2 - z0 = op_width * dir 90;
18
19 1/2[1/2[z0,z1], 1/2[z2,z3]] = centre;
20
21 draw z0 -- z3;
22 draw z1 -- z2;
23 endchar;
24 endfor;
25 charlist current_char - 1: current_char;
26
27 for sign = 1, -1:
28 for scale = 1, 1.4:
29 beginbigop(scale, scale); "big wedge";
30
31 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
32
33 z3 - z0 = z2 - z1 = op_width * dir 0;
34 z1 - z0 = sign * op_height * dir 90;
35
36 1/2[1/2[z0,z1], 1/2[z2,z3]] = centre;
37
38 draw z0 -- 1/2[z1, z2] -- z3;
39 endchar;
40 endfor;
41 charlist current_char - 1: current_char;
42 endfor;
43
44 for sign = 1, -1:
45 for scale = 1, 1.4:
46 beginbigop(scale, scale); "big wedge dot";
47
48 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
49
50 z3 - z0 = z2 - z1 = op_width * dir 0;
51 z1 - z0 = sign * op_height * dir 90;
52
53 1/2[1/2[z0,z1], 1/2[z2,z3]] = centre;
54
55 draw z0 -- 1/2[z1, z2] -- z3;
56 fill circle(centre - sign * 1/4op_height * dir 90, 4/3dot_size * sqrt scale);
57 endchar;
58 endfor;
59 charlist current_char - 1: current_char;
60 endfor;
61
62 for sign = 1, -1:
63 for scale = 1, 1.4:
64 beginbigop(6/5scale, scale); "double big wedge";
65
66 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
67
68 z3 - z0 = z2 - z1 = 5/6op_width * dir 0;
69 z1 - z0 = sign * op_height * dir 90;
70
71 1/2[1/2[z0,z1], 1/2[z2,z3]] = centre;
72
73 1/2[z0a,z0b] = z0;
74 1/2[z1a,z1b] = 1/2[z1, z2];
75 1/2[z2a,z2b] = z3;
76 z0b - z0a = z1b - z1a = z2b - z2a = 1/3(plus_size + 11/5rule_thickness) * dir 0;
77
78 draw z0a -- z1a -- z2a;
79 draw z0b -- z1b -- z2b;
80 endchar;
81 endfor;
82 charlist current_char - 1: current_char;
83 endfor;
84
85 for sign = 1, -1:
86 for scale = 1, 1.4:
87 beginbigop(scale, scale); "big curly wedge";
88
89 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
90
91 draw prec(centre + sign * op_height/2 * dir 90,
92 centre - sign * op_height/2 * dir 90,
93 op_width);
94 endchar;
95 endfor;
96 charlist current_char - 1: current_char;
97 endfor;
98
99 for sign = 1, -1:
100 for scale = 1, 1.4:
101 beginbigop(scale, scale); "big curly wedge dot";
102
103 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
104
105 draw prec(centre + sign * op_height/2 * dir 90,
106 centre - sign * op_height/2 * dir 90,
107 op_width);
108 fill circle(centre - sign * 3/8op_height * dir 90, 4/3dot_size * sqrt scale);
109 endchar;
110 endfor;
111 charlist current_char - 1: current_char;
112 endfor;
113
114 for sign = 1, -1:
115 for scale = 1, 1.4:
116 beginbigop(6/5scale, scale); "double big curly wedge";
117
118 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
119
120 1/2[z0,z1] = centre;
121 z1 - z0 = 1/3(plus_size + 11/5rule_thickness) * dir 0;
122
123 draw prec(z0 + sign * op_height/2 * dir 90,
124 z0 - sign * op_height/2 * dir 90,
125 5/6op_width);
126 draw prec(z1 + sign * op_height/2 * dir 90,
127 z1 - sign * op_height/2 * dir 90,
128 5/6op_width);
129 endchar;
130 endfor;
131 charlist current_char - 1: current_char;
132 endfor;
133
134 for sign = 1, -1:
135 for scale = 1, 1.4:
136 beginbigop(scale, scale); "big union";
137
138 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
139
140 draw subset(centre + sign * op_height/2 * dir 90,
141 centre - sign * op_height/2 * dir 90,
142 op_width);
143 endchar;
144 endfor;
145 charlist current_char - 1: current_char;
146 endfor;
147
148 for sign = 1, -1:
149 for scale = 1, 1.4:
150 beginbigop(scale, scale); "big union dot";
151
152 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
153
154 draw subset(centre + sign * op_height/2 * dir 90,
155 centre - sign * op_height/2 * dir 90,
156 op_width);
157 fill circle(centre - sign * 1/8op_height * dir 90, 4/3dot_size * sqrt scale);
158 endchar;
159 endfor;
160 charlist current_char - 1: current_char;
161 endfor;
162
163 for sign = 1, -1:
164 for scale = 1, 1.4:
165 beginbigop(scale, scale); "big union plus";
166
167 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
168
169 draw subset(centre + sign * op_height/2 * dir 90,
170 centre - sign * op_height/2 * dir 90,
171 op_width);
172
173 t := 2rule_thickness;
174 r := 3/8op_width - t;
175
176 draw (centre - sign * 1/8op_width * dir 90 + r * dir 0)
177 -- (centre - sign * 1/8op_width * dir 90 + r * dir 180);
178 draw (centre + (r - sign * 1/8op_width) * dir 90)
179 -- (centre + (r + sign * 1/8op_width) * dir 270);
180 endchar;
181 endfor;
182 charlist current_char - 1: current_char;
183 endfor;
184
185 for sign = 1, -1:
186 for scale = 1, 1.4:
187 beginbigop(scale, scale); "big square union";
188
189 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
190
191 z3 - z0 = z2 - z1 = op_width * dir 0;
192 z1 - z0 = sign * op_height * dir 90;
193
194 1/2[1/2[z0,z1], 1/2[z2,z3]] = centre;
195
196 draw z0 -- z1 -- z2 -- z3;
197 endchar;
198 endfor;
199 charlist current_char - 1: current_char;
200 endfor;
201
202 for sign = 1, -1:
203 for scale = 1, 1.4:
204 beginbigop(scale, scale); "big square union dot";
205
206 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
207
208 z3 - z0 = z2 - z1 = op_width * dir 0;
209 z1 - z0 = sign * op_height * dir 90;
210
211 1/2[1/2[z0,z1], 1/2[z2,z3]] = centre;
212
213 draw z0 -- z1 -- z2 -- z3;
214 fill circle(centre - sign * 1/8op_height * dir 90, 4/3dot_size * sqrt scale);
215 endchar;
216 endfor;
217 charlist current_char - 1: current_char;
218 endfor;
219
220 for sign = 1, -1:
221 for scale = 1, 1.4:
222 beginbigop(scale, scale); "big square union plus";
223
224 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
225
226 z3 - z0 = z2 - z1 = op_width * dir 0;
227 z1 - z0 = sign * op_height * dir 90;
228
229 1/2[1/2[z0,z1], 1/2[z2,z3]] = centre;
230
231 draw z0 -- z1 -- z2 -- z3;
232
233 t := 2rule_thickness;
234 r := 3/8op_width - t;
235
236 draw (centre - sign * 1/8op_width * dir 90 + r * dir 0)
237 -- (centre - sign * 1/8op_width * dir 90 + r * dir 180);
238 draw (centre + (r - sign * 1/8op_width) * dir 90)
239 -- (centre + (r + sign * 1/8op_width) * dir 270);
240 endchar;
241 endfor;
242 charlist current_char - 1: current_char;
243 endfor;
244
245 for scale = 1, 1.4:
246 beginsquarebigop(scale, scale); "big circle";
247 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
248
249 draw circle(centre, op_height/2);
250 endchar;
251 endfor;
252 charlist current_char - 1: current_char;
253
254 for alpha = 0, 90, 45, 135:
255 for scale = 1, 1.4:
256 beginsquarebigop(scale, scale); "big circle minus";
257 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
258
259 r := op_height/2 - 11/10 * (4/3rule_thickness * sqrt scale);
260
261 draw circle(centre, op_height/2);
262 draw (centre - r * dir alpha) -- (centre + r * dir alpha);
263 endchar;
264 endfor;
265 charlist current_char - 1: current_char;
266 endfor;
267
268 for alpha = 0, 45:
269 for scale = 1, 1.4:
270 beginsquarebigop(scale, scale); "big circle plus";
271 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
272
273 r := op_height/2 - 11/10 * (4/3rule_thickness * sqrt scale);
274
275 draw circle(centre, op_height/2);
276 draw (centre - r * dir alpha) -- (centre + r * dir alpha);
277 draw (centre - r * dir (alpha + 90)) -- (centre + r * dir (alpha + 90));
278 endchar;
279 endfor;
280 charlist current_char - 1: current_char;
281 endfor;
282
283 for scale = 1, 1.4:
284 beginsquarebigop(scale, scale); "big circle dot";
285 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
286
287 draw circle(centre, op_height/2);
288 fill circle(centre, scale * 1.3dot_size);
289 endchar;
290 endfor;
291 charlist current_char - 1: current_char;
292
293 for scale = 1, 1.4:
294 beginsquarebigop(scale, scale); "big circle circle";
295 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
296
297 draw circle(centre, op_height/2);
298 draw circle(centre, op_height/5);
299 endchar;
300 endfor;
301 charlist current_char - 1: current_char;
302
303 for scale = 1, 1.4:
304 beginsquarebigop(scale, scale); "big circle triangle";
305 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
306
307 draw circle(centre, op_height/2);
308
309 pickup rule_pen;
310
311 draw triangle(centre, op_height/5, 90);
312 endchar;
313 endfor;
314 charlist current_char - 1: current_char;
315
316 for scale = 1, 1.4:
317 beginsquarebigop(scale, scale); "big circle asterisk";
318 thick := 4/3rule_thickness * sqrt scale;
319
320 pickup pencircle scaled thick;
321
322 r := op_height/2 - 11/10rule_thickness * (4/3 * sqrt scale);
323
324 draw circle(centre, op_height/2);
325
326 penpos a0(4/3thick, 0 - 7);
327 penpos a1(4/3thick, 72 - 7);
328 penpos a2(4/3thick, 144 - 7);
329 penpos a3(4/3thick, 216 - 7);
330 penpos a4(4/3thick, 288 - 7);
331
332 penpos b0(2/3thick, 0 - 7);
333 penpos b1(2/3thick, 72 - 7);
334 penpos b2(2/3thick, 144 - 7);
335 penpos b3(2/3thick, 216 - 7);
336 penpos b4(2/3thick, 288 - 7);
337
338 reg_poly_points(a)(5, centre, r, 77);
339
340 z.b0 = z.b1 = z.b2 = z.b3 = z.b4 = centre;
341
342 fill stroke z.a0e -- z.b0e;
343 fill stroke z.a1e -- z.b1e;
344 fill stroke z.a2e -- z.b2e;
345 fill stroke z.a3e -- z.b3e;
346 fill stroke z.a4e -- z.b4e;
347 endchar;
348 endfor;
349 charlist current_char - 1: current_char;
350
351 for scale = 1, 1.4:
352 beginsquarebigop(scale, scale); "big circle star";
353 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
354
355 r := op_height/2 - 11/10rule_thickness * (4/3 * sqrt scale);
356
357 draw circle(centre, op_height/2);
358
359 pickup rule_pen;
360
361 reg_poly_points(a)(5, centre, r, 90);
362 reg_poly_points(b)(5, centre, r/10, 126);
363
364 draw z.a0 -- z.b0 -- z.a1 -- z.b1 -- z.a2 -- z.b2 -- z.a3 -- z.b3 -- z.a4 -- z.b4 -- cycle;
365 fill z.a0 -- z.b0 -- z.a1 -- z.b1 -- z.a2 -- z.b2 -- z.a3 -- z.b3 -- z.a4 -- z.b4 -- cycle;
366 endchar;
367 endfor;
368 charlist current_char - 1: current_char;
369
370 for sign = 1, -1:
371 for scale = 1.1, 1.54:
372 beginbigop(1.1scale, scale); "product";
373 draw_product(centre, op_width, op_height, sign, 5/3rule_thickness * sqrt scale);
374 endchar;
375 endfor;
376 charlist current_char - 1: current_char;
377 endfor;
378
379 def draw_sum(suffix $)(expr centre, width, height, thick) =
380 thin := 2/3thick;
381
382 z1$ - z0$ = z3$ - z2$ = width * dir 0;
383 z2$ - z0$ = height * dir 90;
384
385 1/2[1/2[z0$,z1$], 1/2[z2$,z3$]] = centre;
386
387 z4$ - z1$ = z3$ - z5$ = 1/5height * dir 90;
388
389 z6$ = whatever[z0$,z1$] = z4$ - whatever * dir 77;
390 z7$ = whatever[z2$,z3$] = z5$ + whatever * dir -77;
391
392 penpos 0$(thick, 90);
393 penpos 6$(thick, 90);
394 penpos 4$(thin, 167);
395 penpos 2$(thin, -90);
396 penpos 7$(thin, -90);
397 penpos 5$(thin, 203);
398
399 z8$ = centre;
400 penpos 8$(2thin, 20);
401
402 z9$ = z8$r + whatever * (z2$r - z8$l) = whatever[z2$r,z7$r];
403
404 z10$ = z0$l + thin * dir 90;
405 z11$ = z8$r + whatever * (z10$ - z8$l);
406 y11$ = y10$;
407
408 z12$ = whatever[z10$,z8$l];
409 y12$ = y0$r;
410
411 fill z0$l -- z6$l -- z4$l -- z4$r{-dir 77} .. {dir 180}1/4[z6$r,z0$r] -- z12$ -- z10$ -- cycle;
412 fill z2$l -- z7$l -- z5$l -- z5$r{dir 113} .. {dir 180}1/4[z7$r,z2$r] -- z2$r -- cycle;
413 fill z2$r -- z8$l -- z8$r -- z9$ -- cycle;
414 fill z10$ -- z8$l -- z8$r -- z11$ -- cycle;
415 enddef;
416
417 for scale = 1.1, 1.54:
418 beginbigop(scale, scale); "sum";
419 draw_sum(a)(centre, op_width, op_height, 4/3rule_thickness * sqrt scale);
420 endchar;
421 endfor;
422 charlist current_char - 1: current_char;
423
424 for number = 0, 1, 2, 3:
425 for scale = 1, 1.8:
426
427 display_shift# := (1 + 5/2(scale-1)) * 1/4order_width#;
428 text_shift# := (scale-1) * 1/2order_width#;
429 define_whole_pixels(display_shift, text_shift);
430
431 beginsymbol(scale * (1/2 + 2/3number) * order_width# + 2side_bearing# + display_shift# - text_shift#,
432 ((scale - 1)/2 + 1) * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#,
433 (scale - 1)/2 * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#);
434 "integral";
435
436 italcorr (1 + 3/2(scale-1)) * 2/3order_width#; % kerning between upper limit and lower limit
437
438 pair centre;
439
440 for i = 0 upto number:
441 centre := ((w - scale * (number - 2*i) * 2/3order_width + display_shift + text_shift)/2,
442 (h - d)/2);
443
444 draw_integral([i])(scale, centre);
445 endfor;
446 endchar;
447 endfor;
448 charlist current_char - 1: current_char;
449 endfor;
450
451 for scale = 1, 1.8:
452
453 display_shift# := (1 + 5/2(scale-1)) * 1/4order_width#;
454 text_shift# := (scale-1) * 1/2order_width#;
455 define_whole_pixels(display_shift, text_shift);
456
457 beginsymbol(scale * (1/2 + 1) * order_width# + 2side_bearing# + display_shift# - text_shift#,
458 ((scale - 1)/2 + 1) * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#,
459 (scale - 1)/2 * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#);
460 "integral dots";
461
462 italcorr (1 + 3/2(scale-1)) * 2/3order_width#; % kerning between upper limit and lower limit
463
464 pair centre;
465
466 centre := ((w - 2scale * order_width + display_shift + text_shift)/2,
467 (h - d)/2);
468
469 draw_integral([0])(scale, centre);
470
471 centre := ((w + 2scale * order_width + display_shift + text_shift)/2,
472 (h - d)/2);
473
474 draw_integral([2])(scale, centre);
475
476 z0 = 1/4[z0[0],z0[2]];
477 z1 = 2/4[z0[0],z0[2]];
478 z2 = 3/4[z0[0],z0[2]];
479
480 fill circle(z0, dot_size);
481 fill circle(z1, dot_size);
482 fill circle(z2, dot_size);
483 endchar;
484 endfor;
485 charlist current_char - 1: current_char;
486
487 for sign = 1, -1:
488 for scale = 1, 1.8:
489
490 display_shift# := (1 + 5/2(scale-1)) * 1/4order_width#;
491 text_shift# := (scale-1) * 1/2order_width#;
492 define_whole_pixels(display_shift, text_shift);
493
494 beginsymbol(scale * 1/2order_width# + 2side_bearing# + display_shift# - text_shift#,
495 ((scale - 1)/2 + 1) * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#,
496 (scale - 1)/2 * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#);
497 "landup/down integral";
498
499 italcorr (1 + 3/2(scale-1)) * 2/3order_width#; % kerning between upper limit and lower limit
500
501 pair centre;
502
503 centre := ((w + display_shift + text_shift)/2, (h - d)/2);
504
505 draw_integral(a)(scale, centre);
506
507 pickup pencircle scaled 1/2thick;
508
509 z0 = z0a + sign * sqrt scale * (-2thick, -2/3thick);
510 z1 = z0a + sign * sqrt scale * ( 0, 2/3thick);
511 z2 = z0a + sign * sqrt scale * ( 2thick, -2/3thick);
512
513 draw z0 .. z1 .. z2;
514 endchar;
515 endfor;
516 charlist current_char - 1: current_char;
517 endfor;
518
519 for scale = 1, 1.8:
520
521 display_shift# := (1 + 5/2(scale-1)) * 1/4order_width#;
522 text_shift# := (scale-1) * 1/2order_width#;
523 define_whole_pixels(display_shift, text_shift);
524
525 beginsymbol(scale * 1/2order_width# + 2side_bearing# + display_shift# - text_shift#,
526 ((scale - 1)/2 + 1) * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#,
527 (scale - 1)/2 * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#);
528 "stroked integral";
529
530 italcorr (1 + 3/2(scale-1)) * 2/3order_width#; % kerning between upper limit and lower limit
531
532 pair centre;
533
534 centre := ((w + display_shift + text_shift)/2, (h - d)/2);
535
536 draw_integral(a)(scale, centre);
537
538 alpha := angle (z1a - z3a) - 70;
539
540 pickup pencircle scaled 1/2thick;
541
542 draw (z0a - sqrt scale * 2thick * dir alpha) -- (z0a + sqrt scale * 2thick * dir alpha);
543 endchar;
544 endfor;
545 charlist current_char - 1: current_char;
546
547 for number = 0, 1:
548 for scale = 1, 1.8:
549
550 display_shift# := (1 + 5/2(scale-1)) * 1/4order_width#;
551 text_shift# := (scale-1.3) * 4/5order_width#;
552 define_whole_pixels(display_shift, text_shift);
553
554 beginsymbol(scale * (1/2 + 2/3number) * order_width# + 2side_bearing# + display_shift# - text_shift#,
555 ((scale - 1)/2 + 1) * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#,
556 (scale - 1)/2 * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#);
557 "contour integral";
558
559 italcorr (1 + 3/2(scale-1)) * 2/3order_width#; % kerning between upper limit and lower limit
560
561 pair centre;
562
563 for i = 0 upto number:
564 centre := ((w - scale * (number - 2*i) * 2/3order_width + display_shift + text_shift)/2,
565 (h - d)/2);
566
567 draw_integral([i])(scale, centre);
568 endfor;
569
570 centre := 1/2[z0[0], z0[number]];
571
572 pickup pencircle scaled 5/12thick;
573
574 if number = 0:
575 draw circle(centre, 2thick * sqrt scale);
576 else:
577 draw super_ellipse(centre,
578 (2thick + number * 5/5thick) * sqrt scale,
579 (2thick + number * 1/5thick) * sqrt scale,
580 7/8, 0);
581 fi;
582 endchar;
583 endfor;
584 charlist current_char - 1: current_char;
585 endfor;
586
587 for alpha = -90, 90:
588 for sign = 1, -1:
589 for scale = 1, 1.8:
590
591 display_shift# := (1 + 5/2(scale-1)) * 1/4order_width#;
592 text_shift# := (scale-1.3) * 4/5order_width#;
593 define_whole_pixels(display_shift, text_shift);
594
595 beginsymbol(scale * 1/2order_width# + 2side_bearing# + display_shift# - text_shift#,
596 ((scale - 1)/2 + 1) * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#,
597 (scale - 1)/2 * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#);
598 "oriented contour integral";
599
600 italcorr (1 + 3/2(scale-1)) * 2/3order_width#; % kerning between upper limit and lower limit
601
602 pair centre;
603 centre := ((w+display_shift+text_shift)/2, (h-d)/2);
604
605 draw_integral(a)(scale, centre);
606
607 pickup pencircle scaled 5/12thick;
608
609 r := 2thick * sqrt scale;
610
611 beta := alpha + angle (z1a - z3a) + 25sign;
612
613 reg_poly_points(a)(8, z0a, r, beta);
614
615 z0 = z0a + r * dir (beta + 10);
616 z1 = z0a + r * dir (beta - 10);
617
618 draw z0{dir (beta + 100)} .. z.a1 .. z.a2 .. z.a3 .. z.a4 .. z.a5 .. z.a6 .. z.a7 ..
619 {dir (beta + 80)}z1;
620
621 if sign > 0:
622 draw arrowhead(z1, (beta + 65), 1/2scale * arrow_spread);
623 else:
624 draw arrowhead(z0, (beta - 65), 1/2scale * arrow_spread);
625 fi;
626 endchar;
627 endfor;
628 charlist current_char - 1: current_char;
629 endfor;
630 endfor;
631
632 for scale = 1, 1.8:
633
634 display_shift# := (1 + 5/2(scale-1)) * 1/4order_width#;
635 text_shift# := (scale-1) * 1/2order_width#;
636 define_whole_pixels(display_shift, text_shift);
637
638 beginsymbol(scale * 1/2order_width# + 2side_bearing# + display_shift# - text_shift#,
639 ((scale - 1)/2 + 1) * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#,
640 (scale - 1)/2 * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#);
641 "sum integral";
642
643 italcorr (1 + 3/2(scale-1)) * 2/3order_width#; % kerning between upper limit and lower limit
644
645 pair centre;
646
647 centre := ((w + display_shift + text_shift)/2, (h - d)/2);
648
649 draw_integral(a)(scale, centre);
650 draw_sum(b, 1/3[z0a.l,z0a.r], scale * order_width, 3/4scale * asc_height, 1/2thick);
651
652 endchar;
653 endfor;
654 charlist current_char - 1: current_char;
655
656 %for scale = 1, 1.8:
657 %
658 % display_shift# := 0;%(1 + 5/2(scale-1)) * 1/4order_width#;
659 % text_shift# := -2/8order_width#;
660 % script_delta# := (1 + 3/2(scale-1)) * 1/2order_width#;
661 % define_whole_pixels(display_shift, text_shift, script_delta);
662 %
663 % beginsymbol(scale * 1/2 * order_width# + 2side_bearing# - display_shift# - 2text_shift#,
664 % ((scale - 1)/2 + 1) * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#,
665 % (scale - 1)/2 * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#);
666 % "partial integral";
667 %
668 % italcorr script_delta#; % kerning between upper limit and lower limit
669 % endchar;
670 %endfor;
671 %charlist current_char - 1: current_char;
672
673 for scale = 1, 1.8:
674
675 display_shift# := 0;%(1 + 5/2(scale-1)) * 1/4order_width#;
676 text_shift# := -2/8order_width#;
677 script_delta# := (1 + 3/2(scale-1)) * 1/2order_width#;
678 define_whole_pixels(display_shift, text_shift, script_delta);
679
680 beginsymbol(scale * (1/2 + 1) * order_width# + 2side_bearing# - display_shift# - 2text_shift#,
681 ((scale - 1)/2 + 1) * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#,
682 (scale - 1)/2 * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#);
683 "partial integral dots";
684
685 italcorr (1 + 3/2(scale-1)) * 2/3order_width#; % kerning between upper limit and lower limit
686
687 pair centre;
688
689 centre := (1/2(w + script_delta), (h-d)/2);
690
691 z0 = centre + 1/2scale * order_width * left;
692 z1 = centre;
693 z2 = centre + 1/2scale * order_width * right;
694
695 fill circle(z0, dot_size);
696 fill circle(z1, dot_size);
697 fill circle(z2, dot_size);
698 endchar;
699 endfor;
700 charlist current_char - 1: current_char;
701
702 for sign = 1, -1:
703 for scale = 1, 1.8:
704
705 display_shift# := 0;%(1 + 5/2(scale-1)) * 1/4order_width#;
706 text_shift# := -4/8order_width# + 5/4(scale-1) * 2/8order_width#;
707 script_delta# := (1/2 + 4/2(scale-1)) * 1/2order_width#;
708 define_whole_pixels(display_shift, text_shift, script_delta);
709
710 beginsymbol(scale * 1/2 * order_width# + 2side_bearing# - display_shift# - 2text_shift#,
711 ((scale - 1)/2 + 1) * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#,
712 (scale - 1)/2 * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#);
713 "partial landup/down integral";
714
715 italcorr script_delta#; % kerning between upper limit and lower limit
716
717 pair centre;
718
719 centre := (1/2(w + script_delta), (h-d)/2);
720
721 pickup pencircle scaled 1/2thick;
722
723 z0 = centre + sign * sqrt scale * (-2thick, -2/3thick);
724 z1 = centre + sign * sqrt scale * ( 0, 2/3thick);
725 z2 = centre + sign * sqrt scale * ( 2thick, -2/3thick);
726
727 draw z0 .. z1 .. z2;
728 endchar;
729 endfor;
730 charlist current_char - 1: current_char;
731 endfor;
732
733 for scale = 1, 1.8:
734
735 display_shift# := 0;%(1 + 5/2(scale-1)) * 1/4order_width#;
736 text_shift# := -4/8order_width# + 5/4(scale-1) * 2/8order_width#;
737 script_delta# := (1/2 + 4/2(scale-1)) * 1/2order_width#;
738 define_whole_pixels(display_shift, text_shift, script_delta);
739
740 beginsymbol(scale * 1/2 * order_width# + 2side_bearing# - display_shift# - 2text_shift#,
741 ((scale - 1)/2 + 1) * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#,
742 (scale - 1)/2 * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#);
743 "partial stroked integral";
744
745 italcorr script_delta#; % kerning between upper limit and lower limit
746
747 pair centre;
748
749 centre := (1/2(w + script_delta), (h-d)/2);
750
751 alpha := 10;
752
753 pickup pencircle scaled 1/2thick;
754
755 draw (centre - sqrt scale * 2thick * dir alpha) -- (centre + sqrt scale * 2thick * dir alpha);
756 endchar;
757 endfor;
758 charlist current_char - 1: current_char;
759
760 for number = 0, 1:
761 for scale = 1, 1.8:
762
763 display_shift# := 0;%(1 + 5/2(scale-1)) * 1/4order_width#;
764 text_shift# := -4/8order_width# + 5/4(scale-1) * 2/8order_width#;
765 script_delta# := (1/2 + 4/2(scale-1)) * 1/2order_width#;
766 define_whole_pixels(display_shift, text_shift, script_delta);
767
768 beginsymbol(scale * (1/2 + 2/3number) * order_width# + 2side_bearing# - display_shift# - 2text_shift#,
769 ((scale - 1)/2 + 1) * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#,
770 (scale - 1)/2 * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#);
771 "partial contour integral";
772
773 italcorr script_delta#; % kerning between upper limit and lower limit
774
775 pair centre;
776
777 centre := (1/2(w + script_delta), (h-d)/2);
778
779 pickup pencircle scaled (5/12thick * sqrt scale);
780
781 if number = 0:
782 draw circle(centre, 2thick * sqrt scale);
783 else:
784 draw super_ellipse(centre,
785 (2thick + number * 5/5thick) * sqrt scale,
786 (2thick + number * 1/5thick) * sqrt scale,
787 7/8, 0);
788 fi;
789 endchar;
790 endfor;
791 charlist current_char - 1: current_char;
792 endfor;
793
794 for alpha = -90, 90:
795 for sign = 1, -1:
796 for scale = 1, 1.8:
797
798 display_shift# := 0;%(1 + 5/2(scale-1)) * 1/4order_width#;
799 text_shift# := -4/8order_width# + 5/4(scale-1) * 2/8order_width#;
800 script_delta# := (1/2 + 4/2(scale-1)) * 1/2order_width#;
801 define_whole_pixels(display_shift, text_shift, script_delta);
802
803 beginsymbol(scale * 1/2order_width# + 2side_bearing# - display_shift# - 2text_shift#,
804 ((scale - 1)/2 + 1) * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#,
805 (scale - 1)/2 * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#);
806 "partial oriented contour integral";
807
808 italcorr script_delta#; % kerning between upper limit and lower limit
809
810 pair centre;
811 centre := (1/2(w + script_delta), (h-d)/2);
812
813 pickup pencircle scaled (5/12thick * sqrt scale);
814
815 r := 2thick * sqrt scale;
816
817 beta := alpha + 80 + 25sign;
818
819 reg_poly_points(a)(8, centre, r, beta);
820
821 z0 = centre + r * dir (beta + 10);
822 z1 = centre + r * dir (beta - 10);
823
824 draw z0{dir (beta + 100)} .. z.a1 .. z.a2 .. z.a3 .. z.a4 .. z.a5 .. z.a6 .. z.a7 ..
825 {dir (beta + 80)}z1;
826
827 if sign > 0:
828 draw arrowhead(z1, (beta + 65), 1/2scale * arrow_spread);
829 else:
830 draw arrowhead(z0, (beta - 65), 1/2scale * arrow_spread);
831 fi;
832 endchar;
833 endfor;
834 charlist current_char - 1: current_char;
835 endfor;
836 endfor;
837
838 for scale = 1, 1.8:
839
840 display_shift# := (1 + 5/2(scale-1)) * 1/4order_width#;
841 text_shift# := (scale-1) * 1/2order_width#;
842 define_whole_pixels(display_shift, text_shift);
843
844 beginsymbol(scale * 1/2order_width# + 2side_bearing# + display_shift# - text_shift#,
845 ((scale - 1)/2 + 1) * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#,
846 (scale - 1)/2 * 1.4asc_height# + scale * 1/6equal_spread# + 2/3rule_thickness#);
847 "partial sum integral";
848
849 italcorr (1 + 3/2(scale-1)) * 2/3order_width#; % kerning between upper limit and lower limit
850
851 pair centre;
852
853 z0 = (1/2(w + script_delta), (h-d)/2);
854
855 penpos0(4/5thick, 0);
856
857 draw_sum(a, 1/3[z0l,z0r], scale * order_width, 3/4scale * asc_height, 1/2thick * sqrt scale);
858
859 endchar;
860 endfor;
861 charlist current_char - 1: current_char;
862
863 for scale = 1, 1.4:
864 beginbigop(3/4scale, scale); "complement";
865
866 pickup pencircle scaled (4/3rule_thickness * sqrt scale);
867
868 z0 = centre + op_height/2 * up;
869 z1 = centre - op_height/2 * up;
870 z2 = centre - op_width/2 * right;
871 z3 = centre + op_width/2 * right;
872
873 draw (1/4[z0,z1] + op_width/2 * right){up}
874 .. z0
875 .. {down}(1/3[z0,z1] - op_width/2 * right)
876 -- (2/3[z0,z1] - op_width/2 * right){down}
877 .. z1
878 .. (3/4[z0,z1] + op_width/2 * right){up};
879 endchar;
880 endfor;
881 charlist current_char - 1: current_char;
882