...

Source file src/math/cmplx/huge_test.go

Documentation: math/cmplx

		 1  // Copyright 2020 The Go Authors. All rights reserved.
		 2  // Use of this source code is governed by a BSD-style
		 3  // license that can be found in the LICENSE file.
		 4  
		 5  // Disabled for s390x because it uses assembly routines that are not
		 6  // accurate for huge arguments.
		 7  
		 8  //go:build !s390x
		 9  // +build !s390x
		10  
		11  package cmplx
		12  
		13  import (
		14  	"testing"
		15  )
		16  
		17  func TestTanHuge(t *testing.T) {
		18  	for i, x := range hugeIn {
		19  		if f := Tan(x); !cSoclose(tanHuge[i], f, 3e-15) {
		20  			t.Errorf("Tan(%g) = %g, want %g", x, f, tanHuge[i])
		21  		}
		22  	}
		23  }
		24  

View as plain text