mech 0.3.3

Mech is a programming language for building reactive systems like robots, games, and animations.
Documentation
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
Math Unit Tests
================

Scalar : Scalar
----------------

Test scalar math with f32
  #test += ["Add Scalar:Scalar f32"  2  1 + 1 
            "Sub Scalar:Scalar f32"  2  4 - 2
            "Div Scalar:Scalar f32"  2  4 / 2
            "Mul Scalar:Scalar f32"  6  2 * 3 
            "Exp Scalar:Scalar f32"  9  3 ^ 2]

Test scalar math with f64
  #test += ["Add Scalar:Scalar f64"  3<f64>  2<f64> + 1<f64> 
            "Sub Scalar:Scalar f64"  2<f64>  4<f64> - 2<f64>
            "Div Scalar:Scalar f64"  2<f64>  4<f64> / 2<f64>
            "Mul Scalar:Scalar f64"  6<f64>  2<f64> * 3<f64>]

Test scalar math with u16
  #test += ["Add Scalar:Scalar u16"  3<u16>  2<u16> + 1<u16> 
            "Sub Scalar:Scalar u16"  2<u16>  4<u16> - 2<u16>
            "Div Scalar:Scalar u16"  2<u16>  4<u16> / 2<u16>
            "Mul Scalar:Scalar u16"  6<u16>  2<u16> * 3<u16>]

Test scalar math with u32
  #test += ["Add Scalar:Scalar u32"  3<u32>  2<u32> + 1<u32> 
            "Sub Scalar:Scalar u32"  2<u32>  4<u32> - 2<u32>
            "Div Scalar:Scalar u32"  2<u32>  4<u32> / 2<u32>
            "Mul Scalar:Scalar u32"  6<u32>  2<u32> * 3<u32>]

Test scalar math with u64
  #test += ["Add Scalar:Scalar u64"  3<u64>  2<u64> + 1<u64>
            "Sub Scalar:Scalar u64"  2<u64>  4<u64> - 2<u64>
            "Div Scalar:Scalar u64"  2<u64>  4<u64> / 2<u64>
            "Mul Scalar:Scalar u64"  6<u64>  2<u64> * 3<u64>]

Test scalar math with u128
  #test += ["Add Scalar:Scalar u128"  3<u128>  2<u128> + 1<u128>
            "Sub Scalar:Scalar u128"  2<u128>  4<u128> - 2<u128>
            "Div Scalar:Scalar u128"  2<u128>  4<u128> / 2<u128>
            "Mul Scalar:Scalar u128"  6<u128>  2<u128> * 3<u128>]

Test scalar math with i8
  #test += ["Add Scalar:Scalar i8"  3<i8>  2<i8> + 1<i8>
            "Sub Scalar:Scalar i8"  2<i8>  4<i8> - 2<i8>
            "Div Scalar:Scalar i8"  2<i8>  4<i8> / 2<i8>
            "Mul Scalar:Scalar i8"  6<i8>  2<i8> * 3<i8>]
            
Test scalar math with i16
  #test += ["Add Scalar:Scalar i16"  3<i16>  2<i16> + 1<i16>
            "Sub Scalar:Scalar i16"  2<i16>  4<i16> - 2<i16>
            "Div Scalar:Scalar i16"  2<i16>  4<i16> / 2<i16>
            "Mul Scalar:Scalar i16"  6<i16>  2<i16> * 3<i16>]

Test scalar math with i32
  #test += ["Add Scalar:Scalar i32"  3<i32>  2<i32> + 1<i32>
            "Sub Scalar:Scalar i32"  2<i32>  4<i32> - 2<i32>
            "Div Scalar:Scalar i32"  2<i32>  4<i32> / 2<i32>
            "Mul Scalar:Scalar i32"  6<i32>  2<i32> * 3<i32>]

Test scalar math with i64
  #test += ["Add Scalar:Scalar i64"  3<i64>  2<i64> + 1<i64>
            "Sub Scalar:Scalar i64"  2<i64>  4<i64> - 2<i64>
            "Div Scalar:Scalar i64"  2<i64>  4<i64> / 2<i64>
            "Mul Scalar:Scalar i64"  6<i64>  2<i64> * 3<i64>]

Test scalar math with i128
  #test += ["Add Scalar:Scalar i128"  3<i128>  2<i128> + 1<i128>
            "Sub Scalar:Scalar i128"  2<i128>  4<i128> - 2<i128>
            "Div Scalar:Scalar i128"  2<i128>  4<i128> / 2<i128>
            "Mul Scalar:Scalar i128"  6<i128>  2<i128> * 3<i128>]

Column : Column
----------------
Test column math with u8
  x = [1<u8>; 2<u8>; 3<u8>]
  y = [4<u8>; 5<u8>; 6<u8>]
  sum-result = stats/sum(column: x + y)
  mul-result = stats/sum(column: x * y)
  sub-result = stats/sum(column: y - x)
  div-result = stats/sum(column: y / x)
  #test += ["Add Column:Column u8" 21<u8>  sum-result
            "Mul Column:Column u8" 32<u8>  mul-result
            "Sub Column:Column u8" 9<u8>  sub-result
            "Div Column:Column u8" 8<u8>  div-result]

Test column math with u16
  x = [1<u16>; 2<u16>; 3<u16>]
  y = [4<u16>; 5<u16>; 6<u16>]
  sum-result = stats/sum(column: x + y)
  mul-result = stats/sum(column: x * y)
  sub-result = stats/sum(column: y - x)
  div-result = stats/sum(column: y / x)
  #test += ["Add Column:Column u16" 21<u16>  sum-result
            "Mul Column:Column u16" 32<u16>  mul-result
            "Sub Column:Column u16" 9<u16>  sub-result
            "Div Column:Column u16" 8<u16>  div-result]

Test column math with u32
  x = [1<u32>; 2<u32>; 3<u32>]
  y = [4<u32>; 5<u32>; 6<u32>]
  sum-result = stats/sum(column: x + y)
  mul-result = stats/sum(column: x * y)
  sub-result = stats/sum(column: y - x)
  div-result = stats/sum(column: y / x)
  #test += ["Add Column:Column u32" 21<u32>  sum-result
            "Mul Column:Column u32" 32<u32>  mul-result
            "Sub Column:Column u32" 9<u32>  sub-result
            "Div Column:Column u32" 8<u32>  div-result]

Test column math with u64
  x = [1<u64>; 2<u64>; 3<u64>]
  y = [4<u64>; 5<u64>; 6<u64>]
  sum-result = stats/sum(column: x + y)
  mul-result = stats/sum(column: x * y)
  sub-result = stats/sum(column: y - x)
  div-result = stats/sum(column: y / x)
  #test += ["Add Column:Column u64" 21<u64>  sum-result
            "Mul Column:Column u64" 32<u64>  mul-result
            "Sub Column:Column u64" 9<u64>  sub-result
            "Div Column:Column u64" 8<u64>  div-result]

Test column math with u128
  x = [1<u128>; 2<u128>; 3<u128>]
  y = [4<u128>; 5<u128>; 6<u128>]
  sum-result = stats/sum(column: x + y)
  mul-result = stats/sum(column: x * y)
  sub-result = stats/sum(column: y - x)
  div-result = stats/sum(column: y / x)
  #test += ["Add Column:Column u128" 21<u128>  sum-result
            "Mul Column:Column u128" 32<u128>  mul-result
            "Sub Column:Column u128" 9<u128>  sub-result
            "Div Column:Column u128" 8<u128>  div-result]

Test column math with i8
  x = [1<i8>; 2<i8>; 3<i8>]
  y = [4<i8>; 5<i8>; 6<i8>]
  sum-result = stats/sum(column: x + y)
  mul-result = stats/sum(column: x * y)
  sub-result = stats/sum(column: y - x)
  div-result = stats/sum(column: y / x)
  #test += ["Add Column:Column u8" 21<i8>  sum-result
            "Mul Column:Column u8" 32<i8>  mul-result
            "Sub Column:Column u8" 9<i8>  sub-result
            "Div Column:Column u8" 8<i8>  div-result]

Test column math with i16
  x = [1<i16>; 2<i16>; 3<i16>]
  y = [4<i16>; 5<i16>; 6<i16>]
  sum-result = stats/sum(column: x + y)
  mul-result = stats/sum(column: x * y)
  sub-result = stats/sum(column: y - x)
  div-result = stats/sum(column: y / x)
  #test += ["Add Column:Column u16" 21<i16>  sum-result
            "Mul Column:Column u16" 32<i16>  mul-result
            "Sub Column:Column u16" 9<i16>  sub-result
            "Div Column:Column u16" 8<i16>  div-result]

Test column math with i32
  x = [1<i32>; 2<i32>; 3<i32>]
  y = [4<i32>; 5<i32>; 6<i32>]
  sum-result = stats/sum(column: x + y)
  mul-result = stats/sum(column: x * y)
  sub-result = stats/sum(column: y - x)
  div-result = stats/sum(column: y / x)
  #test += ["Add Column:Column u32" 21<i32>  sum-result
            "Mul Column:Column u32" 32<i32>  mul-result
            "Sub Column:Column u32" 9<i32>  sub-result
            "Div Column:Column u32" 8<i32>  div-result]

Test column math with i64
  x = [1<i64>; 2<i64>; 3<i64>]
  y = [4<i64>; 5<i64>; 6<i64>]
  sum-result = stats/sum(column: x + y)
  mul-result = stats/sum(column: x * y)
  sub-result = stats/sum(column: y - x)
  div-result = stats/sum(column: y / x)
  #test += ["Add Column:Column u64" 21<i64>  sum-result
            "Mul Column:Column u64" 32<i64>  mul-result
            "Sub Column:Column u64" 9<i64>  sub-result
            "Div Column:Column u64" 8<i64>  div-result]

Test column math with i128
  x = [1<i128>; 2<i128>; 3<i128>]
  y = [4<i128>; 5<i128>; 6<i128>]
  sum-result = stats/sum(column: x + y)
  mul-result = stats/sum(column: x * y)
  sub-result = stats/sum(column: y - x)
  div-result = stats/sum(column: y / x)
  #test += ["Add Column:Column u128" 21<i128>  sum-result
            "Mul Column:Column u128" 32<i128>  mul-result
            "Sub Column:Column u128" 9<i128>  sub-result
            "Div Column:Column i128" 8<i128>  div-result]

Test column math with f32
  x = [1<f32>; 2<f32>; 3<f32>]
  y = [4<f32>; 5<f32>; 6<f32>]
  sum-result = stats/sum(column: x + y)
  mul-result = stats/sum(column: x * y)
  sub-result = stats/sum(column: y - x)
  div-result = stats/sum(column: y / x)
  #test += ["Add Column:Column f32" 21<f32>  sum-result
            "Mul Column:Column f32" 32<f32>  mul-result
            "Sub Column:Column f32" 9<f32>  sub-result
            "Div Column:Column f32" 8.5<f32>  div-result]

Test column math with f64
  x = [1<f64>; 2<f64>; 3<f64>]
  y = [4<f64>; 5<f64>; 6<f64>]
  sum-result = stats/sum(column: x + y)
  mul-result = stats/sum(column: x * y)
  sub-result = stats/sum(column: y - x)
  div-result = stats/sum(column: y / x)
  #test += ["Add Column:Column f64" 21<f64>  sum-result
            "Mul Column:Column f64" 32<f64>  mul-result
            "Sub Column:Column f64" 9<f64>  sub-result
            "Div Column:Column f64" 8.5<f64>  div-result]

Scalar : Row
----------------

Test row math with u8
  y = [4<u8> 5<u8> 6<u8>]
  sum-result = stats/sum(row: 4<u8> + y)
  mul-result = stats/sum(row: 4<u8> * y)
  sub-result = stats/sum(row: 10<u8> - y)
  #test += ["Add Scalar:Row u8"  27<u8>  sum-result
            "Mul Scalar:Row u8"  60<u8>  mul-result
            "Sub Scalar:Row u8"  15<u8>  sub-result]

Test row math with u16
  y = [4<u16> 5<u16> 6<u16>]
  sum-result = stats/sum(row: 4<u16> + y)
  mul-result = stats/sum(row: 4<u16> * y)
  sub-result = stats/sum(row: 10<u16> - y)
  #test += ["Add Scalar:Row u16"  27<u16>  sum-result
            "Mul Scalar:Row u16"  60<u16>  mul-result
            "Sub Scalar:Row u16"  15<u16>  sub-result]

Test row math with u32
  y = [4<u32> 5<u32> 6<u32>]
  sum-result = stats/sum(row: 4<u32> + y)
  mul-result = stats/sum(row: 4<u32> * y)
  sub-result = stats/sum(row: 10<u32> - y)
  #test += ["Add Scalar:Row u32"  27<u32>  sum-result
            "Mul Scalar:Row u32"  60<u32>  mul-result
            "Sub Scalar:Row u32"  15<u32>  sub-result]

Test row math with u64
  y = [4<u64> 5<u64> 6<u64>]
  sum-result = stats/sum(row: 4<u64> + y)
  mul-result = stats/sum(row: 4<u64> * y)
  sub-result = stats/sum(row: 10<u64> - y)
  #test += ["Add Scalar:Row u64"  27<u64>  sum-result
            "Mul Scalar:Row u64"  60<u64>  mul-result
            "Sub Scalar:Row u64"  15<u64>  sub-result]

Test row math with u128
  y = [4<u128> 5<u128> 6<u128>]
  sum-result = stats/sum(row: 4<u128> + y)
  mul-result = stats/sum(row: 4<u128> * y)
  sub-result = stats/sum(row: 10<u128> - y)
  #test += ["Add Scalar:Row u128" 27<u128>  sum-result
            "Mul Scalar:Row u128"  60<u128>  mul-result
            "Sub Scalar:Row u128"  15<u128>  sub-result]

Test row math with f32
  y = [4<f32> 5<f32> 6<f32>]
  sum-result = stats/sum(row: 4<f32> + y)
  mul-result = stats/sum(row: 4<f32> * y)
  sub-result = stats/sum(row: 4<f32> - y)
  #test += ["Add Scalar:Row f32" 27<f32>  sum-result
            "Mul Scalar:Row f32"  60<f32>  mul-result
            "Sub Scalar:Row f32"  -3<f32>  sub-result]

Test row math with f64
  y = [4<f64> 5<f64> 6<f64>]
  sum-result = stats/sum(row: 4<f64> + y)
  mul-result = stats/sum(row: 4<f64> * y)
  sub-result = stats/sum(row: 4<f64> - y)
  #test += ["Add Scalar:Row f64"  27<f64>  sum-result
            "Mul Scalar:Row f64"  60<f64>  mul-result
            "Sub Scalar:Row f64"  -3<f64>  sub-result]

Test row math with i8
  y = [4<i8> 5<i8> 6<i8>]
  sum-result = stats/sum(row: 4<i8> + y)
  mul-result = stats/sum(row: 4<i8> * y)
  sub-result = stats/sum(row: 4<i8> - y)
  #test += ["Add Scalar:Row i8"  27<i8>  sum-result
            "Mul Scalar:Row i8"  60<i8>  mul-result
            "Sub Scalar:Row i8"  -3<i8>  sub-result]

Test row math with i16
  y = [4<i16> 5<i16> 6<i16>]
  sum-result = stats/sum(row: 4<i16> + y)
  mul-result = stats/sum(row: 4<i16> * y)
  sub-result = stats/sum(row: 4<i16> - y)
  #test += ["Add Scalar:Row i16"  27<i16>  sum-result
            "Mul Scalar:Row i16"  60<i16>  mul-result
            "Sub Scalar:Row i16"  -3<i16>  sub-result]

Test row math with i32
  y = [4<i32> 5<i32> 6<i32>]
  sum-result = stats/sum(row: 4<i32> + y)
  mul-result = stats/sum(row: 4<i32> * y)
  sub-result = stats/sum(row: 4<i32> - y)
  #test += ["Add Scalar:Row i32"  27<i32>  sum-result
            "Mul Scalar:Row i32"  60<i32>  mul-result
            "Sub Scalar:Row i32"  -3<i32>  sub-result]

Test row math with i64
  y = [4<i64> 5<i64> 6<i64>]
  sum-result = stats/sum(row: 4<i64> + y)
  mul-result = stats/sum(row: 4<i64> * y)
  sub-result = stats/sum(row: 4<i64> - y)
  #test += ["Add Scalar:Row i64"  27<i64>  sum-result
            "Mul Scalar:Row i64"  60<i64>  mul-result
            "Sub Scalar:Row i64"  -3<i64>  sub-result]

Test row math with i128
  y = [4<i128> 5<i128> 6<i128>]
  sum-result = stats/sum(row: 4<i128> + y)
  mul-result = stats/sum(row: 4<i128> * y)
  sub-result = stats/sum(row: 4<i128> - y)
  #test += ["Add Scalar:Row i128"  27<i128>  sum-result
            "Mul Scalar:Row i128"  60<i128>  mul-result
            "Sub Scalar:Row i128"  -3<i128>  sub-result]
            
Row : Scalar
----------------

Test row math with u8
  y = [14<u8> 15<u8> 16<u8>]
  sum-result = stats/sum(row: y + 4<u8>)
  mul-result = stats/sum(row: y * 4<u8>)
  sub-result = stats/sum(row: y - 10<u8>)
  #test += ["Add Row:Scalar u8"  57<u8>  sum-result
            "Mul Row:Scalar u8"  180<u8>  mul-result
            "Sub Row:Scalar u8"  15<u8>  sub-result]

Test row math with u16
  y = [14<u16> 15<u16> 16<u16>]
  sum-result = stats/sum(row: y + 4<u16>)
  mul-result = stats/sum(row: y * 4<u16>)
  sub-result = stats/sum(row: y - 10<u16>)
  #test += ["Add Row:Scalar u16"  57<u16>  sum-result
            "Mul Row:Scalar u16"  180<u16>  mul-result
            "Sub Row:Scalar u16"  15<u16>  sub-result]
    
Test row math with u32
  y = [14<u32> 15<u32> 16<u32>]
  sum-result = stats/sum(row: y + 4<u32>)
  mul-result = stats/sum(row: y * 4<u32>)
  sub-result = stats/sum(row: y - 10<u32>)
  #test += ["Add Row:Scalar u32"  57<u32>  sum-result
            "Mul Row:Scalar u32"  180<u32>  mul-result
            "Sub Row:Scalar u32"  15<u32>  sub-result]

Test row math with u64
  y = [14<u64> 15<u64> 16<u64>]
  sum-result = stats/sum(row: y + 4<u64>)
  mul-result = stats/sum(row: y * 4<u64>)
  sub-result = stats/sum(row: y - 10<u64>)
  #test += ["Add Row:Scalar u64"  57<u64>  sum-result
            "Mul Row:Scalar u64"  180<u64>  mul-result
            "Sub Row:Scalar u64"  15<u64>  sub-result]

Test row math with u128
  y = [14<u128> 15<u128> 16<u128>]
  sum-result = stats/sum(row: y + 4<u128>)
  mul-result = stats/sum(row: y * 4<u128>)
  sub-result = stats/sum(row: y - 10<u128>)
  #test += ["Add Row:Scalar u128"  57<u128>  sum-result
            "Mul Row:Scalar u128"  180<u128>  mul-result
            "Sub Row:Scalar u128"  15<u128>  sub-result]

Test row math with i8

Test row math with i16
  y = [14<i16> 15<i16> 16<i16>]
  sum-result = stats/sum(row: y + 4<i16>)
  mul-result = stats/sum(row: y * 4<i16>)
  sub-result = stats/sum(row: y - 10<i16>)
  #test += ["Add Row:Scalar i16"  57<i16>  sum-result
            "Mul Row:Scalar i16"  180<i16>  mul-result
            "Sub Row:Scalar i16"  15<i16>  sub-result]

Test row math with i32
  y = [14<i32> 15<i32> 16<i32>]
  sum-result = stats/sum(row: y + 4<i32>)
  mul-result = stats/sum(row: y * 4<i32>)
  sub-result = stats/sum(row: y - 10<i32>)
  #test += ["Add Row:Scalar i32"  57<i32>  sum-result
            "Mul Row:Scalar i32"  180<i32>  mul-result
            "Sub Row:Scalar i32"  15<i32>  sub-result]

Test row math with i64
  y = [14<i64> 15<i64> 16<i64>]
  sum-result = stats/sum(row: y + 4<i64>)
  mul-result = stats/sum(row: y * 4<i64>)
  sub-result = stats/sum(row: y - 10<i64>)
  #test += ["Add Row:Scalar i64"  57<i64>  sum-result
            "Mul Row:Scalar i64"  180<i64>  mul-result
            "Sub Row:Scalar i64"  15<i64>  sub-result]

Test row math with i128
  y = [14<i128> 15<i128> 16<i128>]
  sum-result = stats/sum(row: y + 4<i128>)
  mul-result = stats/sum(row: y * 4<i128>)
  sub-result = stats/sum(row: y - 10<i128>)
  #test += ["Add Row:Scalar i128"  57<i128>  sum-result
            "Mul Row:Scalar i128"  180<i128>  mul-result
            "Sub Row:Scalar i128"  15<i128>  sub-result]

Test row math with f32
  y = [14<f32> 15<f32> 16<f32>]
  sum-result = stats/sum(row: y + 4<f32>)
  mul-result = stats/sum(row: y * 4<f32>)
  sub-result = stats/sum(row: y - 10<f32>)
  #test += ["Add Row:Scalar f32"  57<f32>  sum-result
            "Mul Row:Scalar f32"  180<f32>  mul-result
            "Sub Row:Scalar f32"  15<f32>  sub-result]
    
Test row math with f64
  y = [14<f64> 15<f64> 16<f64>]
  sum-result = stats/sum(row: y + 4<f64>)
  mul-result = stats/sum(row: y * 4<f64>)
  sub-result = stats/sum(row: y - 10<f64>)
  #test += ["Add Row:Scalar f64"  57<f64>  sum-result
            "Mul Row:Scalar f64"  180<f64>  mul-result
            "Sub Row:Scalar f64"  15<f64>  sub-result]


Scalar : Column
----------------

Test column math with u8
  y = [4<u8>; 5<u8>; 6<u8>]
  sum-result = stats/sum(column: 4<u8> + y)
  mul-result = stats/sum(column: 4<u8> * y)
  sub-result = stats/sum(column: 10<u8> - y)
  div-result = stats/sum(column: 120<u8> / y)
  #test += ["Add Scalar:Column u8"  27<u8>  sum-result
            "Mul Scalar:Column u8"  60<u8>  mul-result
            "Sub Scalar:Column u8"  15<u8>  sub-result
            "Div Scalar:Column u8"  74<u8>  div-result]

Test column math with u16
  y = [4<u16>; 5<u16>; 6<u16>]
  sum-result = stats/sum(column: 4<u16> + y)
  mul-result = stats/sum(column: 4<u16> * y)
  sub-result = stats/sum(column: 10<u16> - y)
  div-result = stats/sum(column: 120<u16> / y)
  #test += ["Add Scalar:Column u16"  27<u16>  sum-result
            "Mul Scalar:Column u16"  60<u16>  mul-result
            "Sub Scalar:Column u16"  15<u16>  sub-result
            "Div Scalar:Column u16"  74<u16>  div-result]

Test column math with u32
  y = [4<u32>; 5<u32>; 6<u32>]
  sum-result = stats/sum(column: 4<u32> + y)
  mul-result = stats/sum(column: 4<u32> * y)
  sub-result = stats/sum(column: 10<u32> - y)
  div-result = stats/sum(column: 120<u32> / y)
  #test += ["Add Scalar:Column u32"  27<u32>  sum-result
            "Mul Scalar:Column u32"  60<u32>  mul-result
            "Sub Scalar:Column u32"  15<u32>  sub-result
            "Div Scalar:Column u32"  74<u32>  div-result]

Test column math with u64
  y = [4<u64>; 5<u64>; 6<u64>]
  sum-result = stats/sum(column: 4<u64> + y)
  mul-result = stats/sum(column: 4<u64> * y)
  sub-result = stats/sum(column: 10<u64> - y)
  div-result = stats/sum(column: 120<u64> / y)
  #test += ["Add Scalar:Column u64"  27<u64>  sum-result
            "Mul Scalar:Column u64"  60<u64>  mul-result
            "Sub Scalar:Column u64"  15<u64>  sub-result
            "Div Scalar:Column u64"  74<u64>  div-result]

Test column math with u128
  y = [4<u128>; 5<u128>; 6<u128>]
  sum-result = stats/sum(column: 4<u128> + y)
  mul-result = stats/sum(column: 4<u128> * y)
  sub-result = stats/sum(column: 10<u128> - y)
  div-result = stats/sum(column: 120<u128> / y)
  #test += ["Add Scalar:Column u128"  27<u128>  sum-result
            "Mul Scalar:Column u128"  60<u128>  mul-result
            "Sub Scalar:Column u128"  15<u128>  sub-result
            "Div Scalar:Column u128"  74<u128>  div-result]

Test column math with f32
  y = [4<f32>; 5<f32>; 6<f32>]
  sum-result = stats/sum(column: 4<f32> + y)
  mul-result = stats/sum(column: 4<f32> * y)
  sub-result = stats/sum(column: 10<f32> - y)
  div-result = stats/sum(column: 120<f32> / y)
  #test += ["Add Scalar:Column f32"  27<f32>  sum-result
            "Mul Scalar:Column f32"  60<f32>  mul-result
            "Sub Scalar:Column f32"  15<f32>  sub-result
            "Div Scalar:Column f32"  74<f32>  div-result]

Test column math with f64
  y = [4<f64>; 5<f64>; 6<f64>]
  sum-result = stats/sum(column: 4<f64> + y)
  mul-result = stats/sum(column: 4<f64> * y)
  sub-result = stats/sum(column: 10<f64> - y)
  div-result = stats/sum(column: 120<f64> / y)
  #test += ["Add Scalar:Column f64"  27<f64>  sum-result
            "Mul Scalar:Column f64"  60<f64>  mul-result
            "Sub Scalar:Column f64"  15<f64>  sub-result
            "Div Scalar:Column f64"  74<f64>  div-result]

Test column math with i8
  y = [4<i8>; 5<i8>; 6<i8>]
  sum-result = stats/sum(column: 4<i8> + y)
  mul-result = stats/sum(column: 4<i8> * y)
  sub-result = stats/sum(column: 4<i8> - y)
  div-result = stats/sum(column: 120<i8> / y)
  #test += ["Add Scalar:Column i8"  27<i8>  sum-result
            "Mul Scalar:Column i8"  60<i8>  mul-result
            "Sub Scalar:Column i8"  -3<i8>  sub-result
            "Div Scalar:Column i8"  74<i8>  div-result]

Test column math with i16
  y = [4<i16>; 5<i16>; 6<i16>]
  sum-result = stats/sum(column: 4<i16> + y)
  mul-result = stats/sum(column: 4<i16> * y)
  sub-result = stats/sum(column: 4<i16> - y)
  div-result = stats/sum(column: 120<i16> / y)
  #test += ["Add Scalar:Column i16"  27<i16>  sum-result
            "Mul Scalar:Column i16"  60<i16>  mul-result
            "Sub Scalar:Column i16"  -3<i16>  sub-result
            "Div Scalar:Column i16"  74<i16>  div-result]

Test column math with i32
  y = [4<i32>; 5<i32>; 6<i32>]
  sum-result = stats/sum(column: 4<i32> + y)
  mul-result = stats/sum(column: 4<i32> * y)
  sub-result = stats/sum(column: 4<i32> - y)
  div-result = stats/sum(column: 120<i32> / y)
  #test += ["Add Scalar:Column i32"  27<i32>  sum-result
            "Mul Scalar:Column i32"  60<i32>  mul-result
            "Sub Scalar:Column i32"  -3<i32>  sub-result
            "Div Scalar:Column i32"  74<i32>  div-result]

Test column math with i64
  y = [4<i64>; 5<i64>; 6<i64>]
  sum-result = stats/sum(column: 4<i64> + y)
  mul-result = stats/sum(column: 4<i64> * y)
  sub-result = stats/sum(column: 4<i64> - y)
  div-result = stats/sum(column: 120<i64> / y)
  #test += ["Add Scalar:Column i64"  27<i64>  sum-result
            "Mul Scalar:Column i64"  60<i64>  mul-result
            "Sub Scalar:Column i64"  -3<i64>  sub-result
            "Div Scalar:Column i64"  74<i64>  div-result]

Test column math with i128
  y = [4<i128>; 5<i128>; 6<i128>]
  sum-result = stats/sum(column: 4<i128> + y)
  mul-result = stats/sum(column: 4<i128> * y)
  sub-result = stats/sum(column: 4<i128> - y)
  div-result = stats/sum(column: 120<i128> / y)
  #test += ["Add Scalar:Column i128"  27<i128>  sum-result
            "Mul Scalar:Column i128"  60<i128>  mul-result
            "Sub Scalar:Column i128"  -3<i128>  sub-result
            "Div Scalar:Column i128"  74<i128>  div-result]


Column : Scalar
----------------

Test column math with u8
  y = [14<u8>; 15<u8>; 16<u8>]
  sum-result = stats/sum(column: y + 4<u8>)
  mul-result = stats/sum(column: y * 4<u8>)
  sub-result = stats/sum(column: y - 10<u8>)
  #test += ["Add Column:Scalar u8"  57<u8>  sum-result
            "Mul Column:Scalar u8"  180<u8>  mul-result
            "Sub Column:Scalar u8"  15<u8>  sub-result]

Test column math with u16
  y = [14<u16>; 15<u16>; 16<u16>]
  sum-result = stats/sum(column: y + 4<u16>)
  mul-result = stats/sum(column: y * 4<u16>)
  sub-result = stats/sum(column: y - 10<u16>)
  #test += ["Add Column:Scalar u16"  57<u16>  sum-result
            "Mul Column:Scalar u16"  180<u16>  mul-result
            "Sub Column:Scalar u16"  15<u16>  sub-result]

Test column math with u32
  y = [14<u32>; 15<u32>; 16<u32>]
  sum-result = stats/sum(column: y + 4<u32>)
  mul-result = stats/sum(column: y * 4<u32>)
  sub-result = stats/sum(column: y - 10<u32>)
  #test += ["Add Column:Scalar u32"  57<u32>  sum-result
            "Mul Column:Scalar u32"  180<u32>  mul-result
            "Sub Column:Scalar u32"  15<u32>  sub-result]

Test column math with u64
  y = [14<u64>; 15<u64>; 16<u64>]
  sum-result = stats/sum(column: y + 4<u64>)
  mul-result = stats/sum(column: y * 4<u64>)
  sub-result = stats/sum(column: y - 10<u64>)
  #test += ["Add Column:Scalar u64"  57<u64>  sum-result
            "Mul Column:Scalar u64"  180<u64>  mul-result
            "Sub Column:Scalar u64"  15<u64>  sub-result]

Test column math with u128
  y = [14<u128>; 15<u128>; 16<u128>]
  sum-result = stats/sum(column: y + 4<u128>)
  mul-result = stats/sum(column: y * 4<u128>)
  sub-result = stats/sum(column: y - 10<u128>)
  #test += ["Add Column:Scalar u128"  57<u128>  sum-result
            "Mul Column:Scalar u128"  180<u128>  mul-result
            "Sub Column:Scalar u128"  15<u128>  sub-result]

Test column math with i8
  y = [4<i8>; 5<i8>; 6<i8>]
  sum-result = stats/sum(column: y + 4<i8>)
  mul-result = stats/sum(column: y * 4<i8>)
  sub-result = stats/sum(column: y - 4<i8>)
  #test += ["Add Column:Scalar i8"  27<i8>  sum-result
            "Mul Column:Scalar i8"  60<i8>  mul-result
            "Sub Column:Scalar i8"  3<i8>  sub-result]

Test column math with i16
  y = [4<i16>; 5<i16>; 6<i16>]
  sum-result = stats/sum(column: y + 4<i16>)
  mul-result = stats/sum(column: y * 4<i16>)
  sub-result = stats/sum(column: y - 4<i16>)
  #test += ["Add Column:Scalar i16"  27<i16>  sum-result
            "Mul Column:Scalar i16"  60<i16>  mul-result
            "Sub Column:Scalar i16"  3<i16>  sub-result]

Test column math with i32
  y = [4<i32>; 5<i32>; 6<i32>]
  sum-result = stats/sum(column: y + 4<i32>)
  mul-result = stats/sum(column: y * 4<i32>)
  sub-result = stats/sum(column: y - 4<i32>)
  #test += ["Add Column:Scalar i32"  27<i32>  sum-result
            "Mul Column:Scalar i32"  60<i32>  mul-result
            "Sub Column:Scalar i32"  3<i32>  sub-result]
      
Test column math with i64
  y = [4<i64>; 5<i64>; 6<i64>]
  sum-result = stats/sum(column: y + 4<i64>)
  mul-result = stats/sum(column: y * 4<i64>)
  sub-result = stats/sum(column: y - 4<i64>)
  #test += ["Add Column:Scalar i64"  27<i64>  sum-result
            "Mul Column:Scalar i64"  60<i64>  mul-result
            "Sub Column:Scalar i64"  3<i64>  sub-result]
      
Test column math with i128
  y = [4<i128>; 5<i128>; 6<i128>]
  sum-result = stats/sum(column: y + 4<i128>)
  mul-result = stats/sum(column: y * 4<i128>)
  sub-result = stats/sum(column: y - 4<i128>)
  #test += ["Add Column:Scalar i128"  27<i128>  sum-result
            "Mul Column:Scalar i128"  60<i128>  mul-result
            "Sub Column:Scalar i128"  3<i128>  sub-result]

Table : Table
----------------

Test table math with f32
  x = [1<f32> 2<f32>; 3<f32> 4<f32>]
  y = [1<f32> 2<f32>; 3<f32> 4<f32>]
  sum = x + y
  mul = x * y
  div = x / y
  sub = x - y
  sum-result = stats/sum(table: sum)
  mul-result = stats/sum(table: mul)
  div-result = stats/sum(table: div)
  sub-result = stats/sum(table: sub)
  #test += ["Add Table:Table f32"  20.0<f32>  sum-result
            "Mul Table:Table f32"  30.0<f32>  mul-result
            "Div Table:Table f32"  4.0<f32>  div-result
            "Sub Table:Table f32"  0.0<f32>  sub-result]

Test table math with f64
  x = [1<f64> 2<f64>; 3<f64> 4<f64>]
  y = [1<f64> 2<f64>; 3<f64> 4<f64>]
  sum = x + y
  mul = x * y
  div = x / y
  sub = x - y
  sum-result = stats/sum(table: sum)
  mul-result = stats/sum(table: mul)
  div-result = stats/sum(table: div)
  sub-result = stats/sum(table: sub)
  #test += ["Add Table:Table f64"  20.0<f64>  sum-result
            "Mul Table:Table f64"  30.0<f64>  mul-result
            "Div Table:Table f64"  4.0<f64>  div-result
            "Sub Table:Table f64"  0.0<f64>  sub-result]


Test table math with u8
  x = [1<u8> 2<u8>; 3<u8> 4<u8>]
  y = [1<u8> 2<u8>; 3<u8> 4<u8>]
  sum = x + y
  mul = x * y
  div = x / y
  sub = x - y
  sum-result = stats/sum(table: sum)
  mul-result = stats/sum(table: mul)
  div-result = stats/sum(table: div)
  sub-result = stats/sum(table: sub)
  #test += ["Add Table:Table u8"  20<u8>  sum-result
            "Mul Table:Table u8"  30<u8>  mul-result
            "Div Table:Table u8"  4<u8>  div-result
            "Sub Table:Table u8"  0<u8>  sub-result]



Test table math with u32
  x = [1<u32> 2<u32>; 3<u32> 4<u32>]
  y = [1<u32> 2<u32>; 3<u32> 4<u32>]
  sum = x + y
  mul = x * y
  div = x / y
  sub = x - y
  sum-result = stats/sum(table: sum)
  mul-result = stats/sum(table: mul)
  div-result = stats/sum(table: div)
  sub-result = stats/sum(table: sub)
  #test += ["Add Table:Table u32"  20<u32>  sum-result
            "Mul Table:Table u32"  30<u32>  mul-result
            "Div Table:Table u32"  4<u32>  div-result
            "Sub Table:Table u32"  0<u32>  sub-result]

Test table math with u64
  x = [1<u64> 2<u64>; 3<u64> 4<u64>]
  y = [1<u64> 2<u64>; 3<u64> 4<u64>]
  sum = x + y
  mul = x * y
  div = x / y
  sub = x - y
  sum-result = stats/sum(table: sum)
  mul-result = stats/sum(table: mul)
  div-result = stats/sum(table: div)
  sub-result = stats/sum(table: sub)
  #test += ["Add Table:Table u64"  20<u64>  sum-result
            "Mul Table:Table u64"  30<u64>  mul-result
            "Div Table:Table u64"  4<u64>  div-result
            "Sub Table:Table u64"  0<u64>  sub-result]
          
Test table math with u128
  x = [1<u128> 2<u128>; 3<u128> 4<u128>]
  y = [1<u128> 2<u128>; 3<u128> 4<u128>]
  sum = x + y
  mul = x * y
  div = x / y
  sub = x - y
  sum-result = stats/sum(table: sum)
  mul-result = stats/sum(table: mul)
  div-result = stats/sum(table: div)
  sub-result = stats/sum(table: sub)
  #test += ["Add Table:Table u128"  20<u128>  sum-result
            "Mul Table:Table u128"  30<u128>  mul-result
            "Div Table:Table u128"  4<u128>  div-result
            "Sub Table:Table u128"  0<u128>  sub-result]

Test table math with i8
  x = [1<i8> 2<i8>; 3<i8> 4<i8>]
  y = [1<i8> 2<i8>; 3<i8> 4<i8>]
  sum = x + y
  mul = x * y
  div = x / y
  sub = x - y
  sum-result = stats/sum(table: sum)
  mul-result = stats/sum(table: mul)
  div-result = stats/sum(table: div)
  sub-result = stats/sum(table: sub)
  #test += ["Add Table:Table i8"  20<i8>  sum-result
            "Mul Table:Table i8"  30<i8>  mul-result
            "Div Table:Table i8"  4<i8>  div-result
            "Sub Table:Table i8"  0<i8>  sub-result]

Test table math with i32
  x = [1<i32> 2<i32>; 3<i32> 4<i32>]
  y = [1<i32> 2<i32>; 3<i32> 4<i32>]
  sum = x + y
  mul = x * y
  div = x / y
  sub = x - y
  sum-result = stats/sum(table: sum)
  mul-result = stats/sum(table: mul)
  div-result = stats/sum(table: div)
  sub-result = stats/sum(table: sub)
  #test += ["Add Table:Table i32"  20<i32>  sum-result
            "Mul Table:Table i32"  30<i32>  mul-result
            "Div Table:Table i32"  4<i32>  div-result
            "Sub Table:Table i32"  0<i32>  sub-result]

Test table math with i64
  x = [1<i64> 2<i64>; 3<i64> 4<i64>]
  y = [1<i64> 2<i64>; 3<i64> 4<i64>]
  sum = x + y
  mul = x * y
  div = x / y
  sub = x - y
  sum-result = stats/sum(table: sum)
  mul-result = stats/sum(table: mul)
  div-result = stats/sum(table: div)
  sub-result = stats/sum(table: sub)
  #test += ["Add Table:Table i64"  20<i64>  sum-result
            "Mul Table:Table i64"  30<i64>  mul-result
            "Div Table:Table i64"  4<i64>  div-result
            "Sub Table:Table i64"  0<i64>  sub-result]
          
Test table math with i128
  x = [1<i128> 2<i128>; 3<i128> 4<i128>]
  y = [1<i128> 2<i128>; 3<i128> 4<i128>]
  sum = x + y
  mul = x * y
  div = x / y
  sub = x - y
  sum-result = stats/sum(table: sum)
  mul-result = stats/sum(table: mul)
  div-result = stats/sum(table: div)
  sub-result = stats/sum(table: sub)
  #test += ["Add Table:Table i128"  20<i128>  sum-result
            "Mul Table:Table i128"  30<i128>  mul-result
            "Div Table:Table i128"  4<i128>  div-result
            "Sub Table:Table i128"  0<i128>  sub-result]