feo-math 0.1.0

Math library for 3D transformation.
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
//! ## Feo Math
//! > Feo Math is a library I created to help me learn about linear algebra and 
//! spacial rotation.
//!
//! Feo Math's intended purpose was to serve as the math library for the 
//! [feo-oop-engine](https://github.com/littleTitan/feo-oop-engine) a 3D 
//! engine made with rust. It has no dependencies.
//! 
use std::{fmt, ops::{Add, Div, Mul, Neg, Rem, Shl, Shr, Sub}};

pub mod multivariate;
pub mod polynomial;
pub mod imaginary;
pub mod linear_algebra;
pub mod rotation;
pub mod utils; // unfinished move forward

pub use rotation::axes;

/// Implemented by all constructs of this library.
pub trait Construct<T>: fmt::Debug + Copy + Clone + PartialEq // Is typed
    + Add<Self, Output = Self> + Add<T, Output = Self>
    + Sub<Self, Output = Self> + Sub<T, Output = Self> 
    + Mul<Self, Output = Self> + Mul<T, Output = Self> 
    + Div<Self, Output = Self> + Div<T, Output = Self>
    + Rem<Self, Output = Self> + Rem<T, Output = Self>
    + Neg<Output = Self> + SignOps
    + Zero + One + Two
    + F32Fmt {}

/// This trait allows you to set requirements for Types of typed Constructs in groups.
/// 
/// TODO explain + example + fix issue note primitive
pub trait Typed<T> {} // A concept 
impl<T: Construct<A>, A> Typed<T> for A {} // Note that when no longer typed typed is set to the last type.

// pub trait Aggregate<T>{
//     fn ag(lhs: T, rhs: T) -> T;
// }

// pub struct None(!);
// impl<T> Aggregate<T> for None {
//     fn ag(_: T, _: T) -> T {
//         panic!("Not allowed");
//     }
// }
// pub struct Product(!);
// impl<T> Aggregate<T> for Product 
// where T: Mul<T, Output=T> {
//     fn ag(lhs: T, rhs: T) -> T{
//         lhs * rhs
//     }
// }
// pub struct Sum(!);
// impl<T> Aggregate<T> for Sum 
// where T: Add<T, Output=T> {
//     fn ag(lhs: T, rhs: T) -> T {
//         lhs + rhs
//     }
// }

impl<T: fmt::Debug + Copy + Clone + PartialEq
        + Add<T, Output = T>
        + Sub<T, Output = T>
        + Mul<T, Output = T>
        + Div<T, Output = T>
        + Rem<T, Output = T>
        + Neg<Output = T> + SignOps
        + Zero + One + Two
        + F32Fmt
        + Primitive> Construct<T> for T {}

pub trait IntUtils{
    fn isqrt(self) -> Self;
    fn icbrt(self) -> Self;
    fn isin_mul(self, mul_by: Self) -> Self;
    fn icos_mul(self, mul_by: Self) -> Self;
    fn itan_mul(self, mul_by: Self) -> Self;
    fn iasin_mul(self, mul_by: Self) -> Self;
    fn iacos_mul(self, mul_by: Self) -> Self;
    fn iatan_mul(self, mul_by: Self) -> Self;
    fn iatan2_mul(self, other: Self, mul_by: Self) -> Self;
    
    fn itanh_mul(self, mul_by: Self) -> Self;
    fn isinh_mul(self, mul_by: Self) -> Self;
    fn icosh_mul(self, mul_by: Self) -> Self;
}

pub trait UintUtils{
    fn usqrt(self) -> Self;
    fn ucbrt(self) -> Self;
    fn usin_mul(self, mul_by: Self) -> Self;
    fn ucos_mul(self, mul_by: Self) -> Self;
    fn utan_mul(self, mul_by: Self) -> Self;
    fn uasin_mul(self, mul_by: Self) -> Self;
    fn uacos_mul(self, mul_by: Self) -> Self;
    fn uatan_mul(self, mul_by: Self) -> Self;
    fn uatan2_mul(self, other: Self, mul_by: Self) -> Self;
    
    fn utanh_mul(self, mul_by: Self) -> Self;
    fn usinh_mul(self, mul_by: Self) -> Self;
    fn ucosh_mul(self, mul_by: Self) -> Self;
}

impl<T: Uint +
        Copy +
        One + Two + Three +
        F32Fmt<F32Fmt = f32> +  
        PartialOrd + 
        Shr<T, Output = T> + 
        Shl<T, Output = T> + 
        Add<T, Output = T> + 
        Mul<T, Output = T>> UintUtils for T {
    #[inline] fn usqrt(self) -> Self {
        if self < Self::TWO { return self; }
        let s_option = Self::usqrt(self >> Self::TWO) << Self::ONE;
        let l_option = s_option + Self::ONE;
        if l_option * l_option > self { s_option } else { l_option }
    }
    #[inline] fn ucbrt(self) -> Self {
        if self < Self::THREE { return self; }
        let s_option = Self::ucbrt(self >> Self::THREE) << Self::ONE;
        let l_option = s_option + Self::ONE;
        if l_option * l_option > self { s_option } else { l_option }
    }
    // note negatives to 0 \/\/\/
    #[inline] fn usin_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().sin() * mul_by.intoF32Fmt()) }
    #[inline] fn ucos_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().cos() * mul_by.intoF32Fmt()) }
    #[inline] fn utan_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().tan() * mul_by.intoF32Fmt()) }
    #[inline] fn uasin_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().asin() * mul_by.intoF32Fmt()) }
    #[inline] fn uacos_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().acos() * mul_by.intoF32Fmt()) }
    #[inline] fn uatan_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().atan() * mul_by.intoF32Fmt()) }
    #[inline] fn uatan2_mul(self, other: Self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().atan2(other.intoF32Fmt()) * mul_by.intoF32Fmt()) }
    
    #[inline] fn usinh_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().sinh() * mul_by.intoF32Fmt()) }
    #[inline] fn ucosh_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().cosh() * mul_by.intoF32Fmt()) }
    #[inline] fn utanh_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().tanh() * mul_by.intoF32Fmt()) }
}

impl<T: Int +
        Copy +
        Zero + One + Two + Three +
        F32Fmt<F32Fmt = f32> + 
        PartialOrd + 
        Shr<T, Output = T> + 
        Shl<T, Output = T> + 
        Add<T, Output = T> + 
        Mul<T, Output = T>> IntUtils for T {
    #[inline] fn isqrt(self) -> Self {
        assert!(self >= Self::ZERO, "sqrt works for only non-negative inputs");
        if self < Self::TWO { return self; }
        let s_option = Self::isqrt(self >> Self::TWO) << Self::ONE;
        let l_option = s_option + Self::ONE;
        if l_option * l_option > self { s_option } else { l_option }
    }
    #[inline] fn icbrt(self) -> Self {
        assert!(self >= Self::ZERO, "sqrt works for only non-negative inputs");
        if self < Self::THREE { return self; }
        let s_option = Self::icbrt(self >> Self::THREE) << Self::ONE;
        let l_option = s_option + Self::ONE;
        if l_option * l_option > self { s_option } else { l_option }
    }
    // note negatives to 0 \/\/\/
    #[inline] fn isin_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().sin() * mul_by.intoF32Fmt()) }
    #[inline] fn icos_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().cos() * mul_by.intoF32Fmt()) }
    #[inline] fn itan_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().tan() * mul_by.intoF32Fmt()) }
    #[inline] fn iasin_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().asin() * mul_by.intoF32Fmt()) }
    #[inline] fn iacos_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().acos() * mul_by.intoF32Fmt()) }
    #[inline] fn iatan_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().atan() * mul_by.intoF32Fmt()) }
    #[inline] fn iatan2_mul(self, other: Self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().atan2(other.intoF32Fmt()) * mul_by.intoF32Fmt()) }
    
    #[inline] fn isinh_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().sinh() * mul_by.intoF32Fmt()) }
    #[inline] fn icosh_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().cosh() * mul_by.intoF32Fmt()) }
    #[inline] fn itanh_mul(self, mul_by: Self) -> Self { Self::fromF32Fmt(self.intoF32Fmt().tanh() * mul_by.intoF32Fmt()) }
}

pub trait Zero { const ZERO: Self; }
impl Zero for bool { const ZERO: Self = false; }
impl Zero for f32 { const ZERO: Self = 0_f32; }
impl Zero for f64 { const ZERO: Self = 0_f64; }
impl Zero for i8    { const ZERO: Self = 0_i8;    } impl Zero for u8    { const ZERO: Self = 0_u8;    }
impl Zero for i16   { const ZERO: Self = 0_i16;   } impl Zero for u16   { const ZERO: Self = 0_u16;   }
impl Zero for i32   { const ZERO: Self = 0_i32;   } impl Zero for u32   { const ZERO: Self = 0_u32;   }
impl Zero for i64   { const ZERO: Self = 0_i64;   } impl Zero for u64   { const ZERO: Self = 0_u64;   }
impl Zero for i128  { const ZERO: Self = 0_i128;  } impl Zero for u128  { const ZERO: Self = 0_u128;  }
impl Zero for isize { const ZERO: Self = 0_isize; } impl Zero for usize { const ZERO: Self = 0_usize; }

pub trait One { const ONE: Self; }
impl One for bool { const ONE: Self = true; }
impl One for f32 { const ONE: Self = 1_f32; }
impl One for f64 { const ONE: Self = 1_f64; }
impl One for i8    { const ONE: Self = 1_i8;    } impl One for u8    { const ONE: Self = 1_u8;    }
impl One for i16   { const ONE: Self = 1_i16;   } impl One for u16   { const ONE: Self = 1_u16;   }
impl One for i32   { const ONE: Self = 1_i32;   } impl One for u32   { const ONE: Self = 1_u32;   }
impl One for i64   { const ONE: Self = 1_i64;   } impl One for u64   { const ONE: Self = 1_u64;   }
impl One for i128  { const ONE: Self = 1_i128;  } impl One for u128  { const ONE: Self = 1_u128;  }
impl One for isize { const ONE: Self = 1_isize; } impl One for usize { const ONE: Self = 1_usize; }

pub trait Two { const TWO: Self; }
impl Two for f32 { const TWO: Self = 2_f32; }
impl Two for f64 { const TWO: Self = 2_f64; }
impl Two for i8    { const TWO: Self = 2_i8;    } impl Two for u8    { const TWO: Self = 2_u8;    }
impl Two for i16   { const TWO: Self = 2_i16;   } impl Two for u16   { const TWO: Self = 2_u16;   }
impl Two for i32   { const TWO: Self = 2_i32;   } impl Two for u32   { const TWO: Self = 2_u32;   }
impl Two for i64   { const TWO: Self = 2_i64;   } impl Two for u64   { const TWO: Self = 2_u64;   }
impl Two for i128  { const TWO: Self = 2_i128;  } impl Two for u128  { const TWO: Self = 2_u128;  }
impl Two for isize { const TWO: Self = 2_isize; } impl Two for usize { const TWO: Self = 2_usize; }

pub trait Three { const THREE: Self; }
impl Three for f32 { const THREE: Self = 3_f32; }
impl Three for f64 { const THREE: Self = 3_f64; }
impl Three for i8    { const THREE: Self = 3_i8;    } impl Three for u8    { const THREE: Self = 3_u8;    }
impl Three for i16   { const THREE: Self = 3_i16;   } impl Three for u16   { const THREE: Self = 3_u16;   }
impl Three for i32   { const THREE: Self = 3_i32;   } impl Three for u32   { const THREE: Self = 3_u32;   }
impl Three for i64   { const THREE: Self = 3_i64;   } impl Three for u64   { const THREE: Self = 3_u64;   }
impl Three for i128  { const THREE: Self = 3_i128;  } impl Three for u128  { const THREE: Self = 3_u128;  }
impl Three for isize { const THREE: Self = 3_isize; } impl Three for usize { const THREE: Self = 3_usize; }

pub trait SignOps { fn ptcopysign(self, sign: Self) -> Self; fn ptsignum(self) -> i8; fn abs(self) -> Self; }
impl SignOps for f32 { #[inline] fn ptcopysign(self, sign: Self) -> Self { self.copysign(sign) } #[inline] fn ptsignum(self) -> i8 { if self == 0.0 { 0_i8 } else if self.signum() > 0.0 { 1_i8 } else { -1_i8 } } #[inline] fn abs(self) -> Self { self.abs() } }
impl SignOps for f64 { #[inline] fn ptcopysign(self, sign: Self) -> Self { self.copysign(sign) } #[inline] fn ptsignum(self) -> i8 { if self == 0.0 { 0_i8 } else if self.signum() > 0.0 { 1_i8 } else { -1_i8 } } #[inline] fn abs(self) -> Self { self.abs() } }
impl SignOps for i8 { #[inline] fn ptcopysign(self, sign: Self) -> Self { if sign >> 7 ^ self >> 7 != 0 { -self } else { self } } #[inline] fn ptsignum(self) -> i8 { self.signum() } #[inline] fn abs(self) -> Self { self.abs() } }
impl SignOps for i16 { #[inline] fn ptcopysign(self, sign: Self) -> Self { if sign >> 15 ^ self >> 15 != 0  { -self } else { self } } #[inline] fn ptsignum(self) -> i8 { self.signum() as i8 } #[inline] fn abs(self) -> Self { self.abs() } }
impl SignOps for i32 { #[inline] fn ptcopysign(self, sign: Self) -> Self { if sign >> 31 ^ self >> 31 != 0  { -self } else { self } } #[inline] fn ptsignum(self) -> i8 { self.signum() as i8 } #[inline] fn abs(self) -> Self { self.abs() } }
impl SignOps for i64 { #[inline] fn ptcopysign(self, sign: Self) -> Self { if sign >> 63 ^ self >> 63 != 0  { -self } else { self } } #[inline] fn ptsignum(self) -> i8 { self.signum() as i8 } #[inline] fn abs(self) -> Self { self.abs() } }
impl SignOps for i128 { #[inline] fn ptcopysign(self, sign: Self) -> Self { if sign >> 127 ^ self >> 127 != 0  { -self } else { self } } #[inline] fn ptsignum(self) -> i8 { self.signum() as i8 } #[inline] fn abs(self) -> Self { self.abs() } }
impl SignOps for isize { #[inline] fn ptcopysign(self, sign: Self) -> Self { if sign.reverse_bits() >> 1 ^ self.reverse_bits() >> 1 != 0  { -self } else { self } } #[inline] fn ptsignum(self) -> i8 { self.signum() as i8 } #[inline] fn abs(self) -> Self { self.abs() } }
impl SignOps for u8 { #[inline] fn ptcopysign(self, _: Self) -> Self { self } #[inline] fn ptsignum(self) -> i8 { if self != 0_u8 { 1_i8 } else { 0_i8 } } #[inline] fn abs(self) -> Self { self } }
impl SignOps for u16 { #[inline] fn ptcopysign(self, _: Self) -> Self { self } #[inline] fn ptsignum(self) -> i8 { if self != 0_u16 { 1_i8 } else { 0_i8 } } #[inline] fn abs(self) -> Self { self } }
impl SignOps for u32 { #[inline] fn ptcopysign(self, _: Self) -> Self { self } #[inline] fn ptsignum(self) -> i8 { if self != 0_u32 { 1_i8 } else { 0_i8 } } #[inline] fn abs(self) -> Self { self } }
impl SignOps for u64 { #[inline] fn ptcopysign(self, _: Self) -> Self { self } #[inline] fn ptsignum(self) -> i8 { if self != 0_u64 { 1_i8 } else { 0_i8 } } #[inline] fn abs(self) -> Self { self } }
impl SignOps for u128 { #[inline] fn ptcopysign(self, _: Self) -> Self { self } #[inline] fn ptsignum(self) -> i8 { if self != 0_u128 { 1_i8 } else { 0_i8 } } #[inline] fn abs(self) -> Self { self } }
impl SignOps for usize { #[inline] fn ptcopysign(self, _: Self) -> Self { self } #[inline] fn ptsignum(self) -> i8 { if self != 0_usize { 1_i8 } else { 0_i8 } } #[inline] fn abs(self) -> Self { self } }
impl SignOps for bool { #[inline] fn ptcopysign(self, sign: Self) -> Self { sign } #[inline] fn ptsignum(self) -> i8 { if self { 1_i8 } else { 0_i8 } } #[inline] fn abs(self) -> Self { false } }

/// All numerical primitives and bool
pub trait Primitive {}
impl Primitive for f32 {}
impl Primitive for f64 {}
impl Primitive for i8 {}
impl Primitive for i16 {}
impl Primitive for i32 {}
impl Primitive for i64 {}
impl Primitive for i128 {}
impl Primitive for isize {}
impl Primitive for u8 {}
impl Primitive for u16 {}
impl Primitive for u32 {}
impl Primitive for u64 {}
impl Primitive for u128 {}
impl Primitive for usize {}
impl Primitive for bool {}

pub trait Float {}
impl Float for f32 {}
impl Float for f64 {}

pub trait Int {}
impl Int for i8 {}
impl Int for i16 {}
impl Int for i32 {}
impl Int for i64 {}
impl Int for i128 {}
impl Int for isize {}

pub trait Uint {}
impl Uint for u8 {}
impl Uint for u16 {}
impl Uint for u32 {}
impl Uint for u64 {}
impl Uint for u128 {}
impl Uint for usize {}
impl Uint for bool {}

pub trait F32Fmt {
    type F32Fmt: F32Fmt + Copy + Clone + PartialEq
        + Add<Self::F32Fmt, Output = Self::F32Fmt>
        + Sub<Self::F32Fmt, Output = Self::F32Fmt>
        + Mul<Self::F32Fmt, Output = Self::F32Fmt>
        + Div<Self::F32Fmt, Output = Self::F32Fmt>
        + Rem<Self::F32Fmt, Output = Self::F32Fmt>
        + Neg<Output = Self::F32Fmt> + SignOps
        + Zero + One + Two;
    #[allow(non_snake_case)]
    fn intoF32Fmt(self) -> Self::F32Fmt;
    #[allow(non_snake_case)]
    fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self;
    fn sqrt(self) -> Self;
    fn cbrt(self) -> Self;
    fn f32_const_mul(self, constant: f32) -> Self;
    fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized;
    fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized;
    fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized;
    fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized;
    fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized;
    fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized;
    fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized;
    
    fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized;
    fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized;
    fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized;
}
impl F32Fmt for f32 { type F32Fmt = Self;
    #[inline] fn intoF32Fmt(self) -> Self::F32Fmt { self } 
    #[inline] fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self { f32_fmt }
    #[inline] fn sqrt(self) -> Self { Self::sqrt(self) }
    #[inline] fn cbrt(self) -> Self { Self::cbrt(self) }
    #[inline] fn f32_const_mul(self, constant: f32) -> Self { self * constant }
    #[inline] fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::sin(self) * mul_by }
    #[inline] fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::cos(self) * mul_by }
    #[inline] fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::tan(self) * mul_by }
    #[inline] fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::asin(self) * mul_by }
    #[inline] fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::acos(self) * mul_by }
    #[inline] fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::atan(self) * mul_by }
    #[inline] fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::atan2(self, other) * mul_by }
    
    #[inline] fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::sinh(self) * mul_by }
    #[inline] fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::cosh(self) * mul_by }
    #[inline] fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::tanh(self) * mul_by }
}
impl F32Fmt for f64 {
    type F32Fmt = f32;
    #[inline] fn intoF32Fmt(self) -> Self::F32Fmt { self as f32 }
    #[inline] fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self { f32_fmt as Self }
    #[inline] fn sqrt(self) -> Self { Self::sqrt(self) }
    #[inline] fn cbrt(self) -> Self { Self::cbrt(self) }
    #[inline] fn f32_const_mul(self, constant: f32) -> Self where Self: Mul<f64, Output = Self> { (self as f32 * constant) as Self }
    #[inline] fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::sin(self) * mul_by }
    #[inline] fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::cos(self) * mul_by }
    #[inline] fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::tan(self) * mul_by }
    #[inline] fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::asin(self) * mul_by }
    #[inline] fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::acos(self) * mul_by }
    #[inline] fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::atan(self) * mul_by }
    #[inline] fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::atan2(self, other) * mul_by }
    
    #[inline] fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::sinh(self) * mul_by }
    #[inline] fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::cosh(self) * mul_by }
    #[inline] fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::tanh(self) * mul_by }
}
impl F32Fmt for i8 {
    type F32Fmt = f32;
    #[inline] fn intoF32Fmt(self) -> Self::F32Fmt { self as f32 }
    #[inline] fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self { f32_fmt as Self }
    #[inline] fn sqrt(self) -> Self { Self::isqrt(self) }
    #[inline] fn cbrt(self) -> Self { Self::icbrt(self) }
    #[inline] fn f32_const_mul(self, constant: f32) -> Self { (self as f32 * constant) as Self }
    #[inline] fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::isin_mul(self, mul_by) }
    #[inline] fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::icos_mul(self, mul_by) }
    #[inline] fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::itan_mul(self, mul_by) }
    #[inline] fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iasin_mul(self, mul_by) }
    #[inline] fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iacos_mul(self, mul_by) }
    #[inline] fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iatan_mul(self, mul_by) }
    #[inline] fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iatan2_mul(self, other, mul_by) }
    
    #[inline] fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::isinh_mul(self, mul_by) }
    #[inline] fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::icosh_mul(self, mul_by) }
    #[inline] fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::itanh_mul(self, mul_by) }
}
impl F32Fmt for i16 {
    type F32Fmt = f32;
    #[inline] fn intoF32Fmt(self) -> Self::F32Fmt { self as f32 } 
    #[inline] fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self { f32_fmt as Self }
    #[inline] fn sqrt(self) -> Self { Self::isqrt(self) }
    #[inline] fn cbrt(self) -> Self { Self::icbrt(self) }
    #[inline] fn f32_const_mul(self, constant: f32) -> Self { (self as f32 * constant) as Self }
    #[inline] fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::isin_mul(self, mul_by) }
    #[inline] fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::icos_mul(self, mul_by) }
    #[inline] fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::itan_mul(self, mul_by) }
    #[inline] fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iasin_mul(self, mul_by) }
    #[inline] fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iacos_mul(self, mul_by) }
    #[inline] fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iatan_mul(self, mul_by) }
    #[inline] fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iatan2_mul(self, other, mul_by) }
    
    #[inline] fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::isinh_mul(self, mul_by) }
    #[inline] fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::icosh_mul(self, mul_by) }
    #[inline] fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::itanh_mul(self, mul_by) }
}
impl F32Fmt for i32 {
    type F32Fmt = f32;
    #[inline] fn intoF32Fmt(self) -> Self::F32Fmt { self as f32 }
    #[inline] fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self { f32_fmt as Self }
    #[inline] fn sqrt(self) -> Self { Self::isqrt(self) }
    #[inline] fn cbrt(self) -> Self { Self::icbrt(self) }
    #[inline] fn f32_const_mul(self, constant: f32) -> Self { (self as f32 * constant) as Self }
    #[inline] fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::isin_mul(self, mul_by) }
    #[inline] fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::icos_mul(self, mul_by) }
    #[inline] fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::itan_mul(self, mul_by) }
    #[inline] fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iasin_mul(self, mul_by) }
    #[inline] fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iacos_mul(self, mul_by) }
    #[inline] fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iatan_mul(self, mul_by) }
    #[inline] fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iatan2_mul(self, other, mul_by) }
    
    #[inline] fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::isinh_mul(self, mul_by) }
    #[inline] fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::icosh_mul(self, mul_by) }
    #[inline] fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::itanh_mul(self, mul_by) }
}
impl F32Fmt for i64 {
    type F32Fmt = f32;
    #[inline] fn intoF32Fmt(self) -> Self::F32Fmt { self as f32 }
    #[inline] fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self { f32_fmt as Self }
    #[inline] fn sqrt(self) -> Self { Self::isqrt(self) }
    #[inline] fn cbrt(self) -> Self { Self::icbrt(self) }
    #[inline] fn f32_const_mul(self, constant: f32) -> Self { (self as f32 * constant) as Self }
    #[inline] fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::isin_mul(self, mul_by) }
    #[inline] fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::icos_mul(self, mul_by) }
    #[inline] fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::itan_mul(self, mul_by) }
    #[inline] fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iasin_mul(self, mul_by) }
    #[inline] fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iacos_mul(self, mul_by) }
    #[inline] fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iatan_mul(self, mul_by) }
    #[inline] fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iatan2_mul(self, other, mul_by) }
    
    #[inline] fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::isinh_mul(self, mul_by) }
    #[inline] fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::icosh_mul(self, mul_by) }
    #[inline] fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::itanh_mul(self, mul_by) }
}
impl F32Fmt for i128 {
    type F32Fmt = f32;
    #[inline] fn intoF32Fmt(self) -> Self::F32Fmt { self as f32 }
    #[inline] fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self { f32_fmt as Self }
    #[inline] fn sqrt(self) -> Self { Self::isqrt(self) }
    #[inline] fn cbrt(self) -> Self { Self::icbrt(self) }
    #[inline] fn f32_const_mul(self, constant: f32) -> Self { (self as f32 * constant) as Self }
    #[inline] fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::isin_mul(self, mul_by) }
    #[inline] fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::icos_mul(self, mul_by) }
    #[inline] fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::itan_mul(self, mul_by) }
    #[inline] fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iasin_mul(self, mul_by) }
    #[inline] fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iacos_mul(self, mul_by) }
    #[inline] fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iatan_mul(self, mul_by) }
    #[inline] fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iatan2_mul(self, other, mul_by) }
    
    #[inline] fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::isinh_mul(self, mul_by) }
    #[inline] fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::icosh_mul(self, mul_by) }
    #[inline] fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::itanh_mul(self, mul_by) }
}
impl F32Fmt for isize {
    type F32Fmt = f32;
    #[inline] fn intoF32Fmt(self) -> Self::F32Fmt { self as f32 }
    #[inline] fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self { f32_fmt as Self }
    #[inline] fn sqrt(self) -> Self { Self::isqrt(self) }
    #[inline] fn cbrt(self) -> Self { Self::icbrt(self) }
    #[inline] fn f32_const_mul(self, constant: f32) -> Self { (self as f32 * constant) as Self }
    #[inline] fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::isin_mul(self, mul_by) }
    #[inline] fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::icos_mul(self, mul_by) }
    #[inline] fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::itan_mul(self, mul_by) }
    #[inline] fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iasin_mul(self, mul_by) }
    #[inline] fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iacos_mul(self, mul_by) }
    #[inline] fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iatan_mul(self, mul_by) }
    #[inline] fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::iatan2_mul(self, other, mul_by) }
    
    #[inline] fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::isinh_mul(self, mul_by) }
    #[inline] fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::icosh_mul(self, mul_by) }
    #[inline] fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::itanh_mul(self, mul_by) }
}
impl F32Fmt for u8 { 
    type F32Fmt = f32; 
    #[inline] fn intoF32Fmt(self) -> Self::F32Fmt { self as f32 } 
    #[inline] fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self { f32_fmt as Self }
    #[inline] fn sqrt(self) -> Self { Self::usqrt(self) }
    #[inline] fn cbrt(self) -> Self { Self::ucbrt(self) }
    #[inline] fn f32_const_mul(self, constant: f32) -> Self { (self as f32 * constant) as Self }
    #[inline] fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::usin_mul(self, mul_by) }
    #[inline] fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::ucos_mul(self, mul_by) }
    #[inline] fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::utan_mul(self, mul_by) }
    #[inline] fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uasin_mul(self, mul_by) }
    #[inline] fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uacos_mul(self, mul_by) }
    #[inline] fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uatan_mul(self, mul_by) }
    #[inline] fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uatan2_mul(self, other, mul_by) }
    
    #[inline] fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::usinh_mul(self, mul_by) }
    #[inline] fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::ucosh_mul(self, mul_by) }
    #[inline] fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::utanh_mul(self, mul_by) }
}
impl F32Fmt for u16 {
    type F32Fmt = f32;
    #[inline] fn intoF32Fmt(self) -> Self::F32Fmt { self as f32 }
    #[inline] fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self { f32_fmt as Self }
    #[inline] fn sqrt(self) -> Self { Self::usqrt(self) }
    #[inline] fn cbrt(self) -> Self { Self::ucbrt(self) }
    #[inline] fn f32_const_mul(self, constant: f32) -> Self { (self as f32 * constant) as Self }
    #[inline] fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::usin_mul(self, mul_by) }
    #[inline] fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::ucos_mul(self, mul_by) }
    #[inline] fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::utan_mul(self, mul_by) }
    #[inline] fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uasin_mul(self, mul_by) }
    #[inline] fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uacos_mul(self, mul_by) }
    #[inline] fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uatan_mul(self, mul_by) }
    #[inline] fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uatan2_mul(self, other, mul_by) }
    
    #[inline] fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::usinh_mul(self, mul_by) }
    #[inline] fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::ucosh_mul(self, mul_by) }
    #[inline] fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::utanh_mul(self, mul_by) }
}
impl F32Fmt for u32 {
    type F32Fmt = f32;
    #[inline] fn intoF32Fmt(self) -> Self::F32Fmt { self as f32 }
    #[inline] fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self { f32_fmt as Self }
    #[inline] fn sqrt(self) -> Self { Self::usqrt(self) }
    #[inline] fn cbrt(self) -> Self { Self::ucbrt(self) }
    #[inline] fn f32_const_mul(self, constant: f32) -> Self { (self as f32 * constant) as Self }
    #[inline] fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::usin_mul(self, mul_by) }
    #[inline] fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::ucos_mul(self, mul_by) }
    #[inline] fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::utan_mul(self, mul_by) }
    #[inline] fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uasin_mul(self, mul_by) }
    #[inline] fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uacos_mul(self, mul_by) }
    #[inline] fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uatan_mul(self, mul_by) }
    #[inline] fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uatan2_mul(self, other, mul_by) }
    
    #[inline] fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::usinh_mul(self, mul_by) }
    #[inline] fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::ucosh_mul(self, mul_by) }
    #[inline] fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::utanh_mul(self, mul_by) }
}
impl F32Fmt for u64 {
    type F32Fmt = f32;
    #[inline] fn intoF32Fmt(self) -> Self::F32Fmt { self as f32 }
    #[inline] fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self { f32_fmt as Self }
    #[inline] fn sqrt(self) -> Self { Self::usqrt(self) }
    #[inline] fn cbrt(self) -> Self { Self::ucbrt(self) }
    #[inline] fn f32_const_mul(self, constant: f32) -> Self { (self as f32 * constant) as Self }
    #[inline] fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::usin_mul(self, mul_by) }
    #[inline] fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::ucos_mul(self, mul_by) }
    #[inline] fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::utan_mul(self, mul_by) }
    #[inline] fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uasin_mul(self, mul_by) }
    #[inline] fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uacos_mul(self, mul_by) }
    #[inline] fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uatan_mul(self, mul_by) }
    #[inline] fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uatan2_mul(self, other, mul_by) }
    
    #[inline] fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::usinh_mul(self, mul_by) }
    #[inline] fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::ucosh_mul(self, mul_by) }
    #[inline] fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::utanh_mul(self, mul_by) }
}
impl F32Fmt for u128 {
    type F32Fmt = f32;
    #[inline] fn intoF32Fmt(self) -> Self::F32Fmt { self as f32 }
    #[inline] fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self { f32_fmt as Self }
    #[inline] fn sqrt(self) -> Self { Self::usqrt(self) }
    #[inline] fn cbrt(self) -> Self { Self::ucbrt(self) }
    #[inline] fn f32_const_mul(self, constant: f32) -> Self { (self as f32 * constant) as Self }
    #[inline] fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::usin_mul(self, mul_by) }
    #[inline] fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::ucos_mul(self, mul_by) }
    #[inline] fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::utan_mul(self, mul_by) }
    #[inline] fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uasin_mul(self, mul_by) }
    #[inline] fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uacos_mul(self, mul_by) }
    #[inline] fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uatan_mul(self, mul_by) }
    #[inline] fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uatan2_mul(self, other, mul_by) }
    
    #[inline] fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::usinh_mul(self, mul_by) }
    #[inline] fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::ucosh_mul(self, mul_by) }
    #[inline] fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::utanh_mul(self, mul_by) }
}
impl F32Fmt for usize {
    type F32Fmt = f32;
    #[inline] fn intoF32Fmt(self) -> Self::F32Fmt { self as f32 }
    #[inline] fn fromF32Fmt(f32_fmt: Self::F32Fmt) -> Self { f32_fmt as Self }
    #[inline] fn sqrt(self) -> Self { Self::usqrt(self) }
    #[inline] fn cbrt(self) -> Self { Self::ucbrt(self) }
    #[inline] fn f32_const_mul(self, constant: f32) -> Self { (self as f32 * constant) as Self }
    #[inline] fn sin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::usin_mul(self, mul_by) }
    #[inline] fn cos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::ucos_mul(self, mul_by) }
    #[inline] fn tan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::utan_mul(self, mul_by) }
    #[inline] fn asin_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uasin_mul(self, mul_by) }
    #[inline] fn acos_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uacos_mul(self, mul_by) }
    #[inline] fn atan_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uatan_mul(self, mul_by) }
    #[inline] fn atan2_mul(self, other: Self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::uatan2_mul(self, other, mul_by) }
    
    #[inline] fn sinh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::usinh_mul(self, mul_by) }
    #[inline] fn cosh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::ucosh_mul(self, mul_by) }
    #[inline] fn tanh_mul(self, mul_by: Self) -> Self where Self: Mul<Self, Output = Self> + Sized { Self::utanh_mul(self, mul_by) }
}