Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for 2718e28 (0.1 sec)

  1. src/flag/flag_test.go

    		t.Error("uint64 flag should be 25, is ", *uint64Flag)
    	}
    	if *stringFlag != "hello" {
    		t.Error("string flag should be `hello`, is ", *stringFlag)
    	}
    	if *float64Flag != 2718e28 {
    		t.Error("float64 flag should be 2718e28, is ", *float64Flag)
    	}
    	if *durationFlag != 2*time.Minute {
    		t.Error("duration flag should be 2m, is ", *durationFlag)
    	}
    	if len(f.Args()) != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
  2. src/compress/lzw/writer_test.go

    			return
    		}
    	}
    }
    
    func TestWriter(t *testing.T) {
    	for _, filename := range filenames {
    		for _, order := range [...]Order{LSB, MSB} {
    			// The test data "2.71828 etcetera" is ASCII text requiring at least 6 bits.
    			for litWidth := 6; litWidth <= 8; litWidth++ {
    				if filename == "../testdata/gettysburg.txt" && litWidth == 6 {
    					continue
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 12 11:00:47 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  3. src/syscall/syscall_unix_test.go

    func TestFcntlFlock(t *testing.T) {
    	if runtime.GOOS == "ios" {
    		t.Skip("skipping; no child processes allowed on iOS")
    	}
    	flock := syscall.Flock_t{
    		Type:  syscall.F_WRLCK,
    		Start: 31415, Len: 271828, Whence: 1,
    	}
    	if os.Getenv("GO_WANT_HELPER_PROCESS") == "" {
    		// parent
    		tempDir := t.TempDir()
    		name := filepath.Join(tempDir, "TestFcntlFlock")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  4. src/math/big/float_test.go

    // TestFloatArithmeticSpecialValues tests that Float operations produce the
    // correct results for combinations of zero (±0), finite (±1 and ±2.71828),
    // and infinite (±Inf) operands.
    func TestFloatArithmeticSpecialValues(t *testing.T) {
    	zero := 0.0
    	args := []float64{math.Inf(-1), -2.71828, -1, -zero, zero, 1, 2.71828, math.Inf(1)}
    	xx := new(Float)
    	yy := new(Float)
    	got := new(Float)
    	want := new(Float)
    	for i := 0; i < 4; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/ops/math_ops.cc

    // Description:
    //     This function computes the exponential of every element in the input
    //     tensor. i.e. `exp(x)` or `e^(x)`, where `x` is the input tensor. `e`
    //     denotes Euler's number and is approximately equal to 2.718281. Output is
    //     positive for any real input.
    //
    //     ```python
    //     x = tf.constant(2.0)
    //     tf.math.exp(x) ==> 7.389056
    //
    //     x = tf.constant([2.0, 8.0])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 10 19:11:36 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  6. src/encoding/gob/codec_test.go

    		N        *[3]float64
    		Strs     *[2]string
    		Int64s   *[]int64
    		RI       complex64
    		S        string
    		Y        []byte
    		T        *T2
    	}
    	pi := 3.14159
    	e := 2.71828
    	two := 2.0
    	meaning := 42
    	fingers := 5
    	s1 := "string1"
    	s2 := "string2"
    	var comp1 complex128 = complex(1.0, 1.0)
    	var comp2 complex128 = complex(1.0, 1.0)
    	var arr1 [2]string
    	arr1[0] = s1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 19 23:03:14 UTC 2023
    - 36.9K bytes
    - Viewed (0)
  7. src/go/printer/printer_test.go

    	// compare original with desired output
    	if got != want {
    		t.Errorf("got:\n%s\nwant:\n%s\n", got, want)
    	}
    }
    
    var decls = []string{
    	`import "fmt"`,
    	"const pi = 3.1415\nconst e = 2.71828\n\nvar x = pi",
    	"func sum(x, y int) int\t{ return x + y }",
    }
    
    func TestDeclLists(t *testing.T) {
    	for _, src := range decls {
    		file, err := parser.ParseFile(fset, "", "package p;"+src, parser.ParseComments)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. src/runtime/chan_test.go

    		if n0 <= n/10 || n1 <= n/10 {
    			t.Errorf("Want pseudorandom, got %d zeros and %d ones (chan cap %d)", n0, n1, chanCap)
    		}
    	}
    }
    
    func TestMultiConsumer(t *testing.T) {
    	const nwork = 23
    	const niter = 271828
    
    	pn := []int{2, 3, 7, 11, 13, 17, 19, 23, 27, 31}
    
    	q := make(chan int, nwork*3)
    	r := make(chan int, nwork*3)
    
    	// workers
    	var wg sync.WaitGroup
    	for i := 0; i < nwork; i++ {
    		wg.Add(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
  9. src/go/parser/parser_test.go

    func TestCommentGroups(t *testing.T) {
    	f, err := ParseFile(token.NewFileSet(), "", `
    package p /* 1a */ /* 1b */      /* 1c */ // 1d
    /* 2a
    */
    // 2b
    const pi = 3.1415
    /* 3a */ // 3b
    /* 3c */ const e = 2.7182
    
    // Example from go.dev/issue/3139
    func ExampleCount() {
    	fmt.Println(strings.Count("cheese", "e"))
    	fmt.Println(strings.Count("five", "")) // before & after each rune
    	// Output:
    	// 3
    	// 5
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api_test.go

    type T struct{}
    var Y, _ = lib.X, X
    
    func F[T *U, U any](param1, param2 int) /*param1=undef*/ (res1 /*res1=undef*/, res2 int) /*param1=var:12*/ /*res1=var:12*/ /*U=typename:12*/ {
    	const pi, e = 3.1415, /*pi=undef*/ 2.71828 /*pi=const:13*/ /*e=const:13*/
    	type /*t=undef*/ t /*t=typename:14*/ *t
    	print(Y) /*Y=var:10*/
    	x, Y := Y, /*x=undef*/ /*Y=var:10*/ Pi /*x=var:16*/ /*Y=var:16*/ ; _ = x; _ = Y
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top