Standard library / math
math.Asin()
Inverse sine in radians, range -pi/2 to pi/2; outside [-1,1] returns NaN. Expected stdout: '0\n'.
Formal Syntax & Structure
go syntaxgo
func Asin(x float64) float64Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| x | float64 | First input operand (or sole input if unary). |
Return Value
float64
Inverse sine in radians, range -pi/2 to pi/2; outside [-1,1] returns NaN.
Working Example
Example Snippetgo
package main
import ( "fmt" "math")
func main() { fmt.Println(math.Asin(0))}