- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for BenchmarkSqrt (0.17 sec)
-
src/math/big/int_test.go
for _, n := range tests { m := NewInt(n) if got := m.Exp(base, one, mod); got.Cmp(want) != 0 { t.Errorf("(%v).Exp(%s, 1, %s) = %s, want %s", n, base, mod, got, want) } } } func BenchmarkSqrt(b *testing.B) { n, _ := new(Int).SetString("1"+strings.Repeat("0", 1001), 10) b.ResetTimer() t := new(Int) for i := 0; i < b.N; i++ { t.Sqrt(n) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 58.5K bytes - Viewed (0) -
src/math/cmplx/cmath_test.go
for i := 0; i < b.N; i++ { Sin(complex(2.5, 3.5)) } } func BenchmarkSinh(b *testing.B) { for i := 0; i < b.N; i++ { Sinh(complex(2.5, 3.5)) } } func BenchmarkSqrt(b *testing.B) { for i := 0; i < b.N; i++ { Sqrt(complex(2.5, 3.5)) } } func BenchmarkTan(b *testing.B) { for i := 0; i < b.N; i++ { Tan(complex(2.5, 3.5)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 03:16:37 UTC 2020 - 48.1K bytes - Viewed (0)