Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for asinSC (0.12 sec)

  1. src/math/all_test.go

    func TestAsin(t *testing.T) {
    	for i := 0; i < len(vf); i++ {
    		a := vf[i] / 10
    		if f := Asin(a); !veryclose(asin[i], f) {
    			t.Errorf("Asin(%g) = %g, want %g", a, f, asin[i])
    		}
    	}
    	for i := 0; i < len(vfasinSC); i++ {
    		if f := Asin(vfasinSC[i]); !alike(asinSC[i], f) {
    			t.Errorf("Asin(%g) = %g, want %g", vfasinSC[i], f, asinSC[i])
    		}
    	}
    }
    
    func TestAsinh(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  2. src/math/asinh.go

    //
    //	Asinh(±0) = ±0
    //	Asinh(±Inf) = ±Inf
    //	Asinh(NaN) = NaN
    func Asinh(x float64) float64 {
    	if haveArchAsinh {
    		return archAsinh(x)
    	}
    	return asinh(x)
    }
    
    func asinh(x float64) float64 {
    	const (
    		Ln2      = 6.93147180559945286227e-01 // 0x3FE62E42FEFA39EF
    		NearZero = 1.0 / (1 << 28)            // 2**-28
    		Large    = 1 << 28                    // 2**28
    	)
    	// special cases
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 20:02:49 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. src/math/asin.go

    	They are implemented by computing the arctangent
    	after appropriate range reduction.
    */
    
    // Asin returns the arcsine, in radians, of x.
    //
    // Special cases are:
    //
    //	Asin(±0) = ±0
    //	Asin(x) = NaN if x < -1 or x > 1
    func Asin(x float64) float64 {
    	if haveArchAsin {
    		return archAsin(x)
    	}
    	return asin(x)
    }
    
    func asin(x float64) float64 {
    	if x == 0 {
    		return x // special case
    	}
    	sign := false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  4. tensorflow/cc/gradients/math_grad_test.cc

    }
    
    TEST_F(CWiseUnaryGradTest, Asinh) {
      auto x_fn = [this](const int i) { return RV({0.5, 1, -1, -1.5, 1.5}); };
      TestCWiseGrad<float, float>(ASINH, x_fn);
    }
    
    TEST_F(CWiseUnaryGradTest, Asinh_Complex) {
      auto x_fn = [this](const int i) {
        return CRV({{1, 0.5}, {0.5, 1}, {0.5, -1}, {1, 1.5}});
      };
      TestCWiseGrad<complex64, complex64>(ASINH, x_fn);
    }
    
    TEST_F(CWiseUnaryGradTest, Acosh) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
  5. src/math/example_test.go

    	// Output: 0.00
    }
    
    func ExampleAcosh() {
    	fmt.Printf("%.2f", math.Acosh(1))
    	// Output: 0.00
    }
    
    func ExampleAsin() {
    	fmt.Printf("%.2f", math.Asin(0))
    	// Output: 0.00
    }
    
    func ExampleAsinh() {
    	fmt.Printf("%.2f", math.Asinh(0))
    	// Output: 0.00
    }
    
    func ExampleAtan() {
    	fmt.Printf("%.2f", math.Atan(0))
    	// Output: 0.00
    }
    
    func ExampleAtan2() {
    	fmt.Printf("%.2f", math.Atan2(0, 0))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 07 18:09:53 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

      }
    
      private static class ExpectedHashCode {
        final byte[] bytes;
        final int asInt;
        final Long asLong; // null means that asLong should throw an exception
        final String toString;
    
        ExpectedHashCode(byte[] bytes, int asInt, @Nullable Long asLong, String toString) {
          this.bytes = bytes;
          this.asInt = asInt;
          this.asLong = asLong;
          this.toString = toString;
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  7. platforms/jvm/toolchains-jvm-shared/src/test/groovy/org/gradle/jvm/toolchain/internal/DefaultJavaLanguageVersionTest.groovy

            expect:
            for (int i = DefaultJavaLanguageVersion.LOWER_CACHED_VERSION; i <= DefaultJavaLanguageVersion.HIGHER_CACHED_VERSION; i++) {
                assert knownVersions[i - DefaultJavaLanguageVersion.LOWER_CACHED_VERSION].asInt() == i
            }
        }
    
        def 'special cases versions 1 to 4'() {
            given:
            def values = 1..4
    
            expect:
            values.forEach {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 16:57:19 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/AbstractJavaCompileSpecFactory.java

                return chooseSpecFromCompileOptions(toolchainJavaHome);
            }
    
            if (!toolchain.isCurrentJvm()) {
                return getForkingSpec(toolchainJavaHome, toolchain.getLanguageVersion().asInt());
            }
    
            return getDefaultSpec();
        }
    
        private T chooseSpecFromCompileOptions(File fallbackJavaHome) {
            File forkJavaHome = compileOptions.getForkOptions().getJavaHome();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 10:21:25 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. platforms/jvm/toolchains-jvm-shared/src/main/java/org/gradle/jvm/toolchain/internal/DefaultJavaLanguageVersion.java

        }
    
        private final int version;
    
        private DefaultJavaLanguageVersion(int version) {
            this.version = version;
        }
    
        @Override
        public int asInt() {
            return version;
        }
    
        @Override
        public String toString() {
            if (version < 5) {
                return String.format("1.%d", version);
            }
            return Integer.toString(version);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/HashTestUtils.java

            int key1 = rand.nextInt();
            // flip input bit for key2
            int key2 = key1 ^ (1 << i);
            // get hashes
            int hash1 = function.hashInt(key1).asInt();
            int hash2 = function.hashInt(key2).asInt();
            // test whether the hash values have same output bits
            same |= ~(hash1 ^ hash2);
            // test whether the hash values have different output bits
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 25.3K bytes
    - Viewed (0)
Back to top