Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFloatSqrt64 (0.22 sec)

  1. src/math/big/sqrt_test.go

    // license that can be found in the LICENSE file.
    
    package big
    
    import (
    	"fmt"
    	"math"
    	"math/rand"
    	"testing"
    )
    
    // TestFloatSqrt64 tests that Float.Sqrt of numbers with 53bit mantissa
    // behaves like float math.Sqrt.
    func TestFloatSqrt64(t *testing.T) {
    	for i := 0; i < 1e5; i++ {
    		if i == 1e2 && testing.Short() {
    			break
    		}
    		r := rand.Float64()
    
    		got := new(Float).SetPrec(53)
    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