@@ -38,7 +38,6 @@ pub trait PowOps: Sized {
38
38
39
39
pub trait TrigOps : Sized + Div < Output = Self > {
40
40
fn sin_cos ( & self ) -> ( Self , Self ) ;
41
- fn sinh_cosh ( & self ) -> ( Self , Self ) ;
42
41
fn sin ( & self ) -> Self {
43
42
let ( s, _) = self . sin_cos ( ) ;
44
43
s
@@ -51,9 +50,7 @@ pub trait TrigOps: Sized + Div<Output = Self> {
51
50
let ( s, c) = self . sin_cos ( ) ;
52
51
s / c
53
52
}
54
- fn asin ( & self ) -> Self ;
55
- fn acos ( & self ) -> Self ;
56
- fn atan ( & self ) -> Self ;
53
+ fn sinh_cosh ( & self ) -> ( Self , Self ) ;
57
54
fn sinh ( & self ) -> Self {
58
55
let ( s, _) = self . sinh_cosh ( ) ;
59
56
s
@@ -66,9 +63,18 @@ pub trait TrigOps: Sized + Div<Output = Self> {
66
63
let ( s, c) = self . sinh_cosh ( ) ;
67
64
s / c
68
65
}
66
+ fn asin ( & self ) -> Self ;
67
+ fn acos ( & self ) -> Self ;
68
+ fn atan ( & self ) -> Self ;
69
+ fn asin_acos ( & self ) -> ( Self , Self ) {
70
+ ( self . asin ( ) , self . acos ( ) )
71
+ }
69
72
fn asinh ( & self ) -> Self ;
70
73
fn acosh ( & self ) -> Self ;
71
74
fn atanh ( & self ) -> Self ;
75
+ fn asinh_acosh ( & self ) -> ( Self , Self ) {
76
+ ( self . asinh ( ) , self . acosh ( ) )
77
+ }
72
78
}
73
79
74
80
pub trait ExpLogOps : Sized {
0 commit comments