Home | History | Annotate | Download | only in testdata

Lines Matching refs:Sqrt

18 	{"sqrt0", 0, math.Sqrt(0), 0},
19 {"sqrt1", 1, math.Sqrt(1), 1},
20 {"sqrt2", 2, math.Sqrt(2), math.Sqrt2},
21 {"sqrt4", 4, math.Sqrt(4), 2},
22 {"sqrt100", 100, math.Sqrt(100), 10},
23 {"sqrt101", 101, math.Sqrt(101), 10.04987562112089},
31 {"sqrtNaN", math.NaN(), math.Sqrt(math.NaN())},
32 {"sqrtNegative", -1, math.Sqrt(-1)},
33 {"sqrtNegInf", math.Inf(-1), math.Sqrt(math.Inf(-1))},
41 fmt.Printf("%s: math.Sqrt(%f): got %f, want %f\n", test.name, test.in, test.got, test.want)
47 fmt.Printf("%s: math.Sqrt(%f): got %f, want NaN\n", test.name, test.in, test.got)
51 if got := math.Sqrt(math.Inf(1)); !math.IsInf(got, 1) {
52 fmt.Printf("math.Sqrt(+Inf), got %f, want +Inf\n", got)