Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkBinomial (0.34 sec)

  1. src/math/big/int_test.go

    	} {
    		if got := z.Binomial(test.n, test.k).String(); got != test.want {
    			t.Errorf("Binomial(%d, %d) = %s; want %s", test.n, test.k, got, test.want)
    		}
    	}
    }
    
    func BenchmarkBinomial(b *testing.B) {
    	var z Int
    	for i := 0; i < b.N; i++ {
    		z.Binomial(1000, 990)
    	}
    }
    
    // Examples from the Go Language Spec, section "Arithmetic operators"
    var divisionSignsTests = []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
Back to top