Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for coshSC (0.17 sec)

  1. src/math/arith_s390x_test.go

    		t.Skipf("no vector support")
    	}
    	for i := 0; i < len(vf); i++ {
    		if f := CoshNoVec(vf[i]); !close(cosh[i], f) {
    			t.Errorf("Cosh(%g) = %g, want %g", vf[i], f, cosh[i])
    		}
    	}
    	for i := 0; i < len(vfcoshSC); i++ {
    		if f := CoshNoVec(vfcoshSC[i]); !alike(coshSC[i], f) {
    			t.Errorf("Cosh(%g) = %g, want %g", vfcoshSC[i], f, coshSC[i])
    		}
    	}
    }
    func TestSinNovec(t *testing.T) {
    	if !HasVX {
    		t.Skipf("no vector support")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 08 19:52:30 UTC 2017
    - 10.8K bytes
    - Viewed (0)
  2. src/math/cosh_s390x.s

    // Minimax polynomial approximations
    DATA coshe2<>+0(SB)/8, $0.500000000000004237e+00
    GLOBL coshe2<>+0(SB), RODATA, $8
    DATA coshe3<>+0(SB)/8, $0.166666666630345592e+00
    GLOBL coshe3<>+0(SB), RODATA, $8
    DATA coshe4<>+0(SB)/8, $0.416666664838056960e-01
    GLOBL coshe4<>+0(SB), RODATA, $8
    DATA coshe5<>+0(SB)/8, $0.833349307718286047e-02
    GLOBL coshe5<>+0(SB), RODATA, $8
    DATA coshe6<>+0(SB)/8, $0.138926439368309441e-02
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 15:34:41 UTC 2019
    - 5.6K bytes
    - Viewed (0)
  3. src/math/cmplx/cmath_test.go

    		}
    	}
    }
    func TestCosh(t *testing.T) {
    	for i := 0; i < len(vc); i++ {
    		if f := Cosh(vc[i]); !cSoclose(cosh[i], f, 2e-15) {
    			t.Errorf("Cosh(%g) = %g, want %g", vc[i], f, cosh[i])
    		}
    	}
    	for _, v := range coshSC {
    		if f := Cosh(v.in); !cAlike(v.want, f) {
    			t.Errorf("Cosh(%g) = %g, want %g", v.in, f, v.want)
    		}
    		if math.IsNaN(imag(v.in)) || math.IsNaN(imag(v.want)) {
    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/all_test.go

    	}
    }
    
    func TestCosh(t *testing.T) {
    	for i := 0; i < len(vf); i++ {
    		if f := Cosh(vf[i]); !close(cosh[i], f) {
    			t.Errorf("Cosh(%g) = %g, want %g", vf[i], f, cosh[i])
    		}
    	}
    	for i := 0; i < len(vfcoshSC); i++ {
    		if f := Cosh(vfcoshSC[i]); !alike(coshSC[i], f) {
    			t.Errorf("Cosh(%g) = %g, want %g", vfcoshSC[i], f, coshSC[i])
    		}
    	}
    }
    
    func TestErf(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)
  5. src/math/sinh.go

    	}
    
    	if sign {
    		temp = -temp
    	}
    	return temp
    }
    
    // Cosh returns the hyperbolic cosine of x.
    //
    // Special cases are:
    //
    //	Cosh(±0) = 1
    //	Cosh(±Inf) = +Inf
    //	Cosh(NaN) = NaN
    func Cosh(x float64) float64 {
    	if haveArchCosh {
    		return archCosh(x)
    	}
    	return cosh(x)
    }
    
    func cosh(x float64) float64 {
    	x = Abs(x)
    	if x > 21 {
    		return Exp(x) * 0.5
    	}
    	ex := Exp(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  6. src/math/cmplx/sin.go

    // Complex hyperbolic cosine
    //
    // DESCRIPTION:
    //
    // ccosh(z) = cosh x  cos y + i sinh x sin y .
    //
    // ACCURACY:
    //
    //                      Relative error:
    // arithmetic   domain     # trials      peak         rms
    //    IEEE      -10,+10     30000       2.9e-16     8.1e-17
    
    // Cosh returns the hyperbolic cosine of x.
    func Cosh(x complex128) complex128 {
    	switch re, im := real(x), imag(x); {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  7. src/math/cmplx/tan.go

    	case re == 0 && math.IsNaN(im):
    		return x
    	}
    	d := math.Cos(2*real(x)) + math.Cosh(2*imag(x))
    	if math.Abs(d) < 0.25 {
    		d = tanSeries(x)
    	}
    	if d == 0 {
    		return Inf()
    	}
    	return complex(math.Sin(2*real(x))/d, math.Sinh(2*imag(x))/d)
    }
    
    // Complex hyperbolic tangent
    //
    // DESCRIPTION:
    //
    // tanh z = (sinh 2x  +  i sin 2y) / (cosh 2x + cos 2y) .
    //
    // ACCURACY:
    //
    //                      Relative error:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 8.5K bytes
    - Viewed (0)
  8. src/math/export_s390x_test.go

    // license that can be found in the LICENSE file.
    
    package math
    
    // Export internal functions and variable for testing.
    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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 08 19:52:30 UTC 2017
    - 732 bytes
    - Viewed (0)
  9. src/math/tanh.go

    //      MINLOG = -8.872283911167299960540e+01 = log(2**-128)
    //
    // A rational function is used for |x| < 0.625.  The form
    // x + x**3 P(x)/Q(x) of Cody & Waite is employed.
    // Otherwise,
    //      tanh(x) = sinh(x)/cosh(x) = 1  -  2/(exp(2x) + 1).
    //
    // ACCURACY:
    //
    //                      Relative error:
    // arithmetic   domain     # trials      peak         rms
    //    IEEE      -2,2        30000       2.5e-16     5.8e-17
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  10. tensorflow/cc/gradients/math_grad_test.cc

    }
    
    TEST_F(CWiseUnaryGradTest, Cosh) {
      auto x_fn = [this](const int i) { return RV({0, -1, 1, -2, 2, -3, 3}); };
      TestCWiseGrad<float, float>(COSH, x_fn);
    }
    
    TEST_F(CWiseUnaryGradTest, Cosh_Complex) {
      auto x_fn = [this](const int i) {
        return CRV({{0.5, 0.25}, {0.25, 0.5}, {1.5, -1}, {1, 1.5}});
      };
      TestCWiseGrad<complex64, complex64>(COSH, x_fn);
    }
    
    TEST_F(CWiseUnaryGradTest, Tanh) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
Back to top