Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestCosh (0.27 sec)

  1. src/math/cmplx/cmath_test.go

    			continue
    		}
    		// Cos(-z)  == Cos(z)
    		if f := Cos(-v.in); !cAlike(v.want, f) && !cAlike(v.in, -v.in) {
    			t.Errorf("Cos(%g) = %g, want %g", -v.in, f, v.want)
    		}
    	}
    }
    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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 48.1K bytes
    - Viewed (0)
  2. src/math/all_test.go

    		}
    	}
    	for i := 0; i < len(vfcosSC); i++ {
    		if f := Cos(vfcosSC[i]); !alike(cosSC[i], f) {
    			t.Errorf("Cos(%g) = %g, want %g", vfcosSC[i], f, cosSC[i])
    		}
    	}
    }
    
    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++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
Back to top