Sinh()
Anonymous contributor
Anonymous contributor2 total contributions
Anonymous contributor
Published Sep 22, 2023
Contribute to Docs
The Sinh()
function returns the hyperbolic sine of a number.
Syntax
result := math.Sinh(value)
Where result
is the hyperbolic sine value of value
, returned as a float
.
Example
The following calculates the hyperbolic sine of a value and prints out the result:
package mainimport ("fmt""math")func main() {value := 1.0hyperbolicSine := math.Sinh(value)fmt.Printf("%.2f\n", hyperbolicSine)}
The output will be:
1.18
Codebyte Example
The following example is runnable and shows how the Sinh()
function handles infinite values.
All contributors
- Anonymous contributorAnonymous contributor2 total contributions
- Anonymous contributor
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.