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
use array::Array;
impl<T> Array<T> where T: Copy + Into<f64> {
#[inline]
pub fn sinh(&self) -> Array<f64> {
return super::apply(&self, |value: &T| f64::sinh(value.clone().into()));
}
#[inline]
pub fn cosh(&self) -> Array<f64> {
return super::apply(&self, |value: &T| f64::cosh(value.clone().into()));
}
#[inline]
pub fn tanh(&self) -> Array<f64> {
return super::apply(&self, |value: &T| f64::tanh(value.clone().into()));
}
#[inline]
pub fn arcsinh(&self) -> Array<f64> {
return super::apply(&self, |value: &T| f64::asinh(value.clone().into()));
}
#[inline]
pub fn arccosh(&self) -> Array<f64> {
return super::apply(&self, |value: &T| f64::acosh(value.clone().into()));
}
#[inline]
pub fn arctanh(&self) -> Array<f64> {
return super::apply(&self, |value: &T| f64::atanh(value.clone().into()));
}
}