Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCosh (0.09 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)
Back to top