Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for Ln10 (0.04 sec)

  1. src/strconv/ftoaryu_test.go

    		iMath := MulByLog2Log10(x)
    		fMath := int(math.Floor(float64(x) * math.Ln2 / math.Ln10))
    		if iMath != fMath {
    			t.Errorf("mulByLog2Log10(%d) failed: %d vs %d\n", x, iMath, fMath)
    		}
    	}
    }
    
    func TestMulByLog10Log2(t *testing.T) {
    	for x := -500; x <= +500; x++ {
    		iMath := MulByLog10Log2(x)
    		fMath := int(math.Floor(float64(x) * math.Ln10 / math.Ln2))
    		if iMath != fMath {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 08:44:21 UTC 2021
    - 759 bytes
    - Viewed (0)
  2. src/math/const.go

    	Ln2    = 0.693147180559945309417232121458176568075500134360255254120680009 // https://oeis.org/A002162
    	Log2E  = 1 / Ln2
    	Ln10   = 2.30258509299404568401799145468436420760110148862877297603332790 // https://oeis.org/A002392
    	Log10E = 1 / Ln10
    )
    
    // Floating-point limit values.
    // Max is the largest finite value representable by the type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 21 14:07:39 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  3. src/math/log10.go

    // The special cases are the same as for [Log].
    func Log10(x float64) float64 {
    	if haveArchLog10 {
    		return archLog10(x)
    	}
    	return log10(x)
    }
    
    func log10(x float64) float64 {
    	return Log(x) * (1 / Ln10)
    }
    
    // Log2 returns the binary logarithm of x.
    // The special cases are the same as for [Log].
    func Log2(x float64) float64 {
    	if haveArchLog2 {
    		return archLog2(x)
    	}
    	return log2(x)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 873 bytes
    - Viewed (0)
  4. src/math/arith_s390x_test.go

    		a := vf[i] / 100
    		if f := Log1pNovec(a); !veryclose(log1p[i], f) {
    			t.Errorf("Log1p(%g) = %g, want %g", a, f, log1p[i])
    		}
    	}
    	a := 9.0
    	if f := Log1pNovec(a); f != Ln10 {
    		t.Errorf("Log1p(%g) = %g, want %g", a, f, Ln10)
    	}
    	for i := 0; i < len(vflogSC); i++ {
    		if f := Log1pNovec(vflog1pSC[i]); !alike(log1pSC[i], f) {
    			t.Errorf("Log1p(%g) = %g, want %g", vflog1pSC[i], f, log1pSC[i])
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 08 19:52:30 UTC 2017
    - 10.8K bytes
    - Viewed (0)
  5. src/math/all_test.go

    	for i := 0; i < len(vf); i++ {
    		a := Abs(vf[i])
    		if f := Log(a); log[i] != f {
    			t.Errorf("Log(%g) = %g, want %g", a, f, log[i])
    		}
    	}
    	if f := Log(10); f != Ln10 {
    		t.Errorf("Log(%g) = %g, want %g", 10.0, f, Ln10)
    	}
    	for i := 0; i < len(vflogSC); i++ {
    		if f := Log(vflogSC[i]); !alike(logSC[i], f) {
    			t.Errorf("Log(%g) = %g, want %g", vflogSC[i], f, logSC[i])
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  6. src/go/constant/value.go

    	// approximate float64 mantissa m and decimal exponent d
    	// f ~ m * 10**d
    	m, _ := mant.Float64()                     // 0.5 <= |m| < 1.0
    	d := float64(exp) * (math.Ln2 / math.Ln10) // log_10(2)
    
    	// adjust m for truncated (integer) decimal exponent e
    	e := int64(d)
    	m *= math.Pow(10, d-float64(e))
    
    	// ensure 1 <= |m| < 10
    	switch am := math.Abs(m); {
    	case am < 1-0.5e-6:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  7. okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt

        )
        assertThat(callbacks.remove()).isEqualTo(Event(null, null, "YHOO\n+2\n10"))
      }
    
      @Test
      fun multilineCr() {
        consumeEvents(
          """
          |data: YHOO
          |data: +2
          |data: 10
          |
          |
          """.trimMargin().replace("\n", "\r"),
        )
        assertThat(callbacks.remove()).isEqualTo(Event(null, null, "YHOO\n+2\n10"))
      }
    
      @Test
      fun multilineCrLf() {
        consumeEvents(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. src/runtime/softfloat64.go

    	}
    
    	// s = nlz(v); v <<= s
    	s := uint(0)
    	for v&(1<<63) == 0 {
    		s++
    		v <<= 1
    	}
    
    	vn1 := v >> 32
    	vn0 := v & (1<<32 - 1)
    	un32 := u1<<s | u0>>(64-s)
    	un10 := u0 << s
    	un1 := un10 >> 32
    	un0 := un10 & (1<<32 - 1)
    	q1 := un32 / vn1
    	rhat := un32 - q1*vn1
    
    again1:
    	if q1 >= b || q1*vn0 > b*rhat+un1 {
    		q1--
    		rhat += vn1
    		if rhat < b {
    			goto again1
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 08 17:58:41 UTC 2021
    - 11.5K bytes
    - Viewed (0)
  9. src/math/bits/bits.go

    	}
    
    	s := uint(LeadingZeros64(y))
    	y <<= s
    
    	const (
    		two32  = 1 << 32
    		mask32 = two32 - 1
    	)
    	yn1 := y >> 32
    	yn0 := y & mask32
    	un32 := hi<<s | lo>>(64-s)
    	un10 := lo << s
    	un1 := un10 >> 32
    	un0 := un10 & mask32
    	q1 := un32 / yn1
    	rhat := un32 - q1*yn1
    
    	for q1 >= two32 || q1*yn0 > two32*rhat+un1 {
    		q1--
    		rhat += yn1
    		if rhat >= two32 {
    			break
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/img/javaPluginTasks.graphml

              <y:Shape type="roundrectangle"/>
            </y:ShapeNode>
          </data>
        </node>
        <node id="n10">
          <data key="d6">
            <y:ShapeNode>
              <y:Geometry height="30.0" width="140.0" x="0.0" y="23.32352941176471"/>
              <y:Fill color="#C3D9E6" transparent="false"/>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 15.3K bytes
    - Viewed (0)
Back to top