Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFloatSqrtSpecial (0.15 sec)

  1. src/math/big/sqrt_test.go

    			if err.Cmp(maxErr) >= 0 {
    				t.Errorf("prec = %d, Sqrt(%v) =\ngot err  %g;\nwant maxErr %g",
    					prec, test.x, err, maxErr)
    			}
    		}
    	}
    }
    
    func TestFloatSqrtSpecial(t *testing.T) {
    	for _, test := range []struct {
    		x    *Float
    		want *Float
    	}{
    		{NewFloat(+0), NewFloat(+0)},
    		{NewFloat(-0), NewFloat(-0)},
    		{NewFloat(math.Inf(+1)), NewFloat(math.Inf(+1))},
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 4.8K bytes
    - Viewed (0)
Back to top