Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 161 for IsNan (0.04 sec)

  1. src/internal/fuzz/encoding.go

    	for _, val := range vals {
    		switch t := val.(type) {
    		case int, int8, int16, int64, uint, uint16, uint32, uint64, bool:
    			fmt.Fprintf(b, "%T(%v)\n", t, t)
    		case float32:
    			if math.IsNaN(float64(t)) && math.Float32bits(t) != math.Float32bits(float32(math.NaN())) {
    				// We encode unusual NaNs as hex values, because that is how users are
    				// likely to encounter them in literature about floating-point encoding.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 11K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/check.go

    			case auxFloat32:
    				canHaveAuxInt = true
    				if math.IsNaN(v.AuxFloat()) {
    					f.Fatalf("value %v has an AuxInt that encodes a NaN", v)
    				}
    				if !isExactFloat32(v.AuxFloat()) {
    					f.Fatalf("value %v has an AuxInt value that is not an exact float32", v)
    				}
    			case auxFloat64:
    				canHaveAuxInt = true
    				if math.IsNaN(v.AuxFloat()) {
    					f.Fatalf("value %v has an AuxInt that encodes a NaN", v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/math/sqrt.go

    // Note: On systems where Sqrt is a single instruction, the compiler
    // may turn a direct call into a direct use of that instruction instead.
    
    func sqrt(x float64) float64 {
    	// special cases
    	switch {
    	case x == 0 || IsNaN(x) || IsInf(x, 1):
    		return x
    	case x < 0:
    		return NaN()
    	}
    	ix := Float64bits(x)
    	// normalize x
    	exp := int((ix >> shift) & mask)
    	if exp == 0 { // subnormal x
    		for ix&(1<<shift) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 15 17:07:57 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  4. src/math/erf.go

    }
    
    func erf(x float64) float64 {
    	const (
    		VeryTiny = 2.848094538889218e-306 // 0x0080000000000000
    		Small    = 1.0 / (1 << 28)        // 2**-28
    	)
    	// special cases
    	switch {
    	case IsNaN(x):
    		return NaN()
    	case IsInf(x, 1):
    		return 1
    	case IsInf(x, -1):
    		return -1
    	}
    	sign := false
    	if x < 0 {
    		x = -x
    		sign = true
    	}
    	if x < 0.84375 { // |x| < 0.84375
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 11.5K bytes
    - Viewed (0)
  5. src/main/webapp/js/admin/plugins/timepicker/bootstrap-timepicker.min.js

    this.clear();f=d[1]?d[1].toString():"",g=d[2]?d[2].toString():"",e.length>4&&(g=e.slice(-2),e=e.slice(0,-2)),e.length>2&&(f=e.slice(-2),e=e.slice(0,-2)),f.length>2&&(g=f.slice(-2),f=f.slice(0,-2)),e=parseInt(e,10),f=parseInt(f,10),g=parseInt(g,10),isNaN(e)&&(e=0),isNaN(f)&&(f=0),isNaN(g)&&(g=0),g>59&&(g=59),f>59&&(f=59),e>=this.maxHours&&(e=this.maxHours-1),this.showMeridian?(e>12&&(c=2,e-=12),c||(c=1),0===e&&(e=12),h=1===c?"AM":"PM"):12>e&&2===c?e+=12:e>=this.maxHours?e=this.maxHours-1:(0>e||12===e&&1===c)&&(e=...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 13 04:21:06 UTC 2020
    - 18.2K bytes
    - Viewed (0)
  6. src/math/j1.go

    		S03 = 1.17718464042623683263e-06  // 0x3EB3BFF8333F8498
    		S04 = 5.04636257076217042715e-09  // 0x3E35AC88C97DFF2C
    		S05 = 1.23542274426137913908e-11  // 0x3DAB2ACFCFB97ED8
    	)
    	// special cases
    	switch {
    	case IsNaN(x):
    		return x
    	case IsInf(x, 0) || x == 0:
    		return 0
    	}
    
    	sign := false
    	if x < 0 {
    		x = -x
    		sign = true
    	}
    	if x >= 2 {
    		s, c := Sincos(x)
    		ss := -s - c
    		cc := s - c
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 13.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        }
      }
    
      public void testIsFinite() {
        for (float value : NUMBERS) {
          assertThat(Floats.isFinite(value))
              .isEqualTo(!(Float.isInfinite(value) || Float.isNaN(value)));
        }
      }
    
      public void testCompare() {
        for (float x : VALUES) {
          for (float y : VALUES) {
            // note: spec requires only that the sign is the same
            assertWithMessage(x + ", " + y)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/DoublesTest.java

        }
      }
    
      public void testIsFinite() {
        for (double value : NUMBERS) {
          assertThat(Doubles.isFinite(value))
              .isEqualTo(!(Double.isNaN(value) || Double.isInfinite(value)));
        }
      }
    
      public void testCompare() {
        for (double x : VALUES) {
          for (double y : VALUES) {
            // note: spec requires only that the sign is the same
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/FloatsTest.java

        }
      }
    
      public void testIsFinite() {
        for (float value : NUMBERS) {
          assertThat(Floats.isFinite(value))
              .isEqualTo(!(Float.isInfinite(value) || Float.isNaN(value)));
        }
      }
    
      public void testCompare() {
        for (float x : VALUES) {
          for (float y : VALUES) {
            // note: spec requires only that the sign is the same
            assertWithMessage(x + ", " + y)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  10. src/math/log1p.go

    		Lp6         = 1.531383769920937332e-01     // 3FC39A09D078C69F
    		Lp7         = 1.479819860511658591e-01     // 3FC2F112DF3E5244
    	)
    
    	// special cases
    	switch {
    	case x < -1 || IsNaN(x): // includes -Inf
    		return NaN()
    	case x == -1:
    		return Inf(-1)
    	case IsInf(x, 1):
    		return Inf(1)
    	}
    
    	absx := Abs(x)
    
    	var f float64
    	var iu uint64
    	k := 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 6.3K bytes
    - Viewed (0)
Back to top