mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Remove now-redundant branch
This commit is contained in:
+1
-5
@@ -832,11 +832,7 @@ pub fn tanh(self) -> 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.
|
||||
|
||||
+1
-5
@@ -834,11 +834,7 @@ pub fn tanh(self) -> 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.
|
||||
|
||||
Reference in New Issue
Block a user