Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for 2718e28 (0.72 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/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)
  3. 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)
  4. 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)
  5. src/go/types/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: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  6. src/cmd/trace/testdata/go122.test

    HeapAlloc dt=6 heapalloc_value=7186160
    HeapAlloc dt=5 heapalloc_value=7194352
    HeapAlloc dt=5 heapalloc_value=7202544
    HeapAlloc dt=6 heapalloc_value=7210736
    HeapAlloc dt=5 heapalloc_value=7218928
    HeapAlloc dt=35 heapalloc_value=7227120
    HeapAlloc dt=10 heapalloc_value=7235312
    HeapAlloc dt=5 heapalloc_value=7243504
    HeapAlloc dt=5 heapalloc_value=7251696
    HeapAlloc dt=6 heapalloc_value=7259888
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 17:15:58 UTC 2024
    - 166K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

      let 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 Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
Back to top