Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for ctan (0.13 sec)

  1. src/math/cmplx/tan.go

    // series near these points.
    //
    // ctan(z) = -i ctanh(iz).
    //
    // ACCURACY:
    //
    //                      Relative error:
    // arithmetic   domain     # trials      peak         rms
    //    DEC       -10,+10      5200       7.1e-17     1.6e-17
    //    IEEE      -10,+10     30000       7.2e-16     1.2e-16
    // Also tested by ctan * ccot = 1 and catan(ctan(z))  =  z.
    
    // Tan returns the tangent of x.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 8.5K bytes
    - Viewed (0)
  2. src/math/cmplx/asin.go

    //
    // Where k is an arbitrary integer.
    //
    // catan(z) = -i catanh(iz).
    //
    // ACCURACY:
    //
    //                      Relative error:
    // arithmetic   domain     # trials      peak         rms
    //    DEC       -10,+10      5900       1.3e-16     7.8e-18
    //    IEEE      -10,+10     30000       2.3e-15     8.5e-17
    // The check catan( ctan(z) )  =  z, with |x| and |y| < PI/2,
    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/cmd/compile/internal/types2/chan.go

    func NewChan(dir ChanDir, elem Type) *Chan {
    	return &Chan{dir: dir, elem: elem}
    }
    
    // Dir returns the direction of channel c.
    func (c *Chan) Dir() ChanDir { return c.dir }
    
    // Elem returns the element type of channel c.
    func (c *Chan) Elem() Type { return c.elem }
    
    func (c *Chan) Underlying() Type { return c }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 910 bytes
    - Viewed (0)
  4. src/math/atan.go

    		Tan3pio8 = 2.41421356237309504880      // tan(3*pi/8)
    	)
    	if x <= 0.66 {
    		return xatan(x)
    	}
    	if x > Tan3pio8 {
    		return Pi/2 - xatan(1/x) + Morebits
    	}
    	return Pi/4 + xatan((x-1)/(x+1)) + 0.5*Morebits
    }
    
    // Atan returns the arctangent, in radians, of x.
    //
    // Special cases are:
    //
    //	Atan(±0) = ±0
    //	Atan(±Inf) = ±Pi/2
    func Atan(x float64) float64 {
    	if haveArchAtan {
    		return archAtan(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 3K bytes
    - Viewed (0)
  5. test/ken/chan.go

    	totr, tots int
    	totLock    sync.Mutex
    	nc         *Chan
    )
    
    func init() {
    	nc = new(Chan)
    }
    
    func changeNproc(adjust int) int {
    	nprocLock.Lock()
    	nproc += adjust
    	ret := nproc
    	nprocLock.Unlock()
    	return ret
    }
    
    func mkchan(c, n int) []*Chan {
    	ca := make([]*Chan, n)
    	for i := 0; i < n; i++ {
    		cval = cval + 100
    		ch := new(Chan)
    		ch.sc = make(chan int, c)
    		ch.rc = ch.sc
    		ch.sv = cval
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 4.7K bytes
    - Viewed (0)
  6. src/go/types/chan.go

    func NewChan(dir ChanDir, elem Type) *Chan {
    	return &Chan{dir: dir, elem: elem}
    }
    
    // Dir returns the direction of channel c.
    func (c *Chan) Dir() ChanDir { return c.dir }
    
    // Elem returns the element type of channel c.
    func (c *Chan) Elem() Type { return c.elem }
    
    func (c *Chan) Underlying() Type { return c }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1K bytes
    - Viewed (0)
  7. test/syntax/chan.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    type xyz struct {
        ch chan
    } // ERROR "unexpected .*}.* in channel type|missing channel element type"
    
    func Foo(y chan) { // ERROR "unexpected .*\).* in channel type|missing channel element type"
    }
    
    func Bar(x chan, y int) { // ERROR "unexpected comma in channel type|missing channel element type"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 492 bytes
    - Viewed (0)
  8. src/runtime/chan.go

    	// instead of idx itself.  However, in a future version of this function,
    	// we can use idx to better handle the case of elemsize==0.
    	// A future improvement to the detector is to call TSan with c and idx:
    	// this way, Go will continue to not allocating buffer entries for channels
    	// of elemsize==0, yet the race detector can be made to handle multiple
    	// sync objects underneath the hood (one sync object per idx)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  9. src/math/tan.go

    	-5.38695755929454629881e7, // 0xc189afe03cbe5a31
    }
    
    // Tan returns the tangent of the radian argument x.
    //
    // Special cases are:
    //
    //	Tan(±0) = ±0
    //	Tan(±Inf) = NaN
    //	Tan(NaN) = NaN
    func Tan(x float64) float64 {
    	if haveArchTan {
    		return archTan(x)
    	}
    	return tan(x)
    }
    
    func tan(x float64) float64 {
    	const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 08 17:27:54 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  10. src/runtime/race/testdata/mop_test.go

    func TestRaceForTest(t *testing.T) {
    	done := make(chan bool)
    	c := make(chan bool)
    	stop := false
    	go func() {
    		for {
    			_, ok := <-c
    			if !ok {
    				done <- true
    				return
    			}
    			stop = true
    		}
    	}()
    	for !stop {
    		c <- true
    	}
    	close(c)
    	<-done
    }
    
    func TestRaceForIncr(t *testing.T) {
    	done := make(chan bool)
    	c := make(chan bool)
    	x := 0
    	go func() {
    		for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 23 16:46:25 UTC 2023
    - 28.9K bytes
    - Viewed (0)
Back to top