Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for asin (0.09 sec)

  1. src/math/asin.go

    	They are implemented by computing the arctangent
    	after appropriate range reduction.
    */
    
    // Asin returns the arcsine, in radians, of x.
    //
    // Special cases are:
    //
    //	Asin(±0) = ±0
    //	Asin(x) = NaN if x < -1 or x > 1
    func Asin(x float64) float64 {
    	if haveArchAsin {
    		return archAsin(x)
    	}
    	return asin(x)
    }
    
    func asin(x float64) float64 {
    	if x == 0 {
    		return x // special case
    	}
    	sign := false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  2. src/math/cmplx/asin.go

    	w := Log(ct + x2)
    	return complex(imag(w), -real(w)) // -i * w
    }
    
    // Asinh returns the inverse hyperbolic sine of x.
    func Asinh(x complex128) complex128 {
    	switch re, im := real(x), imag(x); {
    	case im == 0 && math.Abs(re) <= 1:
    		return complex(math.Asinh(re), im)
    	case re == 0 && math.Abs(im) <= 1:
    		return complex(re, math.Asin(im))
    	case math.IsInf(re, 0):
    		switch {
    		case math.IsInf(im, 0):
    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/math/export_s390x_test.go

    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
    var ErfNovec = erf
    var ErfcNovec = erfc
    var AtanNovec = atan
    var Atan2Novec = atan2
    var CbrtNovec = cbrt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 08 19:52:30 UTC 2017
    - 732 bytes
    - Viewed (0)
  4. src/math/asin_s390x.s

    DATA ·asinrodataL15<> + 208(SB)/8, $1.0
    DATA ·asinrodataL15<> + 216(SB)/8, $1.00000000000000000e-20
    GLOBL ·asinrodataL15<> + 0(SB), RODATA, $224
    
    // Asin returns the arcsine, in radians, of the argument.
    //
    // Special cases are:
    //      Asin(±0) = ±0=
    //      Asin(x) = NaN if x < -1 or x > 1
    // The algorithm used is minimax polynomial approximation
    // with coefficients determined with a Remez exchange algorithm.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 20 17:42:08 UTC 2018
    - 4.2K bytes
    - Viewed (0)
  5. src/math/example_test.go

    	// Output: 0.00
    }
    
    func ExampleCosh() {
    	fmt.Printf("%.2f", math.Cosh(0))
    	// Output: 1.00
    }
    
    func ExampleSin() {
    	fmt.Printf("%.2f", math.Sin(math.Pi))
    	// Output: 0.00
    }
    
    func ExampleSincos() {
    	sin, cos := math.Sincos(0)
    	fmt.Printf("%.2f, %.2f", sin, cos)
    	// Output: 0.00, 1.00
    }
    
    func ExampleSinh() {
    	fmt.Printf("%.2f", math.Sinh(0))
    	// Output: 0.00
    }
    
    func ExampleTan() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 07 18:09:53 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  6. src/math/asinh.go

    //
    //	Asinh(±0) = ±0
    //	Asinh(±Inf) = ±Inf
    //	Asinh(NaN) = NaN
    func Asinh(x float64) float64 {
    	if haveArchAsinh {
    		return archAsinh(x)
    	}
    	return asinh(x)
    }
    
    func asinh(x float64) float64 {
    	const (
    		Ln2      = 6.93147180559945286227e-01 // 0x3FE62E42FEFA39EF
    		NearZero = 1.0 / (1 << 28)            // 2**-28
    		Large    = 1 << 28                    // 2**28
    	)
    	// special cases
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 20:02:49 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. src/runtime/asan/asan.go

    // https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/asan/asan_init_version.h
    // This structure describes an instrumented global variable.
    //
    // TODO: If a later version of the ASan library changes __asan_global or __asan_global_source_location
    // structure, we need to make the same changes.
    struct _asan_global {
    	uintptr_t beg;
    	uintptr_t size;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 00:22:11 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. src/internal/asan/asan.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build asan
    
    package asan
    
    import (
    	"unsafe"
    )
    
    const Enabled = true
    
    //go:linkname Read runtime.asanread
    func Read(addr unsafe.Pointer, len uintptr)
    
    //go:linkname Write runtime.asanwrite
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 399 bytes
    - Viewed (0)
  9. src/math/sin.go

    	if j == 1 || j == 2 {
    		y = z + z*zz*((((((_sin[0]*zz)+_sin[1])*zz+_sin[2])*zz+_sin[3])*zz+_sin[4])*zz+_sin[5])
    	} else {
    		y = 1.0 - 0.5*zz + zz*zz*((((((_cos[0]*zz)+_cos[1])*zz+_cos[2])*zz+_cos[3])*zz+_cos[4])*zz+_cos[5])
    	}
    	if sign {
    		y = -y
    	}
    	return y
    }
    
    // Sin returns the sine of the radian argument x.
    //
    // Special cases are:
    //
    //	Sin(±0) = ±0
    //	Sin(±Inf) = NaN
    //	Sin(NaN) = NaN
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  10. src/runtime/asan.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build asan
    
    package runtime
    
    import (
    	"unsafe"
    )
    
    // Public address sanitizer API.
    func ASanRead(addr unsafe.Pointer, len int) {
    	sp := getcallersp()
    	pc := getcallerpc()
    	doasanread(addr, uintptr(len), sp, pc)
    }
    
    func ASanWrite(addr unsafe.Pointer, len int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 20:39:58 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top