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

Function BenchmarkMathSin

math/sin_test.go:39–43  ·  view source on GitHub ↗

BenchmarkMathSin is slower because the standard library `math.Sin` calculates a more accurate value.

(b *testing.B)

Source from the content-addressed store, hash-verified

37
38// BenchmarkMathSin is slower because the standard library `math.Sin` calculates a more accurate value.
39func BenchmarkMathSin(b *testing.B) {
40 for i := 0; i < b.N; i++ {
41 stdmath.Sin(180)
42 }
43}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected