1
2
3
4
5
6\setupbackend[format=pdfua2]
7
8
9
10
11
12\environment examplesstyle
13\environment examplesstylemath
14
15
16
17
18
19
20
21
22
23
24
25
26
27\definemathgroupset
28
29 [every]
30
31
32
33
34\registermathfunction[𝑓]
35\registermathfunction[𝑔]
36
37
38
39
40
41\registermathsymbol[default][en][lowercasebold] [the vector]
42\registermathsymbol[default][en][uppercasesansserifnormal][the matrix]
43
44
45
46
47\registermathsymbol[default][sv][lowercasebold] [vektorn]
48\registermathsymbol[default][sv][uppercasesansserifnormal][matrisen]
49
50
51
52
53 \registermathsymbol[default][ua][lowercasebold] [vektorn]
54 \registermathsymbol[default][ua][uppercasesansserifnormal][matrisen]
55
56
57
58
59\def\ExampleLanguages{en,sv}
60\def\ExampleLanguages{debug,en,sv}
61
62
63
64
65
66
67
68
69
70
71
72
73
74\startbuffer [colophon]
75
76\startsubject[title=About this document]
77
78This document is used by Mikael Sundqvist and Hans Hagen to check out how well a
79formula translates to a verbose meaning. Its an experiment with accessibility on
80the one hand but also a way to get documents validated and even annotated.
81Eventually there will be support for many languages but we started with English,
82Swedish and Dutch.
83
84\blank
85
86This feature is only available in \CONTEXT\ \MKXL, aka \LMTX. You can enable
87tracking in your document by for instance:
88
89\starttyping[option=TEX]
90\setuptagging
91 [state=start]
92
93\definemathgroupset
94 [mydemogroup]
95 [every]
96
97\setmathgroupset
98 [mydemogroup]
99
100\setupnote
101 [mathnote]
102 [location=page]
103
104\enabletrackers
105 [math.textblobs]
106\stoptyping
107
108By default a \type {mathnote} is set up to be an endnote in which case you need
109to place them with:
110
111\starttyping[option=TEX]
112\placenote[mathnode]
113\stoptyping
114
115\stopsubject
116\stopbuffer
117
118\startdocument
119 [title={Meaningfull Math},
120 author={Mikael Sundqvist Hans Hagen}]
121
122\StartExample
123
124 \im {1 2 = 3}
125\StopExample
126
127\StartExample
128
129 \im {1 2 = 1}
130\StopExample
131
132\StartExample
133
134 \im {2 \times 3 = 2 \cdot 3 = 6}
135\StopExample
136
137\StartExample
138
139 \im {1.1 2.22 = 3.33 = 3 (0.1 .22) \neq \digits{1.234} \neq 105}
140\StopExample
141
142\StartExample
143
144 \im {\mn{0x34BE} = 13502 = \digits{13502}}
145\StopExample
146
147\StartExample
148
149 \im {32 42 = 52}
150\StopExample
151
152\StartExample
153
154 \im {34 44 \neq 54}
155\StopExample
156
157\StartExample
158
159 \dm {\frac{1}{2} = \frac{1}{3} \frac{1}{6}}
160\StopExample
161
162\StartExample
163
164 \dm {\frac{1}{x} \frac{1}{y} = \frac{x y}{xy}}
165\StopExample
166
167\StartExample
168
169 \m{\frac{1}{2}2 = \frac{1}{2} \cdot 2 = \frac{1}{2} \times 2 = 2 \frac{1}{2} = 2 \cdot \frac{1}{2} = 2 \times \frac{1}{2}}
170\StopExample
171
172\StartExample
173
174 \m{\frac{1}{2}a = \frac{1}{2}\cdot a = \frac{1}{2} \times a = a \frac{1}{2} = a \cdot \frac{1}{2} = a \times \frac{1}{2}}
175\StopExample
176
177\StartExample
178
179 \dm {a\frac{1 x}{x 1} \frac{1 x}{1 x}\frac{1 y}{1 y} \frac{1 x}{1 x}y}
180\StopExample
181
182\StartExample
183
184 \im {2(1 x) (1 y)3 a(1 z) (1 u)b}
185\StopExample
186
187\StartExample
188
189 \im {2 \cdot (1 x) (1 y) \cdot 3 a \cdot (1 z) (1 u) \cdot b}
190\StopExample
191
192\StartExample
193
194 \dm {a2b1 a1b2 = a2\notimes b1 a1\notimes b2}
195\StopExample
196
197\StartExample
198
199
200 \dm {A{1,20} A1{20} A{1,20} A1{20}}
201\StopExample
202
203\StartExample
204
205 \im {a1(1 x) (1 y)b1 a2(1 z) (1 u)b2}
206\StopExample
207
208\StartExample
209
210 \im {a1 \cdot (1 x) (1 y) \cdot b1 a2 \cdot (1 z) (1 u) \cdot b2}
211\StopExample
212
213\StartExample
214
215 \im {(nk)n (nk)(n1) n(nk)}
216\StopExample
217
218\StartExample
219
220 \im {\left(nk\right)n \left(nk\right)\left(n1\right) n\left(nk\right)}
221\StopExample
222
223\StartExample
224
225 \im {\fenced[parenthesis]{nk}n \fenced[parenthesis]{nk}\fenced[parenthesis]{n1} n\fenced[parenthesis]{nk}}
226\StopExample
227
228\StartExample
229
230 \dm {(1 x)n a = a (1 x)n \neq (1 x)n (1 y) (1 x)(1 y)n}
231\StopExample
232
233\StartExample
234
235
236 \im {(1 2 3 4)2 = 13 23 33 43}
237\StopExample
238
239\StartExample
240
241 \im {\left(1 2 3 4 \right)2 = 13 23 33 43}
242\StopExample
243
244\StartExample
245
246 \im{\fenced[parenthesis]{1 2 3 4 }2 = 13 23 33 43}
247\StopExample
248
249\StartExample
250
251 \im {x \neq x 1}
252\StopExample
253
254\StartExample
255
256 \im {x = 1.}
257\StopExample
258
259\StartExample
260
261
262 \im {x = 1\mtp{.}}
263\StopExample
264
265\StartExample
266
267 \im {x = y.}
268\StopExample
269
270\StartExample
271
272 \im {x=z\mtp{.}}
273\StopExample
274
275\StartExample
276
277 \im {x = y,}
278\StopExample
279
280\StartExample
281
282
283 \im {a{0}.a{1}\notimes a{2} \ldots a{n} \ldots}
284\StopExample
285
286\StartExample
287
288 \im {y·z = y \cdot z = y \scalarproduct z}
289\StopExample
290
291\StartExample
292
293
294 \im {abcdefghikl}
295\StopExample
296
297\StartExample
298
299 \im {xx \sin(x) x \frac{x}{x} x \sqrt{x} x \int x \sin \cos x \sin(x) \cos}
300\StopExample
301
302\StartExample
303
304 \im {af(x) bh(x) f(x b)}
305\StopExample
306
307\StartExample
308
309 \dm { A(X) \neq A\notimes(X) \neq A\applyfunction(X) \neq A\of(X)}
310\StopExample
311
312\StartExample
313
314 \dm {\Sigma \of (X \vee Y) = \Sigma \of X \vee \Sigma \of Y}
315\StopExample
316
317\StartExample
318
319 \dm { F\of(x,t) = ft(x) = \mathrm{f}t\of(x)}
320\StopExample
321
322\StartExample
323
324 \dm { h\of(x) \neq h(x)}
325\StopExample
326
327\StartExample
328
329
330
331 \im { C \of (\openinterval{a,b}) \neq C2 \of (\interval{a,b}) \neq C2 \of \interval{0,1} \neq C\of(\Omega) \neq 𝒞 \of (\Omega)}
332\StopExample
333
334\StartExample
335
336 \im { (((x))) \neq ((x)) \neq (\parenthesis{x})}
337\StopExample
338
339\StartExample
340
341 \im { s\of(1) = s\of(\set{0}) = \set{0} \cup \set{\set{0}}}
342\StopExample
343
344\StartExample
345
346 \dm {\reals \of \bracket{x 1} = \reals\fenced[bracket]{x} \neq \reals\of[x]}
347\StopExample
348
349\StartExample
350
351
352
353 \im {\mathss{A}{\mathbf{u}}\mathbf{v} \colonequals \mathbf{u} \crossproduct \mathbf{v}}
354\StopExample
355
356\StartExample
357
358 \im {\binom{3}{2} = \frac{3!}{(32)!2!}}
359\StopExample
360
361\StartExample
362
363 \im {\binom{2n}{n 1} = \frac{(2n)!}{(n 1)!(n 1)!}}
364\StopExample
365
366\StartExample
367
368 \im {a\binom{n}{k} \binom{n}{k}\binom{n}{a} \binom{n}{k}xk \binom{n}{k}x}
369\StopExample
370
371\StartExample
372
373 \dm {\parenthesis{1 x}n = \sum_{k = 0}{n} \binom{n}{k}xk}
374\StopExample
375
376\StartExample
377
378 \im {x x2 x3 \ldots = x(1 x)}
379\StopExample
380
381\StartExample
382
383 \im {3i \neq 3\ii \neq 1 i \neq 2 \ii \neq 3 a i \neq 3 a \ii }
384\StopExample
385
386\StartExample
387
388 \im {\ee{\pi \ii } = 1}
389\StopExample
390
391\StartExample
392
393 \im {a b \ii = \sqrt{a2 b2}\ee{\ii\arg(a \ii b)}}
394\StopExample
395
396\StartExample
397
398 \im {\conjugate{a b \ii} = a b \ii}
399\StopExample
400
401\StartExample
402
403 \im {x2 = 1 \implies x = \pm \ii}
404\StopExample
405
406\StartExample
407
408 \im {\sqrt{x} = x{12} \neq x{13} = \root[3]{x}}
409\StopExample
410
411\StartExample
412
413 \im {2\sqrt{x} = 2x{12} \neq 2x{13} = 2\root[3]{x}}
414\StopExample
415
416\StartExample
417
418 \im {a\sqrt{x} = ax{12} \neq ax{13} = a\root[3]{x}}
419\StopExample
420
421\StartExample
422
423
424 \im {\sqrt{x}2 = x{12}2 \neq x{13}2 = \root[3]{x}2}
425\StopExample
426
427\StartExample
428
429 \im {\sqrt{x} \sqrt{y} = \sqrt{xy}}
430\StopExample
431
432\StartExample
433
434 \im {\sqrt{x}a = x{12}a \neq x{13}a = \root[3]{x}a}
435\StopExample
436
437\StartExample
438
439 \im {\naturalnumbers \subset \integers \subset \rationals \subset \reals \subset \complexes}
440\StopExample
441
442\StartExample
443
444 \im {\naturalnumbers \cap \reals = \naturalnumbers}
445\StopExample
446
447\StartExample
448
449 \im {\set{a \in \naturalnumbers \fence \mtext{\im{a} is even}}}
450\StopExample
451
452\StartExample
453
454 \dm {\rationals = \set{\frac{p}{q} \fence p,q \in \integers \land q \neq 0}}
455\StopExample
456
457\StartExample
458
459 \im {f \maps \reals \to \reals}
460\StopExample
461
462\StartExample
463
464 \im {\sin \maps \reals \to \reals}
465\StopExample
466
467\StartExample
468
469 \im {f \mapsas x \mapsto x \exp(x)}
470\StopExample
471
472\StartExample
473
474 \im {\sin \mapsas x \mapsto \sin(x)}
475\StopExample
476
477\StartExample
478
479
480 \im {x \mapsto \ln(x)}
481\StopExample
482
483\StartExample
484
485 \im {\sin x = \sin(x) \neq \sin(x) 1 \neq \sin(x 1)}
486\StopExample
487
488\StartExample
489
490 \im {f = \sin}
491\StopExample
492
493\StartExample
494
495 \im {\lim a{k} = \infty}
496\StopExample
497
498\StartExample
499
500 \im {\lim_{k \tendsto \infty} a{k}}
501\StopExample
502
503\StartExample
504
505 \im {\lim__{k \tendsto \infty} a{k} = \infty}
506\StopExample
507
508\StartExample
509
510 \dm {\lim \frac{a{k}}{b{k}}}
511\StopExample
512
513\StartExample
514
515 \dm {\lim_{k \tendsto \infty} \frac{Ak}{Bk}}
516\StopExample
517
518\StartExample
519
520 \im {f(x) \tendsto A \mtext{ as } x \tendsto a}
521\StopExample
522
523\StartExample
524
525 \dm {\lim_{x \tendsto 0} \frac{\sin (x)}{x} = 1}
526\StopExample
527
528\StartExample
529
530 \dm {\lim_{f(x) \tendsto 0} g(x)}
531\StopExample
532
533\StartExample
534
535
536 \im {f(x) f(x) f(x) f(x)}
537\StopExample
538
539\StartExample
540
541 \im {f h h h h}
542\StopExample
543
544\StartExample
545
546 \im { \secondderivative{f} = f }
547\StopExample
548
549\StartExample
550
551 \im {\sin(x) = \sin(x) = \sin(x \pi)}
552\StopExample
553
554\StartExample
555
556 \im {f1(x) f12(x) }
557\StopExample
558
559\StartExample
560
561 \im {(f)(x) (f)\notimes(x) \derivative{(f)}(x) \derivative{(f)}\notimes(x)}
562\StopExample
563
564\StartExample
565
566 \im {(fg)(fg) }
567\StopExample
568
569\StartExample
570
571 \im {(f1)2 = (f1)2 \neq f12 }
572\StopExample
573
574\StartExample
575
576 \im {(x1)2 \neq x12 }
577\StopExample
578
579\StartExample
580
581 \im {h1 h1 h1 h1}
582\StopExample
583
584\StartExample
585
586 \im{
587 h{} {\lambda} {s}
588 {\kappa}{}
589 {\mu} {}
590 {} {\nu} {t}
591 {\phi} {}
592 }
593\StopExample
594
595\StartExample
596
597 \im {\Gamma_1234 \neq \Gamma__1234}
598\StopExample
599
600\StartExample
601
602 \im {\Gamma__1234 \neq \Gamma__12{}34}
603\StopExample
604
605\StartExample
606
607 The hypergeometric function \im {F21}
608\StopExample
609
610\StartExample
611
612 \dm {\sum_{n = 1}{\infty} \frac{1}{n2} = \frac{\pi2}{6}}
613\StopExample
614
615\StartExample
616
617 \dm {\sum_{n \in \naturalnumbers} \frac{1}{n2} = \frac{\pi2}{6}}
618\StopExample
619
620\StartExample
621
622 \dm {\sin x = \prod_{n = 1}{\infty} \left(1 \frac{x2}{\pi2n2}\right)}
623\StopExample
624
625\StartExample
626
627 \dm {\sin x = \prod_{n = 1}{\infty} \parenthesis{1 \frac{x2}{\pi2n2}}}
628\StopExample
629
630\StartExample
631
632 \dm {\int_{a}{b} f(x) \dd x = f(b) f(a)}
633\StopExample
634
635\StartExample
636
637 \dm {\int_{x=a}{b} f(x) \dd x = f(b) f(a)}
638\StopExample
639
640\StartExample
641
642 \dm {\int_{\Omega} f \dd \mu = 0}
643\StopExample
644
645\StartExample
646
647 \dm {\int \frac{1}{1 x2} \dd x}
648\StopExample
649
650\StartExample
651
652 \dm {\int_01 \frac{1}{1 x2} \dd x}
653\StopExample
654
655\StartExample
656
657 \im {\tuple{x1, x2, x3} \neq \tuple{x1, x2, x3} = \tuple{x1, x2, x3}}
658\StopExample
659
660\StartExample
661
662 \im {A \cup \complement A}
663\StopExample
664
665\StartExample
666
667
668 \im {\forall x \in A \exists y \in B: \abs{x y} > 1}
669\StopExample
670
671\StartExample
672
673 \im {\adjoint{T}T = T\adjoint{T} \neq \adjoint{T}}
674\StopExample
675
676\StartExample
677
678 \im {A \adj(A) = \det(A) I}
679\StopExample
680
681\StartExample
682
683 \im {(u \convolve v) (x) \colonequals \int_{\reals} u\of(\xi) v\of(x \xi) \dd \xi}
684\StopExample
685
686\StartExample
687
688 \im {(f \convolve g) (x) \colonequals \int_{\reals} f(\xi) g(x \xi) \dd \xi}
689\StopExample
690
691\StartExample
692
693 \im {\transpose{A} \transpose{(A B2)} \transpose{\left(A2 B\right)}}
694\StopExample
695
696\StartExample
697
698 \im {\secondderivative{f{xy}} = \secondderivative{f{yx}} = f{xy} \neq \secondderivative{f}{yx}}
699\StopExample
700
701\StartExample
702
703
704 \im {f(x) = y \iff x = \inverse{f}\of(y)}
705\StopExample
706
707\StartExample
708
709 \im {h\of(x) = y \iff x = \inverse{h}\of(y)}
710\StopExample
711
712\StartExample
713
714 \im {\preimage{f}\of(Y) = \set{x \in X \fence f(x) = y}}
715\StopExample
716
717\StartExample
718
719 \im {\preimage{h}\of(Y) = \set{x \in X \fence h\of(x) = y}}
720\StopExample
721
722\StartExample
723
724 \dm {\frac{\dd u}{\dd t} = u = \dot{u}}
725\StopExample
726
727\StartExample
728
729
730 \dm {\frac{\partial u}{\partial t} = c2 \laplace u}
731\StopExample
732
733\StartExample
734 \dm {\frac{\partial u}{\partial t} = c2 \frac{\partial2u}{\partial x2}}
735\StopExample
736
737\StartExample
738
739
740
741 \dm {\dd \frac{\dd3 u}{\dd x3} \frac{\dd f}{\dd x}}
742\StopExample
743
744\StartExample
745
746 \setupmathematics[differentiald=upright]
747 \dm {\dd \frac{\dd3 u}{\dd x3} \frac{\dd f}{\dd x}}
748\StopExample
749
750\StartExample
751
752 \dm {\frac{\partial3 u}{\partial x2 \partial y}}
753\StopExample
754
755\StartExample
756
757
758 \im {\conjugate{\partial} u = \bar{\partial} u = f}
759\StopExample
760
761\StartExample
762
763
764
765
766 \dm {\frac{\partial}{\partial x}\of(u v) = \frac{\partial u}{\partial x} \frac{\partial v}{\partial x}}
767\StopExample
768
769\StartExample
770
771 \im {(1 \laplace)u = f}
772\StopExample
773
774\StartExample
775
776 \im {\laplace = \gradient \scalarproduct \gradient = \gradient2 = \nabla \scalarproduct \nabla}
777\StopExample
778
779\StartExample
780
781 \im {\gradient \crossproduct \gradient}
782\StopExample
783
784\StartExample[issue]
785
786
787 \im {\floor{3.6} = \ceiling{2.7} = \integerpart{3.2}}
788\StopExample
789
790\StartExample
791
792 \im {A = \set[size=1]{1, 2, 3}}
793\StopExample
794
795\StartExample
796
797 \im {A = \tuple{1, 2, 3}}
798\StopExample
799
800\StartExample
801
802 \im {\abs[size=0]{a{nk} A} < \epsilon}
803\StopExample
804
805\StartExample
806
807 \im {\innerproduct{u \fence v} = \conjugate{\innerproduct{v \fence u}}}
808\StopExample
809
810\StartExample
811
812 \im {\reals__{} \colonequals \set{x \fence x \in \reals \land x > 0}}
813\StopExample
814
815\StartExample
816
817
818 \im {[a,b[ \neq ]a,b] \neq ]a,b[ \neq [a,b]}
819\StopExample
820
821\StartExample
822
823 \im {X = \varleftopeninterval{a,(b 1)} \neq ]a,(b 1)]}
824\StopExample
825
826\StartExample
827
828 \im {\closure{\openinterval{a,b}} = \closedinterval{a,b}}
829\StopExample
830
831\StartExample
832
833 \im {\closure{\varopeninterval{0,1}} = \closedinterval{0,1}}
834\StopExample
835
836\StartExample
837
838
839 \dm {u\of(b)u\of(a)=\lim_{n\to\infty} \parenthesis{f(x1)\Delta x1f(x2)\Delta x2\ldotsf(xn)\Delta xn}}
840\StopExample
841
842\StartExample
843
844 \im {\abs{x y} \leq \abs{x} \abs{y}}
845\StopExample
846
847\StartExample
848
849 \im {\norm{x y} \leq \norm{x} \norm{y}}
850\StopExample
851
852\StartExample
853
854 \im {\norm{\alpha x} = \abs{\alpha} \norm{x}}
855\StopExample
856
857\StartExample
858
859 \im {f(x) = x2 \mtp{,} x \in \reals}
860\StopExample
861
862\StartExample
863
864 \im {\lnot(P \lor Q) = (\lnot P) \land (\lnot Q)}
865\StopExample
866
867\StartExample
868
869
870 \im {\neg(P \land Q) \iff (\lnot P) \lor (\lnot Q)}
871\StopExample
872
873\StartExample
874
875
876 \im {(\forall x \in \reals)\notimes (x > 0 \lor x = 0 \lor x < 0)}
877\StopExample
878
879\StartExample
880
881 \dm {f(x) =
882 \startcases
883 \NC x \NC x > 0 \NR
884 \NC x \NC x < 0 \NR
885 \stopcases}
886\StopExample
887
888\StartExample
889
890 \dm{f(x) =
891 \startcases[lefttext=\mtp{,}]
892 \NC x \NC x > 0 \NR
893 \NC x \NC x < 0 \NR
894 \stopcases}
895\StopExample
896
897\StartExample
898
899 \dm{f(x) =
900 \startcases[righttext=\mtext{if }]
901 \NC x \NC x > 0 \NR
902 \NC x \NC x < 0 \NR
903 \stopcases}
904\StopExample
905
906\StartExample
907
908
909 \setupmathematics[domain=chemistry]
910 \dm{
911 {\tf X}{123}{12}{4} \approx X{123}{12}{4}
912 }
913\StopExample
914
915\StartExample
916 \dm{
917 \left(1 x x2\right)2
918 }
919\StopExample
920
921\StartExample
922 \setupmathematics[domain=simplified]
923 \dm{
924 \left(1 x x2\right)2
925 }
926\StopExample
927
928\StartExample
929
930
931 \startformula \chi{2} = \sum_{i = 1}{r}{\sum_{j = 1}{c}\frac{\left( O{ij} E{ij} \right){2}}{E{ij}}} \stopformula
932\StopExample
933
934\StartExample
935 \im {\fourier{x1} \neq \fourier{x}}
936\StopExample
937
938\stopdocument
939 |