MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / Sin

Function Sin

math/sin.go:9–11  ·  view source on GitHub ↗

Sin returns the sine of the radian argument x. [See more](https://en.wikipedia.org/wiki/Sine_and_cosine)

(x float64)

Source from the content-addressed store, hash-verified

7
8// Sin returns the sine of the radian argument x. [See more](https://en.wikipedia.org/wiki/Sine_and_cosine)
9func Sin(x float64) float64 {
10 return Cos((math.Pi / 2) - x)
11}

Callers

nothing calls this directly

Calls 1

CosFunction · 0.85

Tested by

no test coverage detected