Remove now-redundant branch
This commit is contained in:
parent
730f7366bb
commit
35a2915bf3
2 changed files with 2 additions and 10 deletions
|
|
@ -832,11 +832,7 @@ impl f32 {
|
|||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[inline]
|
||||
pub fn asinh(self) -> f32 {
|
||||
if self == Self::NEG_INFINITY {
|
||||
Self::NEG_INFINITY
|
||||
} else {
|
||||
(self.abs() + ((self * self) + 1.0).sqrt()).ln().copysign(self)
|
||||
}
|
||||
(self.abs() + ((self * self) + 1.0).sqrt()).ln().copysign(self)
|
||||
}
|
||||
|
||||
/// Inverse hyperbolic cosine function.
|
||||
|
|
|
|||
|
|
@ -834,11 +834,7 @@ impl f64 {
|
|||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[inline]
|
||||
pub fn asinh(self) -> f64 {
|
||||
if self == Self::NEG_INFINITY {
|
||||
Self::NEG_INFINITY
|
||||
} else {
|
||||
(self.abs() + ((self * self) + 1.0).sqrt()).ln().copysign(self)
|
||||
}
|
||||
(self.abs() + ((self * self) + 1.0).sqrt()).ln().copysign(self)
|
||||
}
|
||||
|
||||
/// Inverse hyperbolic cosine function.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue