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
// COPROSIZE VERSION 1.0.0 / THE MIT LICENSE (MIT) © 2022 PIOTR BAJDEK

// LIBRARY

// CITATION

pub fn citation() {

   println!("Bajdek, P., 2022. coprosize (version 1.0.0). [computer software] https://github.com/piotrbajdek/coprosize");
   }

// CARNIVOROUS AMNIOTA

pub fn carnivorous_amniota(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.4839053017);
   let mass = 0.0030393430 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0030393430 * {}", diameter.to_owned() + "²·⁴⁸³⁹⁰⁵³⁰¹⁷" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant carnivorous synapsids and sauropsids" + clear);
   }

// CARNIVOROUS AMPHIBIA

pub fn carnivorous_amphibia(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power1 = f32::powi(dcal as f32, 3);
   let power2 = f32::powi(dcal as f32, 2);
   let mass = (0.0004064349 * power1) - (0.0041616775 * power2) + (0.0147514015 * dcal) - 0.0122201640;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0004064349 * {}", diameter.to_owned() + "³ - 0.0041616775 * " + diameter + "² + 0.0147514015 * " + diameter + " - 0.0122201640" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant carnivorous batrachians" + clear);
   }

// CARNIVOROUS ARCHOSAURIA

pub fn carnivorous_archosauria(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.3933363596);
   let mass = 0.0056582325 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0056582325 * {}", diameter.to_owned() + "²·³⁹³³³⁶³⁵⁹⁶" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant carnivorous birds and crocodilians" + clear);
   }

// CARNIVOROUS FELIDAE

pub fn carnivorous_felidae(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 3.7646426827);
   let mass = 0.0001836115 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0001836115 * {}", diameter.to_owned() + "³·⁷⁶⁴⁶⁴²⁶⁸²⁷" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant carnivorous felids" + clear);
   }

// CARNIVOROUS MAMMALIA

pub fn carnivorous_mammalia(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.6010376216);
   let mass = 0.0029493394 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0029493394 * {}", diameter.to_owned() + "²·⁶⁰¹⁰³⁷⁶²¹⁶" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant carnivorous placentals and monotremes" + clear);
   }

// CARNIVOROUS SQUAMATA

pub fn carnivorous_squamata(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.3414629141);
   let mass = 0.0004822862 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0004822862 * {}", diameter.to_owned() + "²·³⁴¹⁴⁶²⁹¹⁴¹" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant carnivorous squamates" + clear);
   }

// CARNIVOROUS TETRAPODA

pub fn carnivorous_tetrapoda(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.6157600696);
   let mass = 0.0017879339 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0017879339 * {}", diameter.to_owned() + "²·⁶¹⁵⁷⁶⁰⁰⁶⁹⁶" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant carnivorous amphibians and amniotes" + clear);
   }

// HERBIVOROUS AFROTHERIA

pub fn herbivorous_afrotheria(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.7889164772);
   let mass = 0.0024866807 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0024866807 * {}", diameter.to_owned() + "²·⁷⁸⁸⁹¹⁶⁴⁷⁷²" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous afrotherians" + clear);
   }

// HERBIVOROUS AMNIOTA

pub fn herbivorous_amniota(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.2123196655);
   let mass = 0.0733160890 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0733160890 * {}", diameter.to_owned() + "²·²¹²³¹⁹⁶⁶⁵⁵" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous synapsids and sauropsids" + clear);
   }

// HERBIVOROUS ARTIODACTYLA

pub fn herbivorous_artiodactyla(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.3109191553);
   let mass = 0.4817803510 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.4817803510 * {}", diameter.to_owned() + "²·³¹⁰⁹¹⁹¹⁵⁵³" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous artiodactyls" + clear);
   }

// HERBIVOROUS AVES

pub fn herbivorous_aves(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.8100206869);
   let mass = 0.0078389131 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0078389131 * {}", diameter.to_owned() + "²·⁸¹⁰⁰²⁰⁶⁸⁶⁹" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous birds" + clear);
   }

// HERBIVOROUS BOVIDAE

pub fn herbivorous_bovidae(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.1885588774);
   let mass = 0.6525042837 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.6525042837 * {}", diameter.to_owned() + "²·¹⁸⁸⁵⁵⁸⁸⁷⁷⁴" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous bovids" + clear);
   }

// HERBIVOROUS CERVIDAE

pub fn herbivorous_cervidae(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 3.4595227094);
   let mass = 0.0209279246 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0209279246 * {}", diameter.to_owned() + "³·⁴⁵⁹⁵²²⁷⁰⁹⁴" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous cervids" + clear);
   }

// HERBIVOROUS LAGOMORPHA

pub fn herbivorous_lagomorpha(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.3225288441);
   let mass = 0.0083097861 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0083097861 * {}", diameter.to_owned() + "²·³²²⁵²⁸⁸⁴⁴¹" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous lagomorphs" + clear);
   }

// HERBIVOROUS MAMMALIA

pub fn herbivorous_mammalia(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.1815554929);
   let mass = 0.0859205551 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0859205551 * {}", diameter.to_owned() + "²·¹⁸¹⁵⁵⁵⁴⁹²⁹" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous placentals and marsupials" + clear);
   }

// HERBIVOROUS MARSUPIALIA

pub fn herbivorous_marsupialia(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.2193247015);
   let mass = 0.0224440978 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0224440978 * {}", diameter.to_owned() + "²·²¹⁹³²⁴⁷⁰¹⁵" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous marsupials" + clear);
   }

// HERBIVOROUS PLACENTALIA

pub fn herbivorous_placentalia(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.2424443852);
   let mass = 0.0879148644 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0879148644 * {}", diameter.to_owned() + "²·²⁴²⁴⁴⁴³⁸⁵²" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous placentals" + clear);
   }

// HERBIVOROUS REPTILIA

pub fn herbivorous_reptilia(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.8272692414);
   let mass = 0.0076217107 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0076217107 * {}", diameter.to_owned() + "²·⁸²⁷²⁶⁹²⁴¹⁴" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous birds and turtles" + clear);
   }

// HERBIVOROUS RODENTIA

pub fn herbivorous_rodentia(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.2974489103);
   let mass = 0.0196247359 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0196247359 * {}", diameter.to_owned() + "²·²⁹⁷⁴⁴⁸⁹¹⁰³" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous rodents" + clear);
   }

// OMNIVOROUS AMNIOTA

pub fn omnivorous_amniota(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.2146716042);
   let mass = 0.0128321404 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0128321404 * {}", diameter.to_owned() + "²·²¹⁴⁶⁷¹⁶⁰⁴²" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant omnivorous synapsids and sauropsids" + clear);
   }

// OMNIVOROUS ARTIODACTYLA

pub fn omnivorous_artiodactyla(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 1.0887395414);
   let mass = 1.2390608405 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 1.2390608405 * {}", diameter.to_owned() + "¹·⁰⁸⁸⁷³⁹⁵⁴¹⁴" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant omnivorous artiodactyls" + clear);
   }

// OMNIVOROUS AVES

pub fn omnivorous_aves(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 3.0157553176);
   let mass = 0.0014342026 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0014342026 * {}", diameter.to_owned() + "³·⁰¹⁵⁷⁵⁵³¹⁷⁶" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant omnivorous birds" + clear);
   }

// OMNIVOROUS MAMMALIA

pub fn omnivorous_mammalia(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.0562969771);
   let mass = 0.0223667325 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0223667325 * {}", diameter.to_owned() + "²·⁰⁵⁶²⁹⁶⁹⁷⁷¹" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant omnivorous placentals and marsupials" + clear);
   }

// OMNIVOROUS RODENTIA

pub fn omnivorous_rodentia(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 1.6780088221);
   let mass = 0.0331020696 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0331020696 * {}", diameter.to_owned() + "¹·⁶⁷⁸⁰⁰⁸⁸²²¹" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant omnivorous rodents" + clear);
   }

// UNSPECIFIED CANIDAE

pub fn unspecified_canidae(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.0396557894);
   let mass = 0.0205937247 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0205937247 * {}", diameter.to_owned() + "²·⁰³⁹⁶⁵⁵⁷⁸⁹⁴" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant carnivorous and omnivorous canids" + clear);
   }

// UNSPECIFIED CARNIVORA

pub fn unspecified_carnivora(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.8590076963);
   let mass = 0.0015578285 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0015578285 * {}", diameter.to_owned() + "²·⁸⁵⁹⁰⁰⁷⁶⁹⁶³" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant carnivorous and omnivorous carnivorans" + clear);
   }

// UNSPECIFIED CRICETIDAE

pub fn unspecified_cricetidae(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(1.8766049284, dcal as f32);
   let mass = 0.0180745732 * power;

   let str1 = diameter;
   let str2 = &str1.replace(".", "·");
   let str3 = &str2.replace("0", "⁰");
   let str4 = &str3.replace("1", "¹");
   let str5 = &str4.replace("2", "²");
   let str6 = &str5.replace("3", "³");
   let str7 = &str6.replace("4", "⁴");
   let str8 = &str7.replace("5", "⁵");
   let str9 = &str8.replace("6", "⁶");
   let str10 = &str9.replace("7", "⁷");
   let str11 = &str10.replace("8", "⁸");
   let dmpw = &str11.replace("9", "⁹");

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0180745732 * 1.8766049284{}", dmpw.to_owned() + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous and omnivorous cricetids" + clear);
   }

// UNSPECIFIED HERPESTIDAE

pub fn unspecified_herpestidae(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(1.0767216732, dcal as f32);
   let mass = 0.3503054969 * power;

   let str1 = diameter;
   let str2 = &str1.replace(".", "·");
   let str3 = &str2.replace("0", "⁰");
   let str4 = &str3.replace("1", "¹");
   let str5 = &str4.replace("2", "²");
   let str6 = &str5.replace("3", "³");
   let str7 = &str6.replace("4", "⁴");
   let str8 = &str7.replace("5", "⁵");
   let str9 = &str8.replace("6", "⁶");
   let str10 = &str9.replace("7", "⁷");
   let str11 = &str10.replace("8", "⁸");
   let dmpw = &str11.replace("9", "⁹");

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.3503054969 * 1.0767216732{}", dmpw.to_owned() + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant carnivorous and omnivorous herpestids" + clear);
   }

// UNSPECIFIED MARSUPIALIA

pub fn unspecified_marsupialia(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.1922202080);
   let mass = 0.0231733783 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0231733783 * {}", diameter.to_owned() + "²·¹⁹²²²⁰²⁰⁸⁰" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous and omnivorous marsupials" + clear);
   }

// UNSPECIFIED MUSTELIDAE

pub fn unspecified_mustelidae(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.5225036146);
   let mass = 0.0038273352 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0038273352 * {}", diameter.to_owned() + "²·⁵²²⁵⁰³⁶¹⁴⁶" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant carnivorous and omnivorous mustelids" + clear);
   }

// UNSPECIFIED SCIURIDAE

pub fn unspecified_sciuridae(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(1.7069919381, dcal as f32);
   let mass = 0.0384600726 * power;

   let str1 = diameter;
   let str2 = &str1.replace(".", "·");
   let str3 = &str2.replace("0", "⁰");
   let str4 = &str3.replace("1", "¹");
   let str5 = &str4.replace("2", "²");
   let str6 = &str5.replace("3", "³");
   let str7 = &str6.replace("4", "⁴");
   let str8 = &str7.replace("5", "⁵");
   let str9 = &str8.replace("6", "⁶");
   let str10 = &str9.replace("7", "⁷");
   let str11 = &str10.replace("8", "⁸");
   let dmpw = &str11.replace("9", "⁹");

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0384600726 * 1.7069919381{}", dmpw.to_owned() + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant herbivorous and omnivorous sciurids" + clear);
   }

// UNSPECIFIED TESTUDINES

pub fn unspecified_testudines(diameter: &str) {

   let clear = "\x1b[0m"; // reset the font color
   let red = "\x1b[31m";
   let bright_yellow = "\x1b[93m";
   let cyan = "\x1b[36m";

   let dcal: f32 = diameter.parse().expect(&(red.to_owned() + "Incorrect diameter value! Program only processes numbers!" + clear));
   let power = f32::powf(dcal as f32, 2.1345692041);
   let mass = 0.0251303814 * power;

   print!("{}", cyan);
   println!("Coprolite diameter: {}", bright_yellow.to_owned() + diameter + " mm" + cyan);
   print!("Producer's body mass: {}", bright_yellow.to_owned());
   print!("{:.3}", mass);
   print!(" kg{}", clear.to_owned());
   println!(" = 0.0251303814 * {}", diameter.to_owned() + "²·¹³⁴⁵⁶⁹²⁰⁴¹" + cyan);
   println!("Regression model based on:{}", bright_yellow.to_owned() + " extant carnivorous, herbivorous and omnivorous turtles" + clear);
   }