Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 142 for asin (0.1 sec)

  1. 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)
  2. src/math/cmplx/asin.go

    	w := Log(ct + x2)
    	return complex(imag(w), -real(w)) // -i * w
    }
    
    // Asinh returns the inverse hyperbolic sine of x.
    func Asinh(x complex128) complex128 {
    	switch re, im := real(x), imag(x); {
    	case im == 0 && math.Abs(re) <= 1:
    		return complex(math.Asinh(re), im)
    	case re == 0 && math.Abs(im) <= 1:
    		return complex(re, math.Asin(im))
    	case math.IsInf(re, 0):
    		switch {
    		case math.IsInf(im, 0):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 5.9K bytes
    - Viewed (0)
  3. src/math/cmplx/cmath_test.go

    			t.Errorf("Asin(%g) = %g, want %g", -v.in, f, -v.want)
    		}
    	}
    	for _, pt := range branchPoints {
    		if f0, f1 := Asin(pt[0]), Asin(pt[1]); !cVeryclose(f0, f1) {
    			t.Errorf("Asin(%g) not continuous, got %g want %g", pt[0], f0, f1)
    		}
    	}
    }
    func TestAsinh(t *testing.T) {
    	for i := 0; i < len(vc); i++ {
    		if f := Asinh(vc[i]); !cSoclose(asinh[i], f, 4e-15) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 48.1K bytes
    - Viewed (0)
  4. src/math/export_s390x_test.go

    var Log10NoVec = log10
    var CosNoVec = cos
    var CoshNoVec = cosh
    var SinNoVec = sin
    var SinhNoVec = sinh
    var TanhNoVec = tanh
    var Log1pNovec = log1p
    var AtanhNovec = atanh
    var AcosNovec = acos
    var AcoshNovec = acosh
    var AsinNovec = asin
    var AsinhNovec = asinh
    var ErfNovec = erf
    var ErfcNovec = erfc
    var AtanNovec = atan
    var Atan2Novec = atan2
    var CbrtNovec = cbrt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 08 19:52:30 UTC 2017
    - 732 bytes
    - Viewed (0)
  5. src/math/asin_s390x.s

    DATA ·asinrodataL15<> + 208(SB)/8, $1.0
    DATA ·asinrodataL15<> + 216(SB)/8, $1.00000000000000000e-20
    GLOBL ·asinrodataL15<> + 0(SB), RODATA, $224
    
    // Asin returns the arcsine, in radians, of the argument.
    //
    // Special cases are:
    //      Asin(±0) = ±0=
    //      Asin(x) = NaN if x < -1 or x > 1
    // The algorithm used is minimax polynomial approximation
    // with coefficients determined with a Remez exchange algorithm.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 20 17:42:08 UTC 2018
    - 4.2K bytes
    - Viewed (0)
  6. tensorflow/cc/gradients/math_grad_test.cc

    }
    
    TEST_F(CWiseUnaryGradTest, Asin) {
      auto x_fn = [this](const int i) { return RV({0, 0.25, -0.25, -0.5, 0.5}); };
      TestCWiseGrad<float, float>(ASIN, x_fn);
    }
    
    TEST_F(CWiseUnaryGradTest, Asin_Complex) {
      auto x_fn = [this](const int i) {
        return CRV({{0.5, 0}, {0, 0.5}, {0.25, -0.75}, {0.5, 0.25}});
      };
      // TODO(kbsriram)
      // Enable test when the asin kernel supports complex numbers
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
  7. src/math/arith_s390x_test.go

    		t.Skipf("no vector support")
    	}
    	for i := 0; i < len(vf); i++ {
    		a := vf[i] / 10
    		if f := AsinNovec(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 := AsinNovec(vfasinSC[i]); !alike(asinSC[i], f) {
    			t.Errorf("Asin(%g) = %g, want %g", vfasinSC[i], f, asinSC[i])
    		}
    	}
    }
    
    func TestAcoshNovec(t *testing.T) {
    	if !HasVX {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 08 19:52:30 UTC 2017
    - 10.8K bytes
    - Viewed (0)
  8. src/math/example_test.go

    	// Output: 0.00
    }
    
    func ExampleCosh() {
    	fmt.Printf("%.2f", math.Cosh(0))
    	// Output: 1.00
    }
    
    func ExampleSin() {
    	fmt.Printf("%.2f", math.Sin(math.Pi))
    	// Output: 0.00
    }
    
    func ExampleSincos() {
    	sin, cos := math.Sincos(0)
    	fmt.Printf("%.2f, %.2f", sin, cos)
    	// Output: 0.00, 1.00
    }
    
    func ExampleSinh() {
    	fmt.Printf("%.2f", math.Sinh(0))
    	// Output: 0.00
    }
    
    func ExampleTan() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 07 18:09:53 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  9. src/math/stubs_s390x.s

    TEXT ·asinTrampolineSetup(SB), NOSPLIT, $0
    	MOVB   ·hasVX(SB), R1
    	CMPBEQ R1, $1, vectorimpl                // vectorfacility = 1, vector supported
    	MOVD   $·asinvectorfacility+0x00(SB), R1
    	MOVD   $·asin(SB), R2
    	MOVD   R2, 0(R1)
    	BR     ·asin(SB)
    
    vectorimpl:
    	MOVD $·asinvectorfacility+0x00(SB), R1
    	MOVD $·asinAsm(SB), R2
    	MOVD R2, 0(R1)
    	BR   ·asinAsm(SB)
    
    GLOBL ·asinvectorfacility+0x00(SB), NOPTR, $8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 15:48:19 UTC 2021
    - 12.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/region-control-flow-to-functional.mlir

      %0 = "tf.IfRegion"(%arg0) ({
        // Outer Then
        %cond = "tf.LogicalNot"(%arg0) : (tensor<i1>) -> tensor<i1>
        %asin = "tf.Asin"(%arg1) : (tensor<*xf32>) -> tensor<*xf32>
    
        // nested IfRegion
        %1 = "tf.IfRegion"(%cond) ({
            %2 = "tf.Abs"(%asin) : (tensor<*xf32>) -> tensor<*xf32>
            "tf.Yield"(%2) : (tensor<*xf32>) -> ()
          }, {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 02 11:15:34 UTC 2024
    - 44.3K bytes
    - Viewed (0)
Back to top