Here, We will learn how to get the hyperbolic sine of number in go. We can get it by using Sinh() function in math package in go golang.
Function prototype:
func Sinh(x float64) float64
Return value:
Sinh() function in math package returns
the hyperbolic sine of number.
Example with code:
package main
import (
"fmt"
"math"
)
func main() {
no := math.Sinh(1.2)
fmt.Println(no)
no = math.Sinh(-2.7)
fmt.Println(no)
no = math.Sinh(0.0)
fmt.Println(no)
no = math.Sinh(-2.9)
fmt.Println(no)
no = math.Sinh(2)
fmt.Println(no)
}
Output:
1.5094613554121725
-7.406263106066543
0
-9.059561074693326
3.626860407847019
To learn more about golang, Please refer given below link:
https://techieindoor.com/go-lang-tutorial/
References:
https://golang.org/doc/
https://golang.org/pkg/