-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasinh16.go
More file actions
38 lines (34 loc) · 808 Bytes
/
asinh16.go
File metadata and controls
38 lines (34 loc) · 808 Bytes
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
package floats
import "math"
// Asinh returns the inverse hyperbolic sine of a.
//
// Special cases are:
//
// ±0.Asinh() = ±0
// ±Inf.Asinh() = ±Inf
// NaN.Asinh() = NaN
func (a Float16) Asinh() Float16 {
return NewFloat16(math.Asinh(a.Float64().BuiltIn()))
}
// Acosh returns the inverse hyperbolic cosine of a.
//
// Special cases are:
//
// +Inf.Acosh() = +Inf
// x.Acosh() = NaN if x < 1
// NaN.Acosh() = NaN
func (a Float16) Acosh() Float16 {
return NewFloat16(math.Acosh(a.Float64().BuiltIn()))
}
// Atanh returns the inverse hyperbolic tangent of a.
//
// Special cases are:
//
// 1.Atanh() = +Inf
// ±0.Atanh() = ±0
// -1.Atanh() = -Inf
// x.Atanh() = NaN if x < -1 or x > 1
// NaN.Atanh() = NaN
func (a Float16) Atanh() Float16 {
return NewFloat16(math.Atanh(a.Float64().BuiltIn()))
}